-
Notifications
You must be signed in to change notification settings - Fork 0
(WIP) Add FIFO Protocol example #136
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
base: main
Are you sure you want to change the base?
Conversation
| DUT.enq_not_deq_i := 1'b1; | ||
| DUT.v_i := 1'b1; | ||
| DUT.data_i := input; | ||
| step(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ngernest : you will have to assign X to all inputs here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah gotcha thanks!
| fork(); | ||
| // The output data is undefined if the FIFO is empty, | ||
| // so we only check equality if the empty bit is not true | ||
| if !(DUT.empty_o == 1'b1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be an interesting case for the monitor to handle!
Adds the following protocols for testing purposes: