diff options
| author | Albert Magyar | 2020-02-03 13:42:39 -0700 |
|---|---|---|
| committer | GitHub | 2020-02-03 13:42:39 -0700 |
| commit | 509895c428f73b1c47e018df33e6cb64834e6e94 (patch) | |
| tree | e2912c1c7528df820fe9163272397edd7efa1259 /coreMacros/src | |
| parent | 4f1f638663a7176ac28d95d71c14a37021314c3b (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.scala | 3 |
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 |
