Divide IR protocol tick period by 10 to speed-up simulation
diff --git a/verilog/dv/nec_ir_receiver/nec_ir_receiver.c b/verilog/dv/nec_ir_receiver/nec_ir_receiver.c
index 210c5ce..32f8cb5 100644
--- a/verilog/dv/nec_ir_receiver/nec_ir_receiver.c
+++ b/verilog/dv/nec_ir_receiver/nec_ir_receiver.c
@@ -78,9 +78,9 @@
/* Config IR receiver */
// 70 312,5ns / 25ns
- reg_mprj_ir_multiplier = 0x0000000A;
+ reg_mprj_ir_multiplier = 0x00000064; //Protocol tick period divided by 10 for simulation speed-up
reg_mprj_ir_divider = 0x00006DDD;
- reg_mprj_ir_cmd = 0x94000000;
+ reg_mprj_ir_cmd = 0x94000000;
/* Apply configuration */
reg_mprj_xfer = 1;
diff --git a/verilog/dv/nec_ir_receiver/nec_ir_receiver_tb.v b/verilog/dv/nec_ir_receiver/nec_ir_receiver_tb.v
index c50d1ac..2c6050b 100644
--- a/verilog/dv/nec_ir_receiver/nec_ir_receiver_tb.v
+++ b/verilog/dv/nec_ir_receiver/nec_ir_receiver_tb.v
@@ -70,13 +70,13 @@
end
initial begin
- ir_drv.init(0, 562500);
+ ir_drv.init(0, 56250); //Protocol tick period divided by 10 for simulation speed-up
cmd_addr = $random%256;
cmd_data = $random%256;
wait(checkbits == 16'hAB60);
$display("Monitor: MPRJ-Logic WB Started");
- ir_drv.send_nec(cmd_addr, cmd_data);
+ ir_drv.send_nec(cmd_addr, cmd_data);
wait ((checkbits == 16'hAB61) && (addrbits == cmd_addr) && (databits == cmd_data));
`ifdef GL
$display("Monitor: Mega-Project WB (GL) Passed");