diff options
| author | Jim Lawson | 2016-12-08 09:25:42 -0800 |
|---|---|---|
| committer | Jack Koenig | 2016-12-08 09:25:42 -0800 |
| commit | cfb3a48986500422cbf6ba8887030dee3a973933 (patch) | |
| tree | 61318120adf506e6110f861a28a56801f43a0813 /src/test/scala/firrtlTests/ChirrtlMemSpec.scala | |
| parent | d6f8b4c9b8d602d669497833901bd9c80f2340df (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/ChirrtlMemSpec.scala')
| -rw-r--r-- | src/test/scala/firrtlTests/ChirrtlMemSpec.scala | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/test/scala/firrtlTests/ChirrtlMemSpec.scala b/src/test/scala/firrtlTests/ChirrtlMemSpec.scala index 3d8c9825..2bbe46c8 100644 --- a/src/test/scala/firrtlTests/ChirrtlMemSpec.scala +++ b/src/test/scala/firrtlTests/ChirrtlMemSpec.scala @@ -61,7 +61,7 @@ class ChirrtlMemSpec extends LowTransformSpec { val input = """ circuit foo : module foo : - input clk : Clock + input clock : Clock input reset : UInt<1> output io : {flip wen : UInt<1>, flip in : UInt<1>, flip counter : UInt<2>, out : UInt<1>} @@ -69,9 +69,9 @@ circuit foo : smem mem : UInt<1>[4] node T_0 = add(io.counter, UInt<1>("h01")) node temp = tail(T_0, 1) - read mport bar = mem[temp], clk + read mport bar = mem[temp], clock when io.wen : - write mport T_1 = mem[io.counter], clk + write mport T_1 = mem[io.counter], clock T_1 <= io.in io.out <= bar """.stripMargin @@ -87,18 +87,18 @@ circuit foo : val input = """ circuit foo : module foo : - input clk : Clock + input clock : Clock input reset : UInt<1> output io : {flip ren: UInt<1>, flip wen : UInt<1>, flip in : UInt<1>, flip counter : UInt<2>, out : UInt<1>} io is invalid cmem mem : UInt<1>[4] - reg counter : UInt<1>, clk with : (reset => (reset, UInt<1>("h0"))) - read mport bar = mem[counter], clk + reg counter : UInt<1>, clock with : (reset => (reset, UInt<1>("h0"))) + read mport bar = mem[counter], clock when io.ren: counter <= add(counter, UInt<1>("h1")) when io.wen : - write mport T_1 = mem[io.counter], clk + write mport T_1 = mem[io.counter], clock T_1 <= io.in io.out <= bar """.stripMargin |
