summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/scala/Chisel/BlackBox.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/scala/Chisel/BlackBox.scala b/src/main/scala/Chisel/BlackBox.scala
index 48887271..be72934d 100644
--- a/src/main/scala/Chisel/BlackBox.scala
+++ b/src/main/scala/Chisel/BlackBox.scala
@@ -30,7 +30,10 @@ abstract class BlackBox extends Module {
for ((name, port) <- ports) {
port.setRef(ModuleIO(this, _namespace.name(name)))
}
- io.setRef("") // don't io parts prepended with io_
+ // setRef is not called on the actual io.
+ // There is a risk of user improperly attempting to connect directly with io
+ // Long term solution will be to define BlackBox IO differently as part of
+ // it not descending from the (current) Module
this
}