HMBFDHV-83 Testbench for fire pulse manager to run at 300MHz for rx_clk as this is the more typical case

This commit is contained in:
Damian Smith 2019-05-28 11:09:49 +01:00
commit a7c73eba4d

View file

@ -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));