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

Fix 3.6 TypeSafe section

Open chick opened this issue 5 years ago • 1 comments

This does not compile right now. Not clear if it is current with scala/java Gets java null pointer exception

chick avatar Jan 24 '21 19:01 chick

Is this about

    val bundleIn = Input(new Bundle2)
    val bundleOut = Output(new Bundle1)

? I ran into that problem too. Not sure if it helps the analysis but commenting out the output and changing the input to Bundle1 at least doesn't crash. All other combinations run into one or the other stack trace.

    val bundleIn = Input(new Bundle1)
    // val bundleOut = Output(new Bundle1)
module BadTypeModule(
  input        clock,
  input        reset,
  input        io_c,
  input  [1:0] io_in,
  output       io_out,
  input  [7:0] io_bundleIn_a
);

wunderabt avatar Jun 27 '21 09:06 wunderabt