diff options
| author | Schuyler Eldridge | 2019-10-21 14:56:26 -0400 |
|---|---|---|
| committer | GitHub | 2019-10-21 14:56:26 -0400 |
| commit | 66f5696e03a529ced36504e53f7b2fc24d31544c (patch) | |
| tree | e8208ae30e34131e8c2722784cb62a6c8300fe43 /src/test | |
| parent | 7b93b0f8c48e39cc9730cf9f91340cf733dadafe (diff) | |
| parent | 22434659d8ac8a7855c7d7c00c7adf71e8e1099b (diff) | |
Merge pull request #1175 from freechipsproject/bore-name
Internal BoringUtils.bore Bug Fix
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/scala/chiselTests/BoringUtilsSpec.scala | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/scala/chiselTests/BoringUtilsSpec.scala b/src/test/scala/chiselTests/BoringUtilsSpec.scala index 856f6b91..755ba60b 100644 --- a/src/test/scala/chiselTests/BoringUtilsSpec.scala +++ b/src/test/scala/chiselTests/BoringUtilsSpec.scala @@ -106,4 +106,21 @@ class BoringUtilsSpec extends ChiselFlatSpec with ChiselRunners { .getMessage should startWith ("Unable to determine source mapping for sink") } + class InternalBore extends RawModule { + val in = IO(Input(Bool())) + val out = IO(Output(Bool())) + out := false.B + BoringUtils.bore(in, Seq(out)) + } + + class InternalBoreTester extends ShouldntAssertTester { + val dut = Module(new InternalBore) + dut.in := true.B + chisel3.assert(dut.out === true.B) + } + + it should "work for an internal (same module) BoringUtils.bore" in { + runTester(new InternalBoreTester) should be (true) + } + } |
