From a7c73eba4dcdb569a9fb322178848da74e88e2fa Mon Sep 17 00:00:00 2001 From: Damian Smith Date: Tue, 28 May 2019 11:09:49 +0100 Subject: [PATCH] HMBFDHV-83 Testbench for fire pulse manager to run at 300MHz for rx_clk as this is the more typical case --- .../1/src/test/fire_pulse_manager_1_tb.vhd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/generic_ip/fire_pulse_manager/1/src/test/fire_pulse_manager_1_tb.vhd b/generic_ip/fire_pulse_manager/1/src/test/fire_pulse_manager_1_tb.vhd index 12eca4f..13189b4 100644 --- a/generic_ip/fire_pulse_manager/1/src/test/fire_pulse_manager_1_tb.vhd +++ b/generic_ip/fire_pulse_manager/1/src/test/fire_pulse_manager_1_tb.vhd @@ -48,9 +48,9 @@ architecture behav of fire_pulse_manager_1_tb is constant CLK_FREQ : real := 100.0e6; constant TX_CLK_PERIOD : time := CLK_PERIOD; -- nominally the same as clk_period - - constant RX_CLK_PERIOD : time := 5.0 ns; -- clock period for used by the - -- UART-Rx on the POF + -- TODO Try different receive oversampling ratios - 300MHz is in the real system + constant RX_CLK_PERIOD : time := CLK_PERIOD / 3; -- clock period for used by the + -- UART-Rx on the POF constant POF_DELAY : time := 30 ns; -- Total delay from POF-Tx input to POF-Rx output @@ -546,8 +546,8 @@ begin -- behav -- Config fire_pulse_manager control registers: -- Enable the POF-Rx addr := std_logic_vector(to_unsigned(3, 32)); - data := X"0000_8041"; - -- Write the data to the register + data := X"0000_8061"; -- set bit_div to 6 to match the 50MBd TX signal to the 300MHz RX_CLK + -- Write the data to the register mm_32b_write(addr, data, avs_s, avs_m); -- Select pulse generator addr := std_logic_vector(to_unsigned(2, 32));