diff options
| author | azidar | 2015-04-23 17:53:29 -0700 |
|---|---|---|
| committer | azidar | 2015-04-23 17:53:29 -0700 |
| commit | 32148a311e06e8028b95da4bd8b1c888b5d8220f (patch) | |
| tree | d2c0fc6bf281d907746079b31b0feddf542f277b /src/main/stanza/ir-utils.stanza | |
| parent | 3862865b8c70dd21e1a436dd79cfd165bebe5f43 (diff) | |
Not finished commmit
Diffstat (limited to 'src/main/stanza/ir-utils.stanza')
| -rw-r--r-- | src/main/stanza/ir-utils.stanza | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/stanza/ir-utils.stanza b/src/main/stanza/ir-utils.stanza index 283fe9ea..507ccf94 100644 --- a/src/main/stanza/ir-utils.stanza +++ b/src/main/stanza/ir-utils.stanza @@ -180,7 +180,7 @@ defmethod print (o:OutputStream, c:Stmt) : (c:Connect) : print-all(o, [loc(c) " := " exp(c)]) (c:OnReset) : - print-all(o, ["on-reset " reg(c) " := " exp(c)]) + print-all(o, ["on-reset " loc(c) " := " exp(c)]) (c:EmptyStmt) : print(o, "skip") print-debug(o,c) @@ -260,7 +260,7 @@ defmethod map (f: Expression -> Expression, c:Stmt) -> Stmt : (c:DefInstance) : DefInstance(name(c), f(module(c))) (c:Conditionally) : Conditionally(f(pred(c)), conseq(c), alt(c)) (c:Connect) : Connect(f(loc(c)), f(exp(c))) - (c:OnReset) : OnReset(f(reg(c)),f(exp(c))) + (c:OnReset) : OnReset(f(loc(c)),f(exp(c))) (c) : c public defmulti map<?T> (f: Stmt -> Stmt, c:?T&Stmt) -> T |
