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

Subversion Repositories socgen

[/] [socgen/] [trunk/] [Projects/] [opencores.org/] [logic/] [ip/] [disp_io/] [sim/] [icarus/] [default/] [test_define] - Diff between revs 131 and 133

Show entire file | Details | Blame | View Log

Rev 131 Rev 133
Line 3... Line 3...
 $display("              ");
 $display("              ");
 $display("          ===================================================");
 $display("          ===================================================");
 $display("%t  Test Start",$realtime);
 $display("%t  Test Start",$realtime);
 $display("          ===================================================");
 $display("          ===================================================");
 $display("              ");
 $display("              ");
 test.R_PosD           = 16'b0000000000000000;
 test.R_PosD           = 16'h0000;
 test.R_PosL           = 8'b00000000;
 test.R_PosL           = 8'b00000000;
 test.R_sw_pad_in      = 8'b00000000;
 test.R_sw_pad_in      = 8'b00000000;
 test.R_btn_pad_in     = 4'b0000;
 test.R_btn_pad_in     = 4'b0000;
 
 
 test.cg.next(8);
 test.cg.next(8);
 
 
 test.cg.next(88);
 test.cg.next(88);
 $display("%t   Start xmit test ",$realtime  );
 $display("%t   Start xmit test ",$realtime  );
 
fork
 
begin
 test.cg.next(1000);
 test.cg.next(1000);
 
 
 test.R_PosD           = 16'b1010101010101010;
 
 test.R_PosL           = 8'b10101010;
 test.R_PosL           = 8'b10101010;
 test.R_sw_pad_in      = 8'b10101010;
 test.R_sw_pad_in      = 8'b10101010;
 test.R_btn_pad_in     = 4'b1010;
 test.R_btn_pad_in     = 4'b1010;
 
 
 test.cg.next(1000);
 test.cg.next(1000);
 
 
 test.R_PosD           = 16'b1111111111111111;
 
 test.R_PosL           = 8'b11111111;
 test.R_PosL           = 8'b11111111;
 test.R_sw_pad_in      = 8'b11111111;
 test.R_sw_pad_in      = 8'b11111111;
 test.R_btn_pad_in     = 4'b1111;
 test.R_btn_pad_in     = 4'b1111;
 
 
 
end
 
 
 
 
 
begin
 
 test.cg.next(1000);
 
 test.R_PosD           = 16'h1234;
 
 test.cg.next(1000);
 
 test.R_PosD           = 16'h5678;
 test.cg.next(1000);
 test.cg.next(1000);
 
 test.R_PosD           = 16'h9abc;
 
 test.cg.next(1000);
 
 test.R_PosD           = 16'hdef0;
 
 
 
 
 
 
 
end
 
 
 
 
 
 
 
 
 
join
 
 test.cg.next(1000);
 $display("%t   Stop  xmit test ",$realtime  );
 $display("%t   Stop  xmit test ",$realtime  );
 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.