diff options
| author | Jack Koenig | 2019-02-14 15:08:35 -0800 |
|---|---|---|
| committer | GitHub | 2019-02-14 15:08:35 -0800 |
| commit | 2272044c6ab46b5148c39c124e66e1a8e9073a24 (patch) | |
| tree | 83ad2141b1a3c54707dd9b33073f9217b0ae16c8 /src/test/scala/firrtlTests/ProtoBufSpec.scala | |
| parent | d487b4cb6726e7e8d1a18f894021652594125221 (diff) | |
Asynchronous Reset (#1011)
Fixes #219
* Adds AsyncResetType (similar to ClockType)
* Registers with reset signal of type AsyncResetType are async reset
registers
* Registers with async reset can only be reset to literal values
* Add initialization logic for async reset registers
Diffstat (limited to 'src/test/scala/firrtlTests/ProtoBufSpec.scala')
| -rw-r--r-- | src/test/scala/firrtlTests/ProtoBufSpec.scala | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/test/scala/firrtlTests/ProtoBufSpec.scala b/src/test/scala/firrtlTests/ProtoBufSpec.scala index ff266f1f..090a7fea 100644 --- a/src/test/scala/firrtlTests/ProtoBufSpec.scala +++ b/src/test/scala/firrtlTests/ProtoBufSpec.scala @@ -24,7 +24,8 @@ class ProtoBufSpec extends FirrtlFlatSpec { FirrtlResourceTest("Rob", "/regress"), FirrtlResourceTest("RocketCore", "/regress"), FirrtlResourceTest("ICache", "/regress"), - FirrtlResourceTest("FPU", "/regress") + FirrtlResourceTest("FPU", "/regress"), + FirrtlResourceTest("AsyncResetTester", "/features") ) for (FirrtlResourceTest(name, dir) <- firrtlResourceTests) { @@ -136,4 +137,9 @@ class ProtoBufSpec extends FirrtlFlatSpec { val slit = ir.SIntLiteral(-123) FromProto.convert(ToProto.convert(slit).build) should equal (slit) } + + it should "support AsyncResetTypes" in { + val port = ir.Port(ir.NoInfo, "reset", ir.Input, ir.AsyncResetType) + FromProto.convert(ToProto.convert(port).build) should equal (port) + } } |
