diff options
| author | Jack | 2015-10-14 14:00:21 -0700 |
|---|---|---|
| committer | Jack | 2015-10-14 14:00:21 -0700 |
| commit | 0122af3d602608bf41df7af1703a04bb738c0531 (patch) | |
| tree | 41be5375ea2aee17c392ac883963582c5e779d74 | |
| parent | 9b737de6551e7446dfd92d86cd009b4b2f95c980 (diff) | |
Updated Makefile and README to be more friendly to Scala implementation
| -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>` |
