summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStephen Twigg2016-04-27 17:06:12 -0700
committerAndrew Waterman2016-05-04 01:36:03 -0700
commit2b5045b3665446430e0d522087ce2af5773dc426 (patch)
tree31879a2c57e0c7cd16925887143b9f5b8dbb0726 /src
parent24492361da393a5b4d3e023b6511693125f4f254 (diff)
Change BlackBox.io.setRef into comment
Setting the io ref there wasn't doing anything meaningful
Diffstat (limited to 'src')
-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
}