summaryrefslogtreecommitdiff
path: root/coreMacros/src
diff options
context:
space:
mode:
authorAlbert Magyar2020-02-03 13:42:39 -0700
committerGitHub2020-02-03 13:42:39 -0700
commit509895c428f73b1c47e018df33e6cb64834e6e94 (patch)
treee2912c1c7528df820fe9163272397edd7efa1259 /coreMacros/src
parent4f1f638663a7176ac28d95d71c14a37021314c3b (diff)
Add read-under-write parameter to SyncReadMem (#1183)
* Add support for readUnderWrite to SyncReadMem * Add write collision behavior test to MemorySpec * Update constant names
Diffstat (limited to 'coreMacros/src')
-rw-r--r--coreMacros/src/main/scala/chisel3/internal/sourceinfo/SourceInfoTransform.scala3
1 files changed, 3 insertions, 0 deletions
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