-
|
In general, when should we create a class or function in dart/ROHD during the design? Any rule of thumb or best practices? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
From ROHD's perspective, one time when you do want to make a class is when you want to define a SystemVerilog uses ROHD, as a generator framework, enables you to write software that generates hardware. You can use any types of software collections, architectures, design patterns, etc. including classes and functions to develop your hardware. The only time you need to explicitly define a So to summarize, make a |
Beta Was this translation helpful? Give feedback.
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 aModuleis sometimes similar to when you want to make something amodulein SystemVerilog. For example, a top-level hierarchy or backend synthesis partition should be aModule. AModulealways translates into amodulewhen converted to SystemVerilog.SystemVerilog uses
modules andfunctions as common ways to group functionality. In ROHD, you are not limited to onlyModules to group reusable functionality, and ROHD will not generate a SystemVerilogfunction.ROHD, as a generator framework, enables you to write software that g…