diff options
| -rw-r--r-- | Makefile | 5 | ||||
| -rw-r--r-- | README.md | 8 |
2 files changed, 9 insertions, 4 deletions
@@ -21,12 +21,15 @@ install-mac: build-deploy: cd $(firrtl_dir) && stanza -i firrtl-main.stanza -o $(root_dir)/utils/bin/firrtl-stanza + make set-stanza build: cd $(firrtl_dir) && stanza -i firrtl-test-main.stanza -o $(root_dir)/utils/bin/firrtl-stanza + make set-stanza build-fast: cd $(firrtl_dir) && stanza -i firrtl-test-main.stanza -o $(root_dir)/utils/bin/firrtl-stanza -flags OPTIMIZE + make set-stanza check: cd $(test_dir) && lit -v . --path=$(root_dir)/utils/bin/ @@ -80,4 +83,4 @@ set-scala: set-stanza: ln -f -s $(root_dir)/utils/bin/firrtl-stanza $(root_dir)/utils/bin/firrtl -.PHONY: all install build-deploy build check clean fail succeed regress set-scala set-stanza build-scala +.PHONY: all install build-deploy build check clean fail succeed regress set-scala set-stanza build-scala test-scala @@ -20,7 +20,9 @@ `make # Build & test` #### Scala implementation -The Scala FIRRTL implementation relies upon sbt. +The Scala FIRRTL implementation relies upon sbt 0.13.6. It uses sbt-assembly to create a fat JAR. +Using a bash script and a symbolic link it can be used with the same command-line arguments as the stanza implementation. Example use: - `sbt -mem 2048 "run-main Example <input> <output>` -This command will read in <input> FIRRTL file, parse it, then output the AST to <output> + `make build-scala` + `make set-scala` # Creates symbolic link, make set-stanza reverts to stanza implementation + `./utils/bin/firrtl -i <input> -o <output> -X <compiler>` |
