Skip to content

Commit 0712ebd

Browse files
committed
fixing makefile
1 parent 15ca0bc commit 0712ebd

3 files changed

Lines changed: 5 additions & 62 deletions

File tree

.github/workflows/scalafmt.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.github/workflows/synth_sta.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: "Synthesis and Results"
22

33
on:
44
push:
5-
branches: ["main"]
5+
branches: [ "main" ]
66
pull_request:
7-
branches: ["main"]
7+
branches: [ "main" ]
88

99
jobs:
1010
synth-and-publish:
@@ -186,6 +186,7 @@ jobs:
186186
run: |
187187
mkdir -p artifacts
188188
cp -r out/results artifacts/
189+
cp -r out/verilog artifacts/
189190
# Copy netlists from out/synth
190191
find out/synth -name "*.v" -exec cp {} artifacts/ \;
191192
# Copy any verilog from generated/ if needed

Makefile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,11 @@ clean:
3434
find . -type f -name "*.synctex.gz" -delete
3535
find . -type f -name "*.pdf" -delete
3636

37-
# Generate verilog from the Chisel code
3837
# Generate verilog from the Chisel code
3938
verilog:
4039
@echo Generating Verilog...
41-
@mkdir -p generated
42-
@$(SBT) "runMain tech.rocksavage.Main verilog --mode print --module tech.rocksavage.chiselware.uart.Uart --config-class tech.rocksavage.chiselware.uart.UartConfig" | awk '/^\/\/ Generated by CIRCT/,0' > generated/combined_uart.v
43-
@echo "Extracting individual modules..."
44-
@cd generated && python3 $(shell pwd)/scripts/split_verilog.py combined_uart.v
45-
@echo "Verilog files generated successfully!"
46-
@ls -l generated/*.v | wc -l | xargs -I{} echo "Total modules generated: {}"
47-
40+
@$(SBT) "runMain tech.rocksavage.Main verilog --mode write --module tech.rocksavage.chiselware.uart.Uart --config-class tech.rocksavage.chiselware.uart.UartConfig"
41+
4842
# Run the tests
4943
test:
5044
@echo Running tests...

0 commit comments

Comments
 (0)