From 509895c428f73b1c47e018df33e6cb64834e6e94 Mon Sep 17 00:00:00 2001 From: Albert Magyar Date: Mon, 3 Feb 2020 13:42:39 -0700 Subject: Add read-under-write parameter to SyncReadMem (#1183) * Add support for readUnderWrite to SyncReadMem * Add write collision behavior test to MemorySpec * Update constant names --- .../main/scala/chisel3/internal/sourceinfo/SourceInfoTransform.scala | 3 +++ 1 file changed, 3 insertions(+) (limited to 'coreMacros/src') diff --git a/coreMacros/src/main/scala/chisel3/internal/sourceinfo/SourceInfoTransform.scala b/coreMacros/src/main/scala/chisel3/internal/sourceinfo/SourceInfoTransform.scala index d38396f4..6d7c3411 100644 --- a/coreMacros/src/main/scala/chisel3/internal/sourceinfo/SourceInfoTransform.scala +++ b/coreMacros/src/main/scala/chisel3/internal/sourceinfo/SourceInfoTransform.scala @@ -53,6 +53,9 @@ class MemTransform(val c: Context) extends SourceInfoTransformMacro { def apply[T: c.WeakTypeTag](size: c.Tree, t: c.Tree): c.Tree = { q"$thisObj.do_apply($size, $t)($implicitSourceInfo, $implicitCompileOptions)" } + def apply_ruw[T: c.WeakTypeTag](size: c.Tree, t: c.Tree, ruw: c.Tree): c.Tree = { + q"$thisObj.do_apply($size, $t, $ruw)($implicitSourceInfo, $implicitCompileOptions)" + } } // Workaround for https://github.com/sbt/sbt/issues/3966 -- cgit v1.2.3