phy: Fix NLP timebase error
This commit is contained in:
parent
6f8bb7ba54
commit
a2edc540b2
@ -268,7 +268,7 @@ begin
|
|||||||
signal sr : std_logic_vector(phy_in.tx_data'range);
|
signal sr : std_logic_vector(phy_in.tx_data'range);
|
||||||
signal bit_stage : std_logic;
|
signal bit_stage : std_logic;
|
||||||
|
|
||||||
constant BIT_CNT_MAX_NLP : integer := 16000 / 100; -- 16 ms (timebase 100 ns)
|
constant BIT_CNT_MAX_NLP : integer := 16000000 / 100; -- 16 ms (timebase 100 ns)
|
||||||
constant BIT_CNT_MAX_IPG : integer := 96;
|
constant BIT_CNT_MAX_IPG : integer := 96;
|
||||||
constant BIT_CNT_MAX_DATA : integer := sr'length - 1;
|
constant BIT_CNT_MAX_DATA : integer := sr'length - 1;
|
||||||
signal bit_cnt : integer range 0 to maximum(maximum(BIT_CNT_MAX_NLP, BIT_CNT_MAX_DATA), BIT_CNT_MAX_IPG);
|
signal bit_cnt : integer range 0 to maximum(maximum(BIT_CNT_MAX_NLP, BIT_CNT_MAX_DATA), BIT_CNT_MAX_IPG);
|
||||||
|
Loading…
Reference in New Issue
Block a user