Browse files

hpdmc: peak performance test

  • Loading branch information...
1 parent 3f5163c commit d09f6caa21029b7c15bc9856a13eae9750477f38 @sbourdeauducq sbourdeauducq committed Jul 11, 2011
Showing with 30 additions and 2 deletions.
  1. +30 −2 cores/hpdmc_ddr32/test/tb_hpdmc.v
View
32 cores/hpdmc_ddr32/test/tb_hpdmc.v
@@ -1,6 +1,6 @@
/*
* Milkymist SoC
- * Copyright (C) 2007, 2008, 2009, 2010 Sebastien Bourdeauducq
+ * Copyright (C) 2007, 2008, 2009, 2010, 2011 Sebastien Bourdeauducq
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -18,8 +18,9 @@
`timescale 1ns / 1ps
`define ENABLE_VCD
-`define TEST_SOMETRANSFERS
+//`define TEST_SOMETRANSFERS
//`define TEST_RANDOMTRANSFERS
+`define TEST_PEAK
module tb_hpdmc();
@@ -378,6 +379,33 @@ always begin
`endif
+`ifdef TEST_PEAK
+ fml_adr = 32'h000000;
+ fml_stb = 1'b1;
+ fml_we = 1'b0;
+
+ n = 0;
+ while(n < 10) begin
+ while(~fml_ack) begin
+ waitclock;
+ end
+ waitclock;
+ n = n+1;
+ end
+
+ /* generate page miss */
+ fml_adr = 32'h200000;
+
+ n = 0;
+ while(n < 10) begin
+ while(~fml_ack) begin
+ waitclock;
+ end
+ waitclock;
+ n = n+1;
+ end
+`endif
+
$finish;
end

0 comments on commit d09f6ca

Please sign in to comment.