aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/firrtlTests/ReplSeqMemTests.scala
diff options
context:
space:
mode:
authorJim Lawson2016-12-08 09:25:42 -0800
committerJack Koenig2016-12-08 09:25:42 -0800
commitcfb3a48986500422cbf6ba8887030dee3a973933 (patch)
tree61318120adf506e6110f861a28a56801f43a0813 /src/test/scala/firrtlTests/ReplSeqMemTests.scala
parentd6f8b4c9b8d602d669497833901bd9c80f2340df (diff)
Clk2clock - rename the implicit "clk" module input "clock" (#387)
* Rename implict module "clk" input to "clock". This doesn't rename all the "self-contained" test instances. nor the memory "clk" enables, nor the implict module "clk"s in the regress .fir files. * Consistency: rename implict module "clk" input to "clock" in "self-contained" test instances. This doesn't rename the memory "clk" enables, nor the implict module "clk"s in the regress .fir files.
Diffstat (limited to 'src/test/scala/firrtlTests/ReplSeqMemTests.scala')
-rw-r--r--src/test/scala/firrtlTests/ReplSeqMemTests.scala18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/test/scala/firrtlTests/ReplSeqMemTests.scala b/src/test/scala/firrtlTests/ReplSeqMemTests.scala
index 2cde085a..b851f176 100644
--- a/src/test/scala/firrtlTests/ReplSeqMemTests.scala
+++ b/src/test/scala/firrtlTests/ReplSeqMemTests.scala
@@ -27,7 +27,7 @@ class ReplSeqMemSpec extends SimpleTransformSpec {
val input = """
circuit Top :
module Top :
- input clk : Clock
+ input clock : Clock
input reset : UInt<1>
input head_ptr : UInt<5>
input tail_ptr : UInt<5>
@@ -40,15 +40,15 @@ circuit Top :
smem entries_info : {takens : UInt<2>, history : UInt<14>, info : UInt<14>}[24]
when io.backend.allocate.valid :
- write mport W = entries_info[tail_ptr], clk
+ write mport W = entries_info[tail_ptr], clock
W <- io.backend.allocate.bits.info
- read mport R = entries_info[head_ptr], clk
+ read mport R = entries_info[head_ptr], clock
io.commit_entry.bits.info <- R
smem entries_info2 : {takens : UInt<2>, history : UInt<14>, info : UInt<14>}[24]
when io2.backend.allocate.valid :
- write mport W1 = entries_info2[tail_ptr], clk
+ write mport W1 = entries_info2[tail_ptr], clock
when wmask.takens :
W1.takens <- io.backend.allocate.bits.info.takens
when wmask.history :
@@ -56,7 +56,7 @@ circuit Top :
when wmask.info :
W1.info <- io.backend.allocate.bits.info.history
- read mport R1 = entries_info2[head_ptr], clk
+ read mport R1 = entries_info2[head_ptr], clock
io2.commit_entry.bits.info <- R1
""".stripMargin
val confLoc = "ReplSeqMemTests.confTEMP"
@@ -72,15 +72,15 @@ circuit Top :
val input = """
circuit Top :
module Top :
- input clk : Clock
+ input clock : Clock
input hsel : UInt<1>
- reg p_valid : UInt<1>, clk
- reg p_address : UInt<5>, clk
+ reg p_valid : UInt<1>, clock
+ reg p_address : UInt<5>, clock
smem mem : UInt<8>[8][32]
when hsel :
when p_valid :
- write mport T_155 = mem[p_address], clk
+ write mport T_155 = mem[p_address], clock
""".stripMargin
val confLoc = "ReplSeqMemTests.confTEMP"
val aMap = AnnotationMap(Seq(ReplSeqMemAnnotation("-c:Top:-o:"+confLoc)))