-
Notifications
You must be signed in to change notification settings - Fork 13
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
Adding task to fault #306
Comments
Could we do it similar to how we handle loops/if? E.g. |
Yes this is what I have in mind.
If we only focus on TB-side tasks, i.e. tasks used to drive DUT interface, I think we can just directly generate it in the top scope, which should work out just fine. There are several things to consider, however:
Please let me know what you think. |
That all sounds reasonable. Do the timing controls usually use the SV wait statement? |
Usually it's things like @(posedge clk);
// or
@(value);
// or event
-> event_var;
// and then
@(event_var)
If default clocking is set, sometimes people just do |
I'm in the process of rewriting tbg to support more complex configuration semantics. One challenging part is to dynamically select signals based on the signal values. It's typically done via driver tasks in SV-based testbench.
Most of the logic are already there, such as set values (poke), loop, and if. I think the only additional feature is how to create a task definition, in particular, input and output variables.
The text was updated successfully, but these errors were encountered: