Skip to content

Commit

Permalink
golden: add fire signal to test
Browse files Browse the repository at this point in the history
  • Loading branch information
sinceforYy authored and xiaofeibao-xjtu committed Mar 5, 2024
1 parent e49835e commit c5ac706
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/scala/top/VectorSimTop.scala
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ class SimTop() extends VPUTestModule {
val vcvt = Module(new VectorCvt(XLEN))

require(vfa.io.fp_a.getWidth == XLEN)
vfa.io.fire := busy
vfa.io.fp_a := src1
vfa.io.fp_b := src2
//io.widen_a Cat(vs2(95,64),vs2(31,0)) or Cat(vs2(127,96),vs2(63,32))
Expand Down Expand Up @@ -229,6 +230,7 @@ class SimTop() extends VPUTestModule {
via_result.fflags(i) := 0.U // DontCare
via_result.vxsat := 0.U // DontCare

vff.io.fire := busy
vff.io.fp_a := src1
vff.io.fp_b := src2
vff.io.fp_c := src3
Expand All @@ -252,6 +254,7 @@ class SimTop() extends VPUTestModule {
vff_result.vxsat := 0.U // DontCare

// connect vcvt's io
vcvt.io.fire := busy
vcvt.io.sew := sew
vcvt.io.opType := opcode
vcvt.io.rm := rm
Expand Down
1 change: 1 addition & 0 deletions src/test/scala/vector/VectorALU/VIMac64bSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class VIMac64bWrapper extends Module {
})

val vIMac = Module(new VIMac64b)
vIMac.io.fire := io.in.valid
vIMac.io.info := io.in.bits.info
vIMac.io.srcType := io.in.bits.srcType
vIMac.io.vdType := io.in.bits.vdType
Expand Down

0 comments on commit c5ac706

Please sign in to comment.