From 2b5045b3665446430e0d522087ce2af5773dc426 Mon Sep 17 00:00:00 2001 From: Stephen Twigg Date: Wed, 27 Apr 2016 17:06:12 -0700 Subject: Change BlackBox.io.setRef into comment Setting the io ref there wasn't doing anything meaningful --- src/main/scala/Chisel/BlackBox.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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 } -- cgit v1.2.3