sifive / duh-scala

⛏️ DUH component export to Scala
https://github.com/sifive/duh
Apache License 2.0
7 stars 3 forks source link

Replace .asOutput with Output() for chisel3 forwards compatibility. #66

Closed richardxia closed 4 years ago

richardxia commented 4 years ago

I'm not sure how this ever worked in the past, but because we don't do the import Chisel._ compatibility layer import in the generated file, the legacy, implicit .asOutput method isn't defined and it causes a compile-time error. This would only affect designs where one invokes duh-export-regmap, since that code is only generated there.

I'm not exactly sure I understand the proper Chisel 3 replacement, but this change seemed to compile for me.