diff options
| author | azidar | 2015-02-24 16:30:40 -0800 |
|---|---|---|
| committer | azidar | 2015-02-24 16:30:40 -0800 |
| commit | d0dddb37c056647e7fed4e9771650ef41f85bae3 (patch) | |
| tree | 8a72fc312aa8a0338b331454ce66fb9c81b173c6 /src/main/stanza/passes.stanza | |
| parent | 2353d640907a7b04477b06a5b3da6b7bbafc448d (diff) | |
Rewrote README to include installation instructions and stanza justification. Added response to feedback, locatd in notes/feedbackQA*. Use two different mains, one for testing and one for deployment (make build vs make build-deploy).
Diffstat (limited to 'src/main/stanza/passes.stanza')
| -rw-r--r-- | src/main/stanza/passes.stanza | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/stanza/passes.stanza b/src/main/stanza/passes.stanza index f1c9b248..4a5634d0 100644 --- a/src/main/stanza/passes.stanza +++ b/src/main/stanza/passes.stanza @@ -4,6 +4,7 @@ defpackage firrtl.passes : import firrtl.ir2 import firrtl.ir-utils import widthsolver + import firrtl-main ;============== EXCEPTIONS ================================= defclass PassException <: Exception @@ -62,11 +63,10 @@ defmethod print (o:OutputStream, k:Kind) : (k:StructuralMemKind) : "smem:" defmethod print (o:OutputStream, e:WRef) : - match(type(e)) : - (t:UnknownType) : - print-all(o,[kind(e) name(e)]) - (t) : - print-all(o,[kind(e) name(e) ":" type(e)]) + if PRINT-TYPES : + print-all(o,[kind(e) name(e) ":" type(e)]) + else : + print-all(o,[kind(e) name(e)]) defmethod print (o:OutputStream, e:WField) : print-all(o,[exp(e) "." name(e)]) |
