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] - Rev 135

Compare with Previous | Blame | View Log



initial
begin
$display("              ");
$display("              ===================================================");
$display("              Test Start");
$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(4);
test.cg.next(4);
test.cg.next(4);
test.cg.next(4);
test.cg.next(4);
test.cg.next(4);
test.cg.next(1);
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;
end








Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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