User Manual - Project-Bonfire/Bonfire GitHub Wiki

  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 will be stored in Bonfire/tmp/simul_temp folder

Examples

  • python3 simulate.py -D 4 4 -Rand 0.01 -PS 8 8 -sim 10000 -end 12000 - runs a 4x4 network with packet injection rate of 0.01 and packet size of 8 flits. The injection of packets will stop at 10000 ns and simulation will stop at 12000 ns.

  • python simulate.py -D 2 2 -Rand 0.02 -PS 8 8 -sim 10000 -end 12000 -lat - runs a 2x2 network with packet injection rate of 0.02 and packet size of 8 flits. The injection of packets will stop at 10000 ns and simulation will stop at 12000 ns. At the end of simulation the tool reports the latency results!.

  • python simulate.py -D 4 4 -vc -Rand 0.05 -PS 8 8 -sim 10000 -end 12000 - runs a 4x4 network with virtual channels. Packet injection rate is 0.01 and packet size is 8 flits. the injection of packets will stop at 10000 ns and simulation will stop at 12000 ns.

The simulation will automatically run and show the waveform of 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.