Makefile: set difftest_verilog the default target (#368)

This commit changes the default target of make to difftest_verilog.

The previous default target is emu. However, emu is for only the Verilator
target, one of the three supported simulation platforms.

To make the default target clearer, we change the default target to
difftest_verilog. It generates example difftest design-under-test
interfaces and C++ files. Using this main target, user may connect
their own design (maybe in Verilog) to difftest for simulation.
This commit is contained in:
Yinan Xu 2024-05-09 21:29:02 +08:00 committed by GitHub
parent a0d5e52f08
commit 5e13cd1be8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ jobs:
- name: Generate Verilog
run: |
make difftest_verilog
make
test-difftest-nutshell:
runs-on: ubuntu-22.04

View File

@ -28,6 +28,7 @@ RTL_SUFFIX ?= v
SIM_TOP_V = $(RTL_DIR)/$(SIM_TOP).$(RTL_SUFFIX)
# generate difftest files for non-chisel design.
.DEFAULT_GOAL := difftest_verilog
difftest_verilog:
mill -i difftest.test.runMain difftest.DifftestMain --target-dir $(RTL_DIR)
@ -44,7 +45,6 @@ TIME_CMD = time -a -o $(TIMELOG)
# remote machine with more cores to speedup c++ build
REMOTE ?= localhost
.DEFAULT_GOAL = emu
# simulation
SIM_CONFIG_DIR = $(abspath ./config)