chipsalliance / chisel

Chisel: A Modern Hardware Design Language
https://www.chisel-lang.org/
Apache License 2.0
3.91k stars 588 forks source link

node requested directionality on 'FlitTypes' must be hardware, not a bare Chisel type. Perhaps you forgot to wrap it in Wire(_) or IO(_)? #3923

Open TDppy opened 6 months ago

TDppy commented 6 months ago

Bug Report:

I want to test Queue API,and I define the element of queue called "Flit". When I poke value to flit_type(which is a ChiselEnum type),chisel report error. So how can I poke value to ChiselEnum type?or choose another plan to achieve that? image

My Environment: image

TDppy commented 6 months ago

detailed error report: image