Skip to content

Commit

Permalink
up to v0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
yuchangyuan committed Mar 23, 2024
1 parent adaeb3e commit c90ea01
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ Need podman to convert image to apptainer acceptable format.

#+begin_src sh
podman load -i result
podman save localhost/chisel:v0.3 -o tmp.tar.gz
podman image rm localhost/chisel:v0.3
podman save localhost/chisel:v0.4 -o tmp.tar.gz
podman image rm localhost/chisel:v0.4

apptainer pull chisel2verilog_5-0.3.sif docker-archive:tmp.tar.gz
apptainer pull chisel2verilog_5-0.4.sif docker-archive:tmp.tar.gz
rm tmp.tar.gz
#+end_src

Expand Down Expand Up @@ -62,8 +62,8 @@ Then with below command, =test.Cnt= module will convert to =cnt.sv= in =rtl= dir
cd example
mkdir -p rtl

../chisel2verilog_5-0.3.sif src/*.scala -- test.Cnt -td rtl
../chisel2verilog_5-0.4.sif src/*.scala -- test.Cnt -td rtl

# or strip debug info with below command
../chisel2verilog_5-0.3.sif src/*.scala -- test.Cnt -td rtl -- --strip-debug-info
../chisel2verilog_5-0.4.sif src/*.scala -- test.Cnt -td rtl -- --strip-debug-info
#+end_src
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
name = "chisel-base";
tag = "v0.2";

contents = with pkgs; [
copyToRoot = with pkgs; [
usrBinEnv
binSh

Expand All @@ -58,7 +58,7 @@

chisel = buildImage {
name = "chisel";
tag = "v0.3";
tag = "v0.4";

diskSize = 3000;

Expand Down
12 changes: 12 additions & 0 deletions gen_sif.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh
VER=0.4

nix build
podman load -i result
rm result

podman save localhost/chisel:v$VER -o tmp.tar.gz
podman image rm localhost/chisel:v$VER

apptainer pull chisel2verilog_5-${VER}.sif docker-archive:tmp.tar.gz
rm tmp.tar.gz

0 comments on commit c90ea01

Please sign in to comment.