URL
https://opencores.org/ocsvn/socgen/socgen/trunk
Subversion Repositories socgen
[/] [socgen/] [trunk/] [Projects/] [opencores.org/] [wishbone/] [ip/] [wb_uart16550/] [sim/] [icarus/] [bus32_lit_default/] [test_define] - Rev 133
Go to most recent revision | Compare with Previous | Blame | View Log
`include "../../testbenches/elab/wb_uart16550_bus16_lit_tb/sw/wb.v"
reg [31:0] d;
initial
begin
$display(" ");
$display(" ===================================================");
$display("%t Test Start",$realtime );
$display(" ===================================================");
$display(" ");
test.cg.next(1);
test.cts_pad_R <= 1'b0;
test.dcd_pad_R <= 1'b0;
test.dsr_pad_R <= 1'b0;
test.ri_pad_R <= 1'b0;
test.cg.next(8);
$display("%t out of reset ",$realtime );
test.cg.next(88);
fork
begin
test.i_wb_master.wb_write(fc_reg,4'h4,32'h00c70000 );
test.cg.next(20);
test.i_wb_master.wb_write(ie_reg,4'h2,32'h00000000 );
test.cg.next(20);
test.i_wb_master.wb_write(lc_reg,4'h8,32'h03000000 );
test.cg.next(20);
test.i_wb_master.wb_write(lc_reg,4'h8,32'h83000000 );
test.cg.next(20);
test.i_wb_master.wb_write(tr_reg,4'h3,32'h0000000d );
test.cg.next(20);
test.i_wb_master.wb_write(lc_reg,4'h8,32'h03000000 );
test.cg.next(20);
test.i_wb_master.wb_write(tr_reg,4'h1,32'h00000048 );
test.i_wb_master.wb_read(ls_reg,d );
test.cg.next(10000);
test.i_wb_master.wb_write(tr_reg,4'h1,32'h00000065 );
test.cg.next(10000);
test.i_wb_master.wb_write(tr_reg,4'h1,32'h0000006c );
test.cg.next(10000);
test.i_wb_master.wb_write(tr_reg,4'h1,32'h0000006c );
test.cg.next(10000);
test.i_wb_master.wb_write(tr_reg,4'h1,32'h0000006f );
test.cg.next(50000);
test.i_wb_master.wb_cmp(tr_reg,4'h1,32'h00000034 );
test.cg.next(50);
test.i_wb_master.wb_cmp(ie_reg,4'h2,32'h00000000 );
test.cg.next(50);
test.i_wb_master.wb_cmp(ii_reg,4'h4,32'h00c10000 );
test.cg.next(50);
test.i_wb_master.wb_cmp(lc_reg,4'h8,32'h03000000 );
test.cg.next(50);
test.i_wb_master.wb_cmp(mc_reg,4'h1,32'h00000000 );
test.cg.next(50);
test.i_wb_master.wb_cmp(ls_reg,4'h2,32'h00006100 );
test.cg.next(50);
test.i_wb_master.wb_cmp(ms_reg,4'h4,32'h00000000 );
test.cg.next(50);
test.i_wb_master.wb_cmp(sr_reg,4'h8,32'h00000000 );
test.cg.next(500);
test.i_wb_master.wb_cmp(tr_reg,4'h1,32'h00000043 );
test.cg.next(500);
test.i_wb_master.wb_cmp(tr_reg,4'h1,32'h00000056 );
test.cg.next(500);
test.i_wb_master.wb_cmp(debug_0_reg,4'hf,32'h00031060 );
test.cg.next(500);
end
begin
test.uart_model.rx_parity_enable = 1'b0;
test.uart_model.txd_parity_enable = 1'b0;
test.uart_model.rx_parity = 1'b1;
test.uart_model.txd_parity = 1'b1;
test.cg.next(10);
test.uart_model.rcv_byte(8'h48);
test.uart_model.send_byte(8'h34);
test.cg.next(10);
test.uart_model.rcv_byte(8'h65);
test.cg.next(10);
test.uart_model.rcv_byte(8'h6c);
test.cg.next(10);
test.uart_model.rcv_byte(8'h6c);
test.cg.next(10);
test.uart_model.rcv_byte(8'h6f);
test.cg.next(10);
test.uart_model.send_byte(8'h43);
test.cg.next(10);
test.uart_model.send_byte(8'h56);
end
join
test.cg.exit;
end
Go to most recent revision | Compare with Previous | Blame | View Log