Skip to content

(WIP) Hazard Interface example from Jang et al. '24#205

Draft
ngernest wants to merge 2 commits intomainfrom
hazard_interfaces
Draft

(WIP) Hazard Interface example from Jang et al. '24#205
ngernest wants to merge 2 commits intomainfrom
hazard_interfaces

Conversation

@ngernest
Copy link
Contributor

@ngernest ngernest commented Mar 1, 2026

(Experimental)
This PR adds an example of a Hazard Interface expressed in our DSL. Hazard Interfaces are a generalization of ready-valid interfaces, proposed by Jang et al. (PLDI 2024). See the comments in hazard_interface.prot for more details.

// (and the register contains a value value)
// Note: this while-loop is the key difference from ready-valid,
// in usual ready-valid we'd just have `while (DUT.o_ready == 0) { step(); }`
// Note: this doesn't work right now b/c our DSL doesn't support `||` or `&&`
Copy link
Collaborator

@ekiwi ekiwi Mar 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ngernest : || and && is something we should totally add!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh great! I was hoping to use this as an example as a potential agenda item for the meeting later today (whether to add && and ||)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants