Skip to content
Behrad Niazmand edited this page Oct 10, 2017 · 1 revision
  1. Clone the repository
  2. open a terminal and navigate to the Bonfire directory
  3. make sure that your modelsim works properly from your terminal
  4. use the simulate.py script to generate and simulate the system.
  5. all the simulation files would be stored in Bonfire/tmp/simul_temp folder

Examples

  • python simulate.py -D 4 -credit_based_FC -Rand 0.01 -PS 8 8 -sim 10000 -end 11000 generates a 4X4 mesh NoC with credit based flow control and connects it to random traffic pattern generators with injection rate of 0.1 and packet length of 8. the script finally will inject the packets until 10000 ns. and runs the simulation for 11000.

The simulation will automatically run and show the waveform of the important signals. If simulation is successful and all packets and flits are transmitted successfully, you should be able to see that the number of lines in received.txt and sent.txt files match. Also, the program shows the results after exiting ModelSim. You should see packet loss as 0.00% if everything went fine.

  • python simulate.py -D 2 -credit_based_FC -packet_drop -FC -FI -NI_Test -SHMU -Rand 0.01 -PS 8 8 -sim 10000 -end 11000 generates a 2x2 credit based router with packet dropping FIFO and Fault injectors with SHMU mapped on processing elements. (the Testbench fakes the PEs).

Clone this wiki locally