Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: capture ts_start on rising enable if gate is active #196

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading