freechipsproject / chisel-bootcamp

Generator Bootcamp Material: Learn Chisel the Right Way
Apache License 2.0
976 stars 277 forks source link

I have some question about module 3 Interlude: Chisel Standard Library #174

Open linuxlonelyeagle opened 1 year ago

linuxlonelyeagle commented 1 year ago
new Module {
    // Example circuit using a Queue
    val io = IO(new Bundle {
      val in = Flipped(Decoupled(UInt(8.W)))
      val out = Decoupled(UInt(8.W))
    })
    val queue = Queue(io.in, 2)  // 2-element queue
    io.out <> queue