cornell-brg / pymtl

Python-based hardware modeling framework
BSD 3-Clause "New" or "Revised" License
235 stars 82 forks source link

[pymtl/model] Throw friendly error if connect() is called on Model #166

Open kkiningh opened 7 years ago

kkiningh commented 7 years ago

If connect() was called on a Model object, you would get a cryptic error saying "MyModel object has no attribute 'nbits'". This changes the error behavior so that it's clear that you need to pass the ports of the model object instead.