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 Jun 28, 2024
1 parent 3fbd543 commit e118f06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/pcap/hdl/pcap_frame.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ process(clk_i) begin
if (enable_i = '0') then
ts_start_enable <= '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 e118f06

Please sign in to comment.