ucb-bar / chisel2-deprecated

chisel.eecs.berkeley.edu
388 stars 90 forks source link

Flag to enable warnings for any modules with any unconnected ports #702

Open ascenium opened 8 years ago

ascenium commented 8 years ago

It would be really nice to be able to put in a flag that would allow you to check to see if any module ports you don't expect to be unconnected are unconnected. I know the lower level tools do this, but still it would be a nice feature.

seldridge commented 8 years ago

I believe that the support that you're looking for is already in place with the --wi, --wo, and --wio. These will turn on unconnected IO warnings for inputs, outputs, or both, respectively. This will warn you about all unconnected inputs/outputs which is slightly less targeted than what you may be intending ("don't expect to be unconnected are unconnected"). However, this is the standard output that you'd expect from a synthesis tool that warns you about every possible unconnected IO.

FWIW, there's a lot of undocumented command line options (https://github.com/ucb-bar/chisel/blob/master/src/main/scala/Driver.scala#L344) that come in handy now and again.