Skip to content

Commit

Permalink
capture ts_start on rising enable if gate is active
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilioPeJu committed Jul 1, 2024
1 parent 3fbd543 commit 2a5c9c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/pcap/hdl/pcap_frame.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,10 @@ process(clk_i) begin
-- Capture the timestamp at the start of a capture frame
if (enable_i = '0') then
ts_start_enable <= '0';
ts_start <= (others => '0');
ts_start_dly <= (others => '0');
-- trig the timestamp this is the start of a frame
elsif (ts_start_enable = '0' and gate_rise = '1') then
elsif (ts_start_enable = '0' and gate_i = '1') then
ts_start_enable <= '1';
ts_start <= std_logic_vector(timestamp);
-- Capture the timestamp this is the start of a frame
Expand Down

0 comments on commit 2a5c9c0

Please sign in to comment.