How to quickly get started with Hummingbird v2: how to simulate other test files

How to quickly get started with Hummingbird v2: how to simulate other test files


Preface

  When simulating on Ubuntu, I found that the official manual seemed to only be able to simulate the add program, so I went to the Internet to find information, but there seemed to be no explanation in this regard. Therefore, I write this blog after fumbling around.
  If you don’t know how to configure Ubuntu, please see Hummingbird v2 Quick Start Ubuntu Environment Configuration .


Implementation

  First we open e203_hbirdv2 under home, and then enter the vsim folder. After compilation, we can see that the vsim folder looks like this:
Insert image description here  After that, we open the Makefile (download vim in advance), as shown in the figure:
Insert image description here
  Press the E key to enter text editing:
Insert image description here
  Press the i key to start editing , find TESTNAME, we can see that it was originally rv32ui-p-add (I have changed it to addi in the picture above). After changing it to the file name you want to simulate, exit the editing mode, enter: wq to save and exit.
  Finally, open the terminal under the vsim folder, enter make run_test SIM=iverilog, and press Enter. You can see the following picture, indicating success:
Insert image description here
  After entering make wave SIM=iverilog, you can call up the waveform chart (the test bench has a written program):
Insert image description here  You can see that the test of addi is in the upper middle part. Wave file. At this point, the steps are completed.

Guess you like

Origin blog.csdn.net/weixin_44126785/article/details/120955155