Skip to content

Commit

Permalink
Added make option to include Pseudo
Browse files Browse the repository at this point in the history
Signed-off-by: Afonso Oliveira <[email protected]>
  • Loading branch information
AFOliveira committed Oct 28, 2024
1 parent 25c09e6 commit 1f8f01d
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,39 @@ ENV_H := ../riscv-tests/env/encoding.h
OPENOCD_H := ../riscv-openocd/src/target/riscv/encoding.h
INSTALL_HEADER_FILES := $(ISASIM_H) $(PK_H) $(ENV_H) $(OPENOCD_H)

ifdef PSEUDO
PSEUDO_FLAG := -pseudo
else
PSEUDO_FLAG :=
endif

default: everything

.PHONY: everything encoding.out.h inst.chisel inst.go latex inst.sverilog inst.rs clean install instr-table.tex priv-instr-table.tex inst.spinalhdl
.PHONY: everything encoding.out.h inst.chisel inst.go latex inst.sverilog inst.rs clean install instr-table.tex priv-instr-table.tex inst.spinalhdl pseudo

pseudo:
@$(MAKE) PSEUDO=1 everything

everything:
@./parse.py -c -go -chisel -sverilog -rust -latex -spinalhdl $(EXTENSIONS)
@./parse.py $(PSEUDO_FLAG) -c -go -chisel -sverilog -rust -latex -spinalhdl $(EXTENSIONS)

encoding.out.h:
@./parse.py -c rv* unratified/rv_* unratified/rv32* unratified/rv64*
@./parse.py -c $(PSEUDO_FLAG) rv* unratified/rv_* unratified/rv32* unratified/rv64*

inst.chisel:
@./parse.py -chisel $(EXTENSIONS)
@./parse.py -chisel $(PSEUDO_FLAG) $(EXTENSIONS)

inst.go:
@./parse.py -go $(EXTENSIONS)
@./parse.py -go $(PSEUDO_FLAG) $(EXTENSIONS)

latex:
@./parse.py -latex $(EXTENSIONS)
@./parse.py -latex $(PSEUDO_FLAG) $(EXTENSIONS)

inst.sverilog:
@./parse.py -sverilog $(EXTENSIONS)
@./parse.py -sverilog $(PSEUDO_FLAG) $(EXTENSIONS)

inst.rs:
@./parse.py -rust $(EXTENSIONS)
@./parse.py -rust $(PSEUDO_FLAG) $(EXTENSIONS)

clean:
rm -f inst* priv-instr-table.tex encoding.out.h
Expand All @@ -44,4 +53,4 @@ instr-table.tex: latex
priv-instr-table.tex: latex

inst.spinalhdl:
@./parse.py -spinalhdl $(EXTENSIONS)
@./parse.py -spinalhdl $(PSEUDO_FLAG) $(EXTENSIONS)

0 comments on commit 1f8f01d

Please sign in to comment.