diff options
| author | azidar | 2016-01-20 09:53:05 -0800 |
|---|---|---|
| committer | azidar | 2016-01-20 09:53:05 -0800 |
| commit | a94299f2feeba75923fb3f3039f1063eaa730730 (patch) | |
| tree | efb572938234d8fccef4b3534d94d75e8b7c2904 /src/main/stanza/ir-utils.stanza | |
| parent | 263559753a0584ca7896607e643d9e6348811dff (diff) | |
WIP, need to update chirrtl with new mask syntax
Diffstat (limited to 'src/main/stanza/ir-utils.stanza')
| -rw-r--r-- | src/main/stanza/ir-utils.stanza | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/stanza/ir-utils.stanza b/src/main/stanza/ir-utils.stanza index 7a9cff31..2f4bf973 100644 --- a/src/main/stanza/ir-utils.stanza +++ b/src/main/stanza/ir-utils.stanza @@ -356,10 +356,7 @@ defmethod print (o:OutputStream, c:Stmt) : else : print-all(o, ["cmem " name(c) " : " type(c) "[" size(c) "]"]) (c:CDefMPort) : - if direction(c) == MRead : - print-all(o, [direction(c) " mport " name(c) " = " mem(c) "[" exps(c)[0] "], " exps(c)[1]]) - else : - print-all(o, [direction(c) " mport " name(c) " = " mem(c) "[" exps(c)[0] "], " exps(c)[1] ", " exps(c)[2]]) + print-all(o, [direction(c) " mport " name(c) " = " mem(c) "[" exps(c)[0] "], " exps(c)[1]]) if not c typeof Conditionally|Begin|Empty: print-debug(o,c) @@ -469,6 +466,7 @@ defmethod map (f: Expression -> Expression, c:Stmt) -> Stmt : (c:BulkConnect) : BulkConnect(info(c),f(loc(c)), f(exp(c))) (c:Stop) : Stop(info(c),ret(c),f(clk(c)),f(en(c))) (c:Print) : Print(info(c),string(c),map(f,args(c)),f(clk(c)),f(en(c))) + (c:CDefMPort) : CDefMPort(info(c),name(c), mem(c), f(clock(c)), f(reset(c)), f(init(c))) (c) : c public defmulti map<?T> (f: Stmt -> Stmt, c:?T&Stmt) -> T |
