aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorazidar2015-04-23 17:57:01 -0700
committerazidar2015-04-23 17:57:01 -0700
commit0224127dc4dba9cf35b0208d32a116b7d33ad925 (patch)
tree4b2ad52cbccb56f7eb1e3754ac6a0a2b2f7afeea /src/main
parent7f8758420a2a46d7cf19441e9fbd1dba82cae612 (diff)
Fixed bug in map where mems were mysteriously turning into regs
Diffstat (limited to 'src/main')
-rw-r--r--src/main/stanza/ir-utils.stanza2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/stanza/ir-utils.stanza b/src/main/stanza/ir-utils.stanza
index 86fe56d1..a80c2d7e 100644
--- a/src/main/stanza/ir-utils.stanza
+++ b/src/main/stanza/ir-utils.stanza
@@ -300,7 +300,7 @@ defmethod map (f: Type -> Type, c:Stmt) -> Stmt :
match(c) :
(c:DefWire) : DefWire(name(c),f(type(c)))
(c:DefRegister) : DefRegister(name(c),f(type(c)))
- (c:DefMemory) : DefRegister(name(c),f(type(c)))
+ (c:DefMemory) : DefMemory(name(c),f(type(c)))
(c) : c
public defmulti mapr<?T> (f: Width -> Width, t:?T&Type) -> T