From 0224127dc4dba9cf35b0208d32a116b7d33ad925 Mon Sep 17 00:00:00 2001 From: azidar Date: Thu, 23 Apr 2015 17:57:01 -0700 Subject: Fixed bug in map where mems were mysteriously turning into regs --- src/main/stanza/ir-utils.stanza | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 (f: Width -> Width, t:?T&Type) -> T -- cgit v1.2.3