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

Subversion Repositories sdr_ctrl

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

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

Rev 46 Rev 48
Line 138... Line 138...
          .app_req_addr       (app_req_addr       ),    // SDRAM Address
          .app_req_addr       (app_req_addr       ),    // SDRAM Address
          .app_req_len        (app_req_len        ),    // Burst Length (in 16 bit words)
          .app_req_len        (app_req_len        ),    // Burst Length (in 16 bit words)
          .app_req_wrap       (1'b0               ),    // Wrap mode request (xfr_len = 4)
          .app_req_wrap       (1'b0               ),    // Wrap mode request (xfr_len = 4)
          .app_req_wr_n       (app_req_wr_n       ),    // 0 => Write request, 1 => read req
          .app_req_wr_n       (app_req_wr_n       ),    // 0 => Write request, 1 => read req
          .app_req_ack        (app_req_ack        ),    // Request has been accepted
          .app_req_ack        (app_req_ack        ),    // Request has been accepted
          .sdr_core_busy_n    (                   ),    // OK to arbitrate next request
 
 
 
          .app_wr_data        (app_wr_data        ),
          .app_wr_data        (app_wr_data        ),
          .app_wr_en_n        (app_wr_en_n        ),
          .app_wr_en_n        (app_wr_en_n        ),
          .app_rd_data        (app_rd_data        ),
          .app_rd_data        (app_rd_data        ),
          .app_last_rd        (app_last_rd        ),
          .app_last_rd        (app_last_rd        ),
Line 268... Line 267...
  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 286... Line 285...
  $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);
  burst_read();
  burst_read();
  burst_read();
  burst_read();
 
/*****************
  $display("----------------------------------------");
  $display("----------------------------------------");
  $display(" Case:4 4 Write & 4 Read                ");
  $display(" Case:4 4 Write & 4 Read                ");
  $display("----------------------------------------");
  $display("----------------------------------------");
  burst_write(32'h4_0000,8'h4);
  burst_write(32'h4_0000,8'h4);
  burst_write(32'h5_0000,8'h5);
  burst_write(32'h5_0000,8'h5);
Line 367... Line 366...
 #100;
 #100;
     burst_read();
     burst_read();
 #100;
 #100;
  end
  end
 
 
 
*********************/
 
 
  #10000;
  #10000;
 
 
        $display("###############################");
        $display("###############################");
    if(ErrCnt == 0)
    if(ErrCnt == 0)

powered by: WebSVN 2.1.0

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