Line 287... |
Line 287... |
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'h0000_0FF0,8'h8);
|
burst_write(32'h0040_0FF8,8'hF);
|
burst_write(32'h0001_0FF4,8'hF);
|
|
burst_write(32'h0002_0FF8,8'hF);
|
|
burst_write(32'h0003_0FFC,8'hF);
|
|
burst_write(32'h0004_0FE0,8'hF);
|
|
burst_write(32'h0005_0FE4,8'hF);
|
|
burst_write(32'h0006_0FE8,8'hF);
|
|
burst_write(32'h0007_0FEC,8'hF);
|
|
burst_write(32'h0008_0FD0,8'hF);
|
|
burst_write(32'h0009_0FD4,8'hF);
|
|
burst_write(32'h000A_0FD8,8'hF);
|
|
burst_write(32'h000B_0FDC,8'hF);
|
|
burst_write(32'h000C_0FC0,8'hF);
|
|
burst_write(32'h000D_0FC4,8'hF);
|
|
burst_write(32'h000E_0FC8,8'hF);
|
|
burst_write(32'h000F_0FCC,8'hF);
|
|
burst_write(32'h0010_0FB0,8'hF);
|
|
burst_write(32'h0011_0FB4,8'hF);
|
|
burst_write(32'h0012_0FB8,8'hF);
|
|
burst_write(32'h0013_0FBC,8'hF);
|
|
burst_write(32'h0014_0FA0,8'hF);
|
|
burst_write(32'h0015_0FA4,8'hF);
|
|
burst_write(32'h0016_0FA8,8'hF);
|
|
burst_write(32'h0017_0FAC,8'hF);
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
burst_read();
|
burst_read();
|
burst_read();
|
burst_read();
|
|
|
$display("----------------------------------------");
|
$display("----------------------------------------");
|
$display(" Case:4 4 Write & 4 Read ");
|
$display(" Case:4 4 Write & 4 Read ");
|
Line 305... |
Line 349... |
burst_read();
|
burst_read();
|
burst_read();
|
burst_read();
|
burst_read();
|
burst_read();
|
|
|
$display("---------------------------------------");
|
$display("---------------------------------------");
|
$display(" Case:5 16 Write & 16 Read With Different Bank and Row ");
|
$display(" Case:5 24 Write & 24 Read With Different Bank and Row ");
|
$display("---------------------------------------");
|
$display("---------------------------------------");
|
//----------------------------------------
|
//----------------------------------------
|
// Address Decodeing:
|
// Address Decodeing:
|
// with cfg_col bit configured as: 00
|
// with cfg_col bit configured as: 00
|
// <12 Bit Row> <2 Bit Bank> <8 Bit Column> <2'b00>
|
// <12 Bit Row> <2 Bit Bank> <8 Bit Column> <2'b00>
|
Line 347... |
Line 391... |
burst_read();
|
burst_read();
|
burst_read();
|
burst_read();
|
burst_read();
|
burst_read();
|
burst_read();
|
burst_read();
|
|
|
|
|
|
burst_write({12'h002,2'b00,8'h00,2'b00},8'h4); // Row: 2 Bank : 0
|
|
burst_write({12'h002,2'b01,8'h01,2'b00},8'h5); // Row: 2 Bank : 1
|
|
burst_write({12'h002,2'b10,8'h02,2'b00},8'h6); // Row: 2 Bank : 2
|
|
burst_write({12'h002,2'b11,8'h03,2'b00},8'h7); // Row: 2 Bank : 3
|
|
burst_write({12'h003,2'b00,8'h04,2'b00},8'h4); // Row: 3 Bank : 0
|
|
burst_write({12'h003,2'b01,8'h05,2'b00},8'h5); // Row: 3 Bank : 1
|
|
burst_write({12'h003,2'b10,8'h06,2'b00},8'h6); // Row: 3 Bank : 2
|
|
burst_write({12'h003,2'b11,8'h07,2'b00},8'h7); // Row: 3 Bank : 3
|
|
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
burst_read();
|
|
|
$display("---------------------------------------------------");
|
$display("---------------------------------------------------");
|
$display(" Case: 6 Random 2 write and 2 read random");
|
$display(" Case: 6 Random 2 write and 2 read random");
|
$display("---------------------------------------------------");
|
$display("---------------------------------------------------");
|
for(k=0; k < 20; k++) begin
|
for(k=0; k < 20; k++) begin
|
StartAddr = $random & 32'h003FFFFF;
|
StartAddr = $random & 32'h003FFFFF;
|
burst_write(StartAddr,($random & 8'h3f)+1);
|
burst_write(StartAddr,($random & 8'h0f)+1);
|
#100;
|
#100;
|
|
|
StartAddr = $random & 32'h003FFFFF;
|
StartAddr = $random & 32'h003FFFFF;
|
burst_write(StartAddr,($random & 8'h3f)+1);
|
burst_write(StartAddr,($random & 8'h0f)+1);
|
#100;
|
#100;
|
burst_read();
|
burst_read();
|
#100;
|
#100;
|
burst_read();
|
burst_read();
|
#100;
|
#100;
|