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

Subversion Repositories socgen

[/] [socgen/] [trunk/] [common/] [opencores.org/] [cde/] [ip/] [fifo/] [sim/] [icarus/] [default/] [test_define] - Diff between revs 134 and 135

Show entire file | Details | Blame | View Log

Rev 134 Rev 135
Line 5... Line 5...
$display("              ");
$display("              ");
$display("              ===================================================");
$display("              ===================================================");
$display("              Test Start");
$display("              Test Start");
$display("              ===================================================");
$display("              ===================================================");
$display("              ");
$display("              ");
 
test.PUSH = 0;
 
test.POP = 0;
 
test.Dout = 8'h00;
 
test.Din = 8'h00;
 
test.cg.next(10);
 
 
 
 
 
begin
 
fork
 
begin
 
test.PUSH = 1;
 
test.cg.next(1);
 
test.PUSH = 0;
 
test.Din = 8'h01;
 
test.cg.next(1);
 
test.PUSH = 1;
 
test.cg.next(1);
 
test.PUSH = 0;
 
test.Din = 8'h02;
 
test.cg.next(1);
 
test.PUSH = 1;
 
test.cg.next(1);
 
test.PUSH = 0;
 
test.Din = 8'h03;
 
test.cg.next(1);
 
test.PUSH = 1;
 
test.cg.next(1);
 
test.PUSH = 0;
 
test.Din = 8'h04;
 
test.cg.next(1);
 
test.PUSH = 1;
 
test.cg.next(1);
 
test.PUSH = 0;
 
test.Din = 8'h05;
 
test.cg.next(1);
 
test.PUSH = 1;
 
test.cg.next(1);
 
test.PUSH = 0;
 
test.Din = 8'h06;
 
test.cg.next(1);
 
test.PUSH = 1;
 
test.cg.next(1);
 
test.PUSH = 0;
 
test.Din = 8'h07;
 
test.cg.next(1);
 
test.PUSH = 1;
 
test.cg.next(1);
 
test.PUSH = 0;
test.cg.next(20);
test.cg.next(20);
test.write.u_write(8'h00, 8'h01);
 
test.cg.next(4);
test.cg.next(4);
test.read.u_cmp(8'h00,   8'h01);
 
test.cg.next(4);
test.cg.next(4);
test.write.u_write(8'h00, 8'h02);
 
test.cg.next(4);
test.cg.next(4);
test.read.u_cmp(8'h00,   8'h02);
 
test.cg.next(4);
test.cg.next(4);
test.write.u_write(8'h00, 8'h03);
 
test.cg.next(4);
test.cg.next(4);
test.read.u_cmp(8'h00,   8'h03);
 
test.cg.next(4);
test.cg.next(4);
test.write.u_write(8'h00, 8'h04);
 
test.cg.next(1);
test.cg.next(1);
test.read.u_cmp(8'h00,   8'h04);
 
test.cg.next(4);
test.cg.next(4);
 
end
 
 
 
 
 
begin
 
test.cg.next(5);
 
test.POP = 1;
 
test.Dout = 8'h00;
 
test.cg.next(1);
 
test.POP = 0;
 
test.Dout = 8'h01;
 
test.cg.next(1);
 
test.POP = 1;
 
test.cg.next(1);
 
test.POP = 0;
 
test.Dout = 8'h02;
 
test.cg.next(1);
 
test.POP = 1;
 
test.cg.next(1);
 
test.POP = 0;
 
test.Dout = 8'h03;
 
test.cg.next(4);
 
test.POP = 1;
 
test.cg.next(1);
 
test.POP = 0;
 
test.Dout = 8'h04;
 
test.cg.next(1);
 
test.POP = 1;
 
test.cg.next(1);
 
test.POP = 0;
 
test.Dout = 8'h05;
 
test.cg.next(1);
 
test.POP = 1;
 
test.cg.next(1);
 
test.POP = 0;
 
test.Dout = 8'h06;
 
test.cg.next(1);
 
test.POP = 1;
 
test.cg.next(1);
 
test.POP = 0;
 
test.Dout = 8'h07;
 
test.cg.next(10);
 
test.POP = 1;
 
test.cg.next(1);
 
test.POP = 0;
 
test.cg.next(10);
 
test.POP = 1;
 
test.cg.next(1);
 
test.POP = 0;
 
test.cg.next(10);
 
test.POP = 1;
 
test.cg.next(1);
 
test.POP = 0;
 
 
 
 
 
end
 
join
 
end
 
 
test.cg.exit;
test.cg.exit;
end
end
 
 
 
 

powered by: WebSVN 2.1.0

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