OpenCores
URL https://opencores.org/ocsvn/sdr_ctrl/sdr_ctrl/trunk

Subversion Repositories sdr_ctrl

[/] [sdr_ctrl/] [trunk/] [verif/] [tb/] [tb_top.sv] - Diff between revs 46 and 48

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 46 Rev 48
Line 251... Line 251...
  RESETN    = 1'h1;
  RESETN    = 1'h1;
  #1000;
  #1000;
  wait(u_dut.sdr_init_done == 1);
  wait(u_dut.sdr_init_done == 1);
 
 
  #1000;
  #1000;
 
 
  $display("-------------------------------------- ");
  $display("-------------------------------------- ");
  $display(" Case-1: Single Write/Read Case        ");
  $display(" Case-1: Single Write/Read Case        ");
  $display("-------------------------------------- ");
  $display("-------------------------------------- ");
 
 
  burst_write(32'h4_0000,8'h4);
  burst_write(32'h4_0000,8'h4);
Line 269... Line 268...
  $display("----------------------------------------");
  $display("----------------------------------------");
  burst_write(32'h4_0000,8'h4);
  burst_write(32'h4_0000,8'h4);
  burst_read();
  burst_read();
  burst_write(32'h0040_0000,8'h5);
  burst_write(32'h0040_0000,8'h5);
  burst_read();
  burst_read();
 
 
  $display("----------------------------------------");
  $display("----------------------------------------");
  $display(" Case-3 Create a Page Cross Over        ");
  $display(" Case-3 Create a Page Cross Over        ");
  $display("----------------------------------------");
  $display("----------------------------------------");
  burst_write(32'h4_0FFC,8'h8);
  burst_write(32'h4_0FFC,8'h8);
  burst_write(32'h0040_0FF8,8'hF);
  burst_write(32'h0040_0FF8,8'hF);
Line 350... Line 348...
 #100;
 #100;
     burst_read();
     burst_read();
 #100;
 #100;
  end
  end
 
 
 
 
  #10000;
  #10000;
 
 
        $display("###############################");
        $display("###############################");
    if(ErrCnt == 0)
    if(ErrCnt == 0)
        $display("STATUS: SDRAM Write/Read TEST PASSED");
        $display("STATUS: SDRAM Write/Read TEST PASSED");

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.