Skip to content

Commit

Permalink
riscv-mini use makefile to trigger full test
Browse files Browse the repository at this point in the history
  • Loading branch information
sbeamer committed Jan 31, 2023
1 parent d29a0a4 commit 8a6793a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
5 changes: 5 additions & 0 deletions riscv-mini/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
top
Tile.h
Tile.fir
test-*
VTile
16 changes: 14 additions & 2 deletions riscv-mini/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
generated_dir = $(abspath riscv-mini/generated-src)
fir_filename = Tile.fir
fir_path = $(abspath $(fir_filename))

riscv-mini/README.md:
git submodule update --init riscv-mini

$(generated_dir)/$(fir_filename): riscv-mini/README.md
cd riscv-mini; make compile
cd riscv-mini; make compile

$(fir_filename): $(generated_dir)/$(fir_filename)
cp $(generated_dir)/$(fir_filename) .


Tile.h: $(fir_filename)
cd ../essent; sbt 'run -O2 $(fir_path)'

Expand All @@ -20,3 +20,15 @@ INCLUDES = -I../firrtl-sig

top: top.cc mm.cc mm.h Tile.h
$(CXX) $(CXXFLAGS) $(INCLUDES) top.cc mm.cc -o top

.PHONY: clean
clean:
rm -rf $(fir_filename) Tile.h top VTile test-*

VTile: riscv-mini/README.md
cd riscv-mini; make verilator
cp riscv-mini/VTile .

.PHONY: test
test: top VTile
./test.sh

0 comments on commit 8a6793a

Please sign in to comment.