FuseSoC generator for bsg_fakeram.
fusesoc library add bsg_fakeram https://github.com/adithyasunil26/bsg_fakeram_generator
The bsg_fakeram
core can be used to test the functioning of the generator.
For linting
fusesoc run --target lint bsg_fakeram
Before running the fusesoc run
command, open the core file present in your fusesoc_libraries
directory which will be created on executing the previous command and edit the path_to_cfg
value to match the path to the mentioned file in your file system.
To use a custom config file follow these steps:
- Navigate to library
cd fusesoc_libraries/bsg_fakeram/
- Open the
bsg_fakeram.core
file and changepath_to_cfg
to path to custom config file - Return to original directory with
cd ../..
Now you can use the core with the before mentioned targets.
In order to use the generator in your cores add the following lines of code to your core
generate:
<name_of_generate_block>:
generator: bsg_fakeram_gen
parameters:
path_to_cfg: '<path_to_config_file>'
Also reference the generator in your targets
generate: <name_of_generate_block>