Skip to content

Commit

Permalink
Fix bug in VerilogMemDelays (#795)
Browse files Browse the repository at this point in the history
* Change VerilogMemDelays to put new Statements at end of Module

Fixes #547

This is instead of putting them right after the modified DefMemory which could
result in use before declaration errors for things that feed into the new
logic.

* Adds tests that show VerilogMemDelays crashing. (#792)
  • Loading branch information
jackkoenig authored Apr 26, 2018
0 parents commit a295a6d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
root_dir ?= $(PWD)
regress_dir ?= $(root_dir)/regress
install_dir ?= $(root_dir)/utils/bin

SBT ?= sbt
SBT_FLAGS ?= -Dsbt.log.noformat=true

scala_jar ?= $(install_dir)/firrtl.jar
scala_src := $(shell find src -type f \( -name "*.scala" -o -path "*/resources/*" \))

clean:
rm -f $(install_dir)/firrtl.jar
$(SBT) "clean"

build: build-scala

regress: $(scala_jar)
cd $(regress_dir) && $(install_dir)/firrtl -i rocket.fir -o rocket.v -X verilog

# Scala Added Makefile commands

build-scala: $(scala_jar)

$(scala_jar): $(scala_src)
$(SBT) "assembly"

test-scala:
$(SBT) test

jenkins-build: clean
$(SBT) $(SBT_FLAGS) +clean +test +publish-local
$(SBT) $(SBT_FLAGS) scalastyle coverage test
$(SBT) $(SBT_FLAGS) coverageReport

.PHONY: build clean regress build-scala test-scala

0 comments on commit a295a6d

Please sign in to comment.