> configure(npc)

ysyx_22040000 李心杨
 Linux calcite 6.6.19 #1-NixOS SMP PREEMPT_DYNAMIC Fri Mar  1 12:35:11 UTC 2024 x86_64 GNU/Linux
  11:42:19  up   1:18,  2 users,  load average: 0.85, 0.93, 0.83
This commit is contained in:
tracer-ysyx 2024-03-13 11:42:19 +08:00 committed by xinyangli
parent 718f180414
commit 4cc3da1f37

View file

@ -71,6 +71,8 @@ class Control(width: Int) extends Module {
val reversePrefixSum = dstList.scanLeft(0)(_ + _.getWidth).reverse val reversePrefixSum = dstList.scanLeft(0)(_ + _.getWidth).reverse
val slices = reversePrefixSum.zip(reversePrefixSum.tail) val slices = reversePrefixSum.zip(reversePrefixSum.tail)
val srcList = slices.map(s => out(s._1 - 1, s._2)) val srcList = slices.map(s => out(s._1 - 1, s._2))
println(dstList)
println(srcList)
srcList srcList
.zip(dstList) .zip(dstList)