Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@fabianschuiki
Copy link
Contributor

Add support for the simulation control system tasks $stop, $finish, and $exit. Also add corresponding ops to the Moore dialect that handle the orthogonal pieces of functionality represented by these tasks.

Add support for the simulation control system tasks `$stop`, `$finish`,
and `$exit`. Also add corresponding ops to the Moore dialect that handle
the orthogonal pieces of functionality represented by these tasks.
Copy link
Member

@terapines-osc-circt terapines-osc-circt left a comment

Choose a reason for hiding this comment

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

LGTM 😎!

Comment on lines +1390 to +1392
The exit code argument of this op is not directly accessible from Verilog,
but is used to distinguish between the implicit `$finish` call in `$fatal`
and an explicit `$finish` called by the user.

Choose a reason for hiding this comment

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

I don't have any questions.
nit: Maybe we could explicitly notify moore.builtin.finish 0 representing an explicit $finish called, 1 is implicit $finish.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah we could add a marker for that. For example a implicit unit attribute to distinguish it from the exit code.

@fabianschuiki fabianschuiki merged commit d42d00e into main Sep 27, 2024
4 checks passed
@fabianschuiki fabianschuiki deleted the fschuiki/moore-simctrl branch September 27, 2024 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants