Skip to content

Commit d9544a6

Browse files
sashimi-yzhsequencer
authored andcommitted
add wrapper to generate verilog
1 parent 898949c commit d9544a6

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ out/
44
.idea/
55
.idea_modules/
66
test_run_dir/
7+
8+
build/

Makefile

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
BUILD_DIR = ./build
2+
3+
test:
4+
mill -i __.test
5+
6+
verilog:
7+
mkdir -p $(BUILD_DIR)
8+
mill -i __.test.runMain Elaborate -td $(BUILD_DIR)
9+
10+
help:
11+
mill -i __.test.runMain Elaborate --help
12+
113
compile:
214
mill -i __.compile
315

@@ -14,7 +26,6 @@ reformat:
1426
mill -i __.reformat
1527

1628
checkformat:
17-
mill -i __.checkFormat
29+
mill -i __.checkFormat
1830

19-
test:
20-
mill -i __.test
31+
.PHONY: test verilog help compile bsp reformat checkformat clean

playground/src/Elaborate.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
object Elaborate extends App {
2+
(new chisel3.stage.ChiselStage).execute(args, Seq(chisel3.stage.ChiselGeneratorAnnotation(() => new GCD())))
3+
}

0 commit comments

Comments
 (0)