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

Subversion Repositories socgen

[/] [socgen/] [trunk/] [common/] [opencores.org/] [cde/] [ip/] [serial/] [sim/] [icarus/] [both/] [test_define] - Rev 131

Compare with Previous | Blame | View Log



initial
begin
$display("              ");
$display("              ===================================================");
$display("              Test Start");
$display("              ===================================================");
$display("              ");
test.cg.next(20);

fork
begin
test.xmit_parity_enable    <= 1'b1;             // 0 = no parity bit sent, 1= parity bit sent
test.xmit_parity_type      <= 1'b1;              // 0= odd,1=even
test.xmit_parity_force     <= 1'b1;              // force parity_type
test.xmit_load             <= 1'b0;              // start transmiting data
test.xmit_start_value      <= 1'b0;            // value out at start bit time
test.xmit_stop_value       <= 1'b1;            // value out for stop bit also used for break
test.xmit_data             <= 8'h34;       
test.cg.next(5);
test.xmit_load             <= 1'b1;              // start transmiting data
test.cg.next(1);
test.xmit_load             <= 1'b0;              // start transmiting data
test.cg.next(400);
test.xmit_data             <= 8'hf1;       
test.cg.next(5);
test.xmit_load             <= 1'b1;              // start transmiting data
test.cg.next(1);
test.xmit_load             <= 1'b0;              // start transmiting data
test.cg.next(400);


test.cg.exit;
end
begin
while (1)
 begin
 test.xmit_edge_enable <= 0;
 test.cg.next(15);
 test.xmit_edge_enable <= 1;
 test.cg.next(1);
 end
end

join
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.