chipsalliance / chipsalliance/chisel
node requested directionality on 'FlitTypes' must be hardware, not a bare Chisel type. Perhaps you forgot to wrap it in Wire(_) or IO(_)?
- Dominant language
- Scala
- Stars
- 4.8k
- Forks
- 658
- Avg merge
- 18h 59m
- Merged PRs (30d)
- 14
Description
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?

My Environment:

Contributor guide
Research direction
Reproduce the Queue API example from the report and inspect how the Flit element declares FlitTypes and how the test pokes flit_type. Read the ChiselEnum, Wire(_), and IO(_) behavior implicated by the error. Done means the example has a verified way to drive the ChiselEnum without the requested-directionality error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100