-
Notifications
You must be signed in to change notification settings - Fork 17
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
PCAP.TS_START not zeroed when GATE already high at the start of capture #179
Comments
I've added a timing test in pcap-TS_START-test . However, I cannot replicate this behaviour in the VHDL. @EmilioPeJu Does a change need to be made in the server similar to PandABlocks/PandABlocks-server#37 ? |
The relevant change to the FPGA already happened when the start time feature was added. Was this bug introduced after that? if you don't see the problem in the timing tests, it might be a subtle problem that could be investigated with chipscope (or similar) |
This current problem is different behaviour to what Glenn reported in #129 (which was fixed by PandABlocks/PandABlocks-server#37), it looks like it's only affecting TS_START whereas it previously affected the entire first capture. I think when the previous problem was fixed, it introduced the current issue (or made the current issue noticeable). |
Is it this: PandABlocks-FPGA/modules/pcap/hdl/pcap_frame.vhd Lines 159 to 161 in 3fbd543
When Can we zero |
It would be nice simplifying that code, though that would require more work(and testing) than just fixing this bug |
I've tried putting these changes onto a PandA but it does not seem to have fixed this problem. |
Thanks for testing it, I have added two extra lines that will (hopefully) fix it |
I've just put the new changes onto a PandA. It still hasn't fixed this. |
is it showing exactly the same behaviour? I'm surprised, as soon as enable goes low, it should be clearing ts_start |
If
PCAP.GATE
andPCAP.ENABLE
are both tied toONE
, like in this diagram:then
TS_START
on the last frame will be leftover from the previous scan rather than being 0:The text was updated successfully, but these errors were encountered: