readme addition | pipe out output | renamed output files
This commit is contained in:
10
README.md
10
README.md
@@ -50,6 +50,16 @@ build an alternate configuration.
|
||||
make PROJECT=yourproject CONFIG=YourConfig
|
||||
./simulator-yourproject-YourConfig ...
|
||||
|
||||
Additionally, you can use a helper make rule to run your simulation binary. The output will be in the "verisim"
|
||||
directory under the file names: `<binary-name>.<type of project/config/etc it ran on>.*`
|
||||
|
||||
# first make your verisim rtl simulator binary
|
||||
make SUB_PROJECT=example
|
||||
# then run the binary (with no vcd generation)
|
||||
make SUB_PROJECT=example BINARY=<my-riscv-binary> run-binary
|
||||
# then run the binary (with vcd generation)
|
||||
make SUB_PROJECT=example BINARY=<my-riscv-binary> run-binary-debug
|
||||
|
||||
## Submodules and Subdirectories
|
||||
|
||||
The submodules and subdirectories for the project template are organized as
|
||||
|
||||
@@ -71,7 +71,7 @@ verilog: $(sim_vsrcs)
|
||||
# helper rules to run simulator
|
||||
#########################################################################################
|
||||
run-binary: $(sim)
|
||||
$(sim) $(PERMISSIVEON) $(SIM_FLAGS) $(PERMISSIVEOFF) $(BINARY)
|
||||
$(sim) $(PERMISSIVEON) $(SIM_FLAGS) $(PERMISSIVEOFF) $(BINARY) 3>&1 1>&2 2>&3 | spike-dasm > $(sim_out_name).out
|
||||
|
||||
#########################################################################################
|
||||
# run assembly/benchmarks rules
|
||||
|
||||
@@ -84,7 +84,7 @@ $(sim_debug): $(model_mk_debug)
|
||||
# helper rules to run simulator with debug
|
||||
#########################################################################################
|
||||
run-binary-debug: $(sim_debug)
|
||||
$(sim_debug) $(SIM_FLAGS) -v$(long_name).vcd $(BINARY)
|
||||
$(sim_debug) $(SIM_FLAGS) -v$(sim_out_name).vcd $(BINARY) 3>&1 1>&2 2>&3 | spike-dasm > $(sim_out_name).out
|
||||
|
||||
#########################################################################################
|
||||
# create a verisim vpd rule
|
||||
|
||||
@@ -90,7 +90,7 @@ $(sim_debug) : $(sim_vsrcs) $(sim_dotf)
|
||||
# helper rules to run simulator with debug
|
||||
#########################################################################################
|
||||
run-binary-debug: $(sim_debug)
|
||||
$(sim_debug) $(PERMISSIVEON) $(SIM_FLAGS) +vcdplusfile=$(long_name).vpd $(PERMISSIVEOFF) $(BINARY)
|
||||
$(sim_debug) $(PERMISSIVEON) $(SIM_FLAGS) +vcdplusfile=$(sim_out_name).vpd $(PERMISSIVEOFF) $(BINARY) 3>&1 1>&2 2>&3 | spike-dasm > $(sim_out_name).out
|
||||
|
||||
#########################################################################################
|
||||
# create a vcs vpd rule
|
||||
|
||||
@@ -143,8 +143,9 @@ output_dir=$(sim_dir)/output/$(long_name)
|
||||
#########################################################################################
|
||||
# helper variables to run binaries
|
||||
#########################################################################################
|
||||
BINARY ?= none
|
||||
BINARY ?=
|
||||
SIM_FLAGS ?= +verbose
|
||||
sim_out_name = $(notdir $(basename $(BINARY))).$(long_name)
|
||||
|
||||
#########################################################################################
|
||||
# build output directory for compilation
|
||||
|
||||
Reference in New Issue
Block a user