diff options
| author | mergify[bot] | 2022-04-25 23:19:37 +0000 |
|---|---|---|
| committer | GitHub | 2022-04-25 23:19:37 +0000 |
| commit | 3e551ef38fb4c01b9b46f45dc68c2d9f5c9e9acb (patch) | |
| tree | 0e3b35f136fe778a712d37a1eeb3a4185781b9f8 /core/src | |
| parent | 5a90f27ab1311994b4df73a85cd0facab3ae0b3a (diff) | |
Fix error message for BlackBox without val io <: Record (#2504) (#2505)
(cherry picked from commit f9aee1f72744abc6ee13aafc4d1a51a2783cbab8)
Co-authored-by: Jack Koenig <koenig@sifive.com>
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/main/scala/chisel3/BlackBox.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/chisel3/BlackBox.scala b/core/src/main/scala/chisel3/BlackBox.scala index 2f04fb2e..f3fc2711 100644 --- a/core/src/main/scala/chisel3/BlackBox.scala +++ b/core/src/main/scala/chisel3/BlackBox.scala @@ -157,7 +157,7 @@ abstract class BlackBox( _compatAutoWrapPorts() // pre-IO(...) compatibility hack // Restrict IO to just io, clock, and reset - if (!_io.forall(portsContains)) { + if (!_io.exists(portsContains)) { throwException(s"BlackBox '$this' must have a port named 'io' of type Record wrapped in IO(...)!") } |
