Skip to content

adithyasunil26/bsg_fakeram_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  1. Navigate to library
cd fusesoc_libraries/bsg_fakeram/
  1. Open the bsg_fakeram.core file and change path_to_cfg to path to custom config file
  2. 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>

About

FuseSoC generator for BSG fakeram generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published