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(_)?

Open
#3,923 1 comment 0 reactions 0 assignees View on GitHub
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?
![image](https://github.com/chipsalliance/chisel/assets/52493112/58e08e95-2b39-4a5e-a996-667c4891ca8e)

My Environment:
![image](https://github.com/chipsalliance/chisel/assets/52493112/85a390d5-8615-49d1-a920-15daa8b5f1e7)

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.