Skip to content

Rule of Thumb / best practices for ROHD class and function #332

Closed Answered by mkorbel1
quekyj asked this question in Q&A
Discussion options

You must be logged in to vote

From ROHD's perspective, one time when you do want to make a class is when you want to define a Module (e.g. class ___ extends Module). When you want something to be a Module is sometimes similar to when you want to make something a module in SystemVerilog. For example, a top-level hierarchy or backend synthesis partition should be a Module. A Module always translates into a module when converted to SystemVerilog.

SystemVerilog uses modules and functions as common ways to group functionality. In ROHD, you are not limited to only Modules to group reusable functionality, and ROHD will not generate a SystemVerilog function.

ROHD, as a generator framework, enables you to write software that g…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@quekyj
Comment options

Answer selected by quekyj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants