> 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:43:44 up 1:19, 2 users, load average: 0.71, 0.92, 0.84
This commit is contained in:
parent
4cc3da1f37
commit
b0793d3253
1 changed files with 3 additions and 3 deletions
|
@ -71,11 +71,11 @@ 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(dstList)
|
||||||
println(srcList)
|
// println(srcList)
|
||||||
|
|
||||||
srcList
|
srcList
|
||||||
.zip(dstList)
|
.zip(dstList.reverse)
|
||||||
.foreach({ case (src, dst) =>
|
.foreach({ case (src, dst) =>
|
||||||
dst := src.asTypeOf(dst)
|
dst := src.asTypeOf(dst)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue