chisel-tutorial icon indicating copy to clipboard operation
chisel-tutorial copied to clipboard

Conditional Assignments and Memories tutorial issue

Open barabanshek opened this issue 6 years ago • 2 comments

Hi, I think there is an issue in this tutorial in the line "val read_port1 = UInt(32.W)". Should it be "val read_port1 = Wire(UInt(32.W))"? Because UInt is a bare Chisel type and the following exception takes a place: "ExpectedHardwareException ... must be hardware, not a bare Chisel type" if just UInt is used.

barabanshek avatar Mar 28 '18 18:03 barabanshek

I'm sorry but I can't seem to find which file this occurs in can you provide that.

chick avatar Mar 28 '18 21:03 chick

I stumbled over this as well. It's in the "Conditional Assignments and Memories https://github.com/ucb-bar/chisel-tutorial/wiki/Conditional-Assignments-and-Memories" section of the chisel-tutorial wiki.

On Wed, Mar 28, 2018 at 2:47 PM, Chick Markley [email protected] wrote:

I'm sorry but I can't seem to find which file this occurs in can you provide that.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ucb-bar/chisel-tutorial/issues/120#issuecomment-377048429, or mute the thread https://github.com/notifications/unsubscribe-auth/AGh1wH4MjotATsft1TtxC-rOpefQWXUlks5tjAT0gaJpZM4S_Ilq .

ucbjrl avatar Mar 28 '18 23:03 ucbjrl