-
Notifications
You must be signed in to change notification settings - Fork 18
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
Problems with 'tperiod_Clk' #9
Comments
I also think getting rid of the Looking at AXI4/common/src/Axi4CommonPkg.vhd Line 136 in 3e52ab8
we could change the code to something like if ReadyBeforeValid then
WaitForClock(Clk, ReceiveReadyDelayCycles);
Ready <= transport '1' after tpd_Clk_Ready ;
end if ; However, I am not sure if it is OK to make procedure Or maybe something like this Ready <= transport '1' after Clk'last_event * 2 + tpd_Clk_Ready; assuming Clk has a 50% duty cycle. Admittedly, I don't know if the second version would actually work, I have never used this attribute before. What's the reason for this proposed change? I can prepare a PR in case you agree to one of the proposals. |
@riedel-ferringer |
Thanks for yesterdays live debugging session.
We found our mistake in the usage of Axi4Manager and Axi4Memory.
The frequency of the OSVVM verification components was not matching the period of our testbench clocks.
We have 2 suggestions to prevent others from doing the same mistake:
tperiod_Clk
, so users are forced to map a clock period.=> We would prefer this method.
How can the latter be implemented in a save and reliable way?
Clk
and save it in a local variable/signal.rising_edge(nReset)
, assigntperiod_Clk
.What does this method achieve?
tperiod_Clk
can be used immediately.Sketch of the solution:
Note:
/cc @stefanunrein
The text was updated successfully, but these errors were encountered: