GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - akashlevy/NEM-Relay-CGRA: Jade CGRA using NEM relay interconnect fabric. Related repositories: NEM-Relay-CGRA-Flow, NEM-Relay-CAD

BranchesTags
Open more actions menu

Latest commit

 

History

317 Commits
317 Commits

Folders and files

NameName
Last commit message
Last commit date
bin
bin
 
 
bitstream
bitstream
 
 
doc
doc
 
 
gls
gls
 
 
hardware
hardware
 
 
nems/oldsynth
nems/oldsynth
 
 
signoff_reports
signoff_reports
 
 
signoff_reports_and_outputs
signoff_reports_and_outputs
 
 
testdir
testdir
 
 
tests
tests
 
 
verilator
verilator
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
cascade.power.hier.rpt.json
cascade.power.hier.rpt.json
 
 
cascade_copy.power.hier.rpt.json
cascade_copy.power.hier.rpt.json
 
 
conv_bw.power.hier.rpt.json
conv_bw.power.hier.rpt.json
 
 
conv_bw_1k.power.hier.rpt.json
conv_bw_1k.power.hier.rpt.json
 
 
conv_bw_5k.power.hier.rpt.json
conv_bw_5k.power.hier.rpt.json
 
 
conv_bw_pe_0x0101.power.hier.rpt.json
conv_bw_pe_0x0101.power.hier.rpt.json
 
 
conv_bw_pe_0x0102.power.hier.rpt.json
conv_bw_pe_0x0102.power.hier.rpt.json
 
 
diff.txt
diff.txt
 
 
getAreaAndPower.py
getAreaAndPower.py
 
 
harris.power.hier.rpt.json
harris.power.hier.rpt.json
 
 
merged.json
merged.json
 
 
please.txt
please.txt
 
 

Repository files navigation

NEM Relay CGRA (Coarse-Grain Reconfigurable Architecture) Generator

Instructions: RTL Simulation and Gate-Level Simulation (GLS)

The goal is first to get the waveforms as *.vcd files using verilator. Then, you want to take the input stimuli from the VCD and apply them to the gate-level netlist to get the gate-level activities:

  1. Clone modified TestBenchGenerator:
    • git clone https://github.com/akashlevy/TestBenchGenerator.git ../TestBenchGenerator
  2. Look at .travis.yml and install packages as done in there. Recommended: use Linux for setup. Current instructions:
    • sudo apt-get install csh verilator make g++
    • Install Miniconda:
      • wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
      • bash miniconda.sh -u -b -p $HOME/miniconda
      • Ensure that base is activated automatically
      • Restart terminal or source user profile script (e.g. .bash_profile) to activate it
      • rm miniconda.sh
    • pip install pytest numpy delegator.py bit_vector==0.42a0
  3. Go to testdir and run make vcdtest APP=<app_name> to generate the waveform. The VCD output will be in verilator/generator_z_tb
    • You might need a large amount of RAM for verilator to work
    • On Ubuntu, you can try creating a swap file: https://linuxize.com/post/how-to-add-swap-space-on-ubuntu-18-04/
  4. Copy the VCD output to gls: cp verilator/generator_z_tb/<app_name>.vcd gls/inputs/<app_name>.vcd
  5. Symlink your mflowgen outputs/ directory from the signoff step as design in gls/
  6. Symlink your Liberty/Verilog files from the NEM-Relay-CAD repo in gls/lib/. This will work by default if your NEM-Relay-CAD repo and NEM-Relay-CGRA repo are cloned to the same directory.
  7. Copy the bitstream <app_name>.bsa for the app to gls/inputs/. The example application bitstreams are already copied there.
  8. Open the VCD and find the cycle number you want to start measuring toggling (activity factor) from
    • Typically, you want to skip the configuration phase of the CGRA, so choose the cycle that corresponds to the beginning of the usage phase after the end of configuration
    • For several CGRA applications, this cycle number has been found and stored in defines.py for convenience
    • If you are using one of these CGRA applications, you don't need to supply <active_cycle_number>
  9. Make sure the requirement modules are loaded. Add these lines to your ~/.cshrc or equivalent profile:
    • module load vcs/O-2018.09-SP1
    • module load prime
    • module load pts/K-2015.12
  10. Run GLS: python gls.py <app_name> <active_cycle_number>
  11. Then go into synopsys-ptpx-gl and configure your symlinks
    • nldm_nems40tt.db should point to the latest compiled NEMS lib file
    • stdcells.db should point to the compiled library cells from the PDK
    • nems should point to the mflowgen outputs/ directory from the signoff step of your NEMS design
    • vanilla should point to the mflowgen outputs/ directory from the signoff step of your vanilla design
  12. Finally, run run.sh <app_name> <nems_or_vanilla> which will run PTPX and generate signoff reports in gls/results/<nems_or_vanilla>.
  13. Done!

To visualize the power number breakdown after PTPX using sunburst-chart: 13. First go to gls/results/ and run powjson.py. - This will automatically parse all the power reports for all apps that were run and generate jsons. 14. Then upload the desired HSIB file to an online destination. - One good way to do this is simply to commit the json files to the repository and find the link to the raw file on GitHub. 15. Navigate to http://www.akashlevy.com/sunburst-chart/example/flare/ and enter the URL of the JSON file. 16. Done!

NOTES

VCD trace output from Verilator is in picoseconds.

Old Info from CGRAGenerator

Status
linux build status

See doc/srnotes.txt for Steve's notes on organization and such (still TBD as of this writing).

Quick guide to repository contents as of 03/2017:

  • doc/ => documentation (still TBD as of this writing)
  • Genesis2Tools => for building the project and running it with e.g. travis
  • hardware/generator_z => latest instantiation of the generator
  • hardware/generator_z/top => go here to run the generator
  • verilator => verilator experiments
  • verilator/generator_z_tb => go here to run the generator testbench (under development)

TODO

  • should replace Genesis2Tools with a build from within the travis script maybe

OBSOLETE: I think maybe these are obsolete?

  • hardware/pe => Artem's PE generator (right?)
  • hardware/sb => Ankita's switchbox generator (yes?)
  • sr-proposal/ => Steve's proposal for a unified framework for the generators

About

Jade CGRA using NEM relay interconnect fabric. Related repositories: NEM-Relay-CGRA-Flow, NEM-Relay-CAD

Topics

cgrafpganemsprogrammable-logicrtlverilatorverilogvlsi

Resources

Readme
BSD-3-Clause license
Activity

Stars

9 stars

Watchers

1 watching

Forks

5 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.