val storeTableWalkerRequest: Vec[Bool] = Wire(Vec(NumStorePorts, Bool())) val loadTableWalkerRequest: Vec[Bool] = Wire(Vec(NumLoadPorts, Bool())) // Concatenate all request vectors val tableWalkerRequests: Vec[Bool] = Wire(Vec(NumStorePorts + NumLoadPorts, Bool())) for (i <- 0 until NumStorePorts) { tableWalkerRequests(i) := storeTableWalkerRequest(i) } for (i <- NumStorePorts until NumStorePorts + NumLoadPorts) { tableWalkerRequests(i) := loadTableWalkerRequest(i - NumStorePorts) }
--
You received this message because you are subscribed to the Google Groups "chisel-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chisel-users+unsubscribe@googlegroups.com.
To post to this group, send email to chisel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chisel-users/34f45830-9f55-4cbf-8ddc-908c632c477f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Perhaps something like: VecInit((storeTableWalkerRequest ++ loadTableWalkerRequest):_*)
On Thu, Sep 6, 2018 at 11:44 AM, <edm...@edmondcote.com> wrote:
Believe that this question was asked before, but to no avail: https://stackoverflow.com/questions/51437942/chisel-concatenation-errorCan anyone think of a better strategy to concatenate two Vec objects? Other than using generators that is, e.g.:val storeTableWalkerRequest: Vec[Bool] = Wire(Vec(NumStorePorts, Bool())) val loadTableWalkerRequest: Vec[Bool] = Wire(Vec(NumLoadPorts, Bool())) // Concatenate all request vectors val tableWalkerRequests: Vec[Bool] = Wire(Vec(NumStorePorts + NumLoadPorts, Bool())) for (i <- 0 until NumStorePorts) { tableWalkerRequests(i) := storeTableWalkerRequest(i) } for (i <- NumStorePorts until NumStorePorts + NumLoadPorts) { tableWalkerRequests(i) := loadTableWalkerRequest(i - NumStorePorts) }
--
You received this message because you are subscribed to the Google Groups "chisel-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chisel-users...@googlegroups.com.
To post to this group, send email to chisel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chisel-users/34f45830-9f55-4cbf-8ddc-908c632c477f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "chisel-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chisel-users...@googlegroups.com.
To post to this group, send email to chisel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chisel-users/CA%2B%2B6G0DPVLn6ec2t3-foLtB%2BgHgFmHnuhaRn%2B7Q40W-ba3unPg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chisel-users/CALzVNFB8vHZ0Z65gFyXR3oQM-%2BbfvRGjPZjVBxb0TaBjGkchsQ%40mail.gmail.com.
val reqs = io.load.map(_.read) ++ io.store.map(_.write) arbiter.io.in.zipWithIndex.foreach { case (in, index) => in.valid := reqs(index) in.bits := 0.U // don't care }
To unsubscribe from this group and stop receiving emails from it, send an email to chisel-users+unsubscribe@googlegroups.com.
To post to this group, send email to chisel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chisel-users/34f45830-9f55-4cbf-8ddc-908c632c477f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "chisel-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chisel-users+unsubscribe@googlegroups.com.
To post to this group, send email to chisel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chisel-users/CA%2B%2B6G0DPVLn6ec2t3-foLtB%2BgHgFmHnuhaRn%2B7Q40W-ba3unPg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "chisel-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chisel-users+unsubscribe@googlegroups.com.
To post to this group, send email to chisel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chisel-users/CALzVNFB8vHZ0Z65gFyXR3oQM-%2BbfvRGjPZjVBxb0TaBjGkchsQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "chisel-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chisel-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chisel-users/CANFzVijneThrfeQN0MQZQZj8FdKSydFu-XBca168Lp3scc13Kw%40mail.gmail.com.