From 373edb42380875eafc8b9de54d80b939d263d041 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 16 Feb 2025 22:36:57 +0200 Subject: add some kind of toplevel --- tb/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tb/Makefile') diff --git a/tb/Makefile b/tb/Makefile index a76747f..f34cb5e 100644 --- a/tb/Makefile +++ b/tb/Makefile @@ -1,4 +1,4 @@ -all: rv2insn sched +all: rv2insn sched ttarv32 .PHONY: sched sched: sched_tb.sv ../src/sched.sv ../src/common.svh @@ -12,3 +12,11 @@ rv2insn: rv2insn_tb.sv ../src/rv2insn.sv ../src/common.svh riscv32-unknown-elf-objcopy -O verilog rv2insn rv2insn.hex verilator --Mdir rv2insn_objdir --assert --trace --binary -I../src rv2insn_tb.sv ./rv2insn_objdir/Vrv2insn_tb + +.PHONY: ttarv32 +ttarv32: ttarv32_tb.sv ../src/ttarv32.sv ../src/rv2insn.sv ../src/sched.sv ../src/common.svh + riscv32-unknown-elf-gcc -ffreestanding -nostdlib -march=rv32i -mabi=ilp32 \ + -Wl,-Ttext=0 data/rv2insn.S -o ttarv32 + riscv32-unknown-elf-objcopy -O verilog rv2insn ttarv32.hex + verilator --Mdir ttarv32_objdir --assert --trace --binary -I../src ttarv32_tb.sv + ./ttarv32_objdir/Vttarv32_tb -- cgit v1.2.3