BSG Black-box SRAM Generator for FuseSoC
FuseSoC generator for bsg_fakeram.
Adding core library to FuseSoC
fusesoc library add bsg_fakeram https://github.com/adithyasunil26/bsg_fakeram_generator
Testing the generator
The bsg_fakeram
core can be used to test the functioning of the generator.
For linting
fusesoc run --target lint bsg_fakeram
To use a custom config file
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.
Using the generator in your own core
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>