Designs frequently need to stub out modules to simplify simulation or synthesis during development. As part of workflows, it is very useful to be able to automatically generate stub modules from design files.
I would like to request a feature where Yosys can "stub-out" a module, similar to blackbox but with the ability to tie outputs to
default values.
Bare Minimum Features
Remove all internal logic (like blackbox)
Tie all outputs to zero
Nice-to-have Features
Configurable stub output behavior:
Selectively assign constants to outputs
Pass-through ports
Flop (N-cycle delay)
For example, to create a stub module for a module foo:
Feature Description
Designs frequently need to stub out modules to simplify simulation or synthesis during development. As part of workflows, it is very useful to be able to automatically generate stub modules from design files. I would like to request a feature where Yosys can "stub-out" a module, similar to
blackbox
but with the ability to tie outputs to default values.Bare Minimum Features
blackbox
)Nice-to-have Features
For example, to create a stub module for a module
foo
:One could read in the file and use a command:
Which would generate a module similar to this:
Note the following differences from blackbox modules:
blackbox
orcells_not_processed
attributes