Skip to content

Commit

Permalink
drop v{m}adc and v{m}sbc support
Browse files Browse the repository at this point in the history
  • Loading branch information
HidetaroTanaka committed Oct 30, 2023
1 parent 5325724 commit 7b5d7e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/main/scala/hajime/publicmodules/Decoder.scala
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ object RvvDecode extends DecodeConstants {
VSUB_VX -> List(Y, Branch.NONE, Value1.RS1, Value2.ZERO, ARITHMETIC_FCN.NONE, N, N, WB_SEL.NONE, MEM_FCN.M_NONE, MEM_LEN.B, N, CSR_FCN.N, N, Y),
VRSUB_VX -> List(Y, Branch.NONE, Value1.RS1, Value2.ZERO, ARITHMETIC_FCN.NONE, N, N, WB_SEL.NONE, MEM_FCN.M_NONE, MEM_LEN.B, N, CSR_FCN.N, N, Y),
VRSUB_VI -> List(Y, Branch.NONE, Value1.UIMM19_15, Value2.ZERO, ARITHMETIC_FCN.NONE, N, N, WB_SEL.NONE, MEM_FCN.M_NONE, MEM_LEN.B, N, CSR_FCN.N, N, Y),
/*
VADC_VVM -> List(Y, Branch.NONE, Value1.ZERO, Value2.ZERO, ARITHMETIC_FCN.NONE, N, N, WB_SEL.NONE, MEM_FCN.M_NONE, MEM_LEN.B, N, CSR_FCN.N, N, Y),
VADC_VXM -> List(Y, Branch.NONE, Value1.RS1, Value2.ZERO, ARITHMETIC_FCN.NONE, N, N, WB_SEL.NONE, MEM_FCN.M_NONE, MEM_LEN.B, N, CSR_FCN.N, N, Y),
VADC_VIM -> List(Y, Branch.NONE, Value1.UIMM19_15, Value2.ZERO, ARITHMETIC_FCN.NONE, N, N, WB_SEL.NONE, MEM_FCN.M_NONE, MEM_LEN.B, N, CSR_FCN.N, N, Y),
Expand All @@ -202,6 +203,7 @@ object RvvDecode extends DecodeConstants {
VMSBC_VXM -> List(Y, Branch.NONE, Value1.RS1, Value2.ZERO, ARITHMETIC_FCN.NONE, N, N, WB_SEL.NONE, MEM_FCN.M_NONE, MEM_LEN.B, N, CSR_FCN.N, N, Y),
VMSBC_VV -> List(Y, Branch.NONE, Value1.ZERO, Value2.ZERO, ARITHMETIC_FCN.NONE, N, N, WB_SEL.NONE, MEM_FCN.M_NONE, MEM_LEN.B, N, CSR_FCN.N, N, Y),
VMSBC_VX -> List(Y, Branch.NONE, Value1.RS1, Value2.ZERO, ARITHMETIC_FCN.NONE, N, N, WB_SEL.NONE, MEM_FCN.M_NONE, MEM_LEN.B, N, CSR_FCN.N, N, Y),
*/
VAND_VV -> List(Y, Branch.NONE, Value1.ZERO, Value2.ZERO, ARITHMETIC_FCN.NONE, N, N, WB_SEL.NONE, MEM_FCN.M_NONE, MEM_LEN.B, N, CSR_FCN.N, N, Y),
VAND_VX -> List(Y, Branch.NONE, Value1.RS1, Value2.ZERO, ARITHMETIC_FCN.NONE, N, N, WB_SEL.NONE, MEM_FCN.M_NONE, MEM_LEN.B, N, CSR_FCN.N, N, Y),
VAND_VI -> List(Y, Branch.NONE, Value1.UIMM19_15, Value2.ZERO, ARITHMETIC_FCN.NONE, N, N, WB_SEL.NONE, MEM_FCN.M_NONE, MEM_LEN.B, N, CSR_FCN.N, N, Y),
Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/hajime/vectormodules/VectorDecoder.scala
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ object VDecode extends DecodeConstants with VectorOpConstants {
VSUB_VX -> amogus("vsub", VSOURCE.VX),
VRSUB_VX -> amogus("vrsub", VSOURCE.VX),
VRSUB_VI -> amogus("vrsub", VSOURCE.VI),
/*
VADC_VVM -> amogus("vadc", VSOURCE.VV),
VADC_VXM -> amogus("vadc", VSOURCE.VX),
VADC_VIM -> amogus("vadc", VSOURCE.VI),
Expand All @@ -116,6 +117,7 @@ object VDecode extends DecodeConstants with VectorOpConstants {
VMSBC_VXM -> amogus("vmsbc", VSOURCE.VX),
VMSBC_VV -> amogus("vmsbc", VSOURCE.VV),
VMSBC_VX -> amogus("vmsbc", VSOURCE.VX),
*/
VAND_VV -> amogus("vand", VSOURCE.VV),
VAND_VX -> amogus("vand", VSOURCE.VX),
VAND_VI -> amogus("vand", VSOURCE.VI),
Expand Down
3 changes: 1 addition & 2 deletions src/test/scala/hajime/vectormodules/VectorCpuSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ class Zve64xAppTestForVecCpu extends AnyFlatSpec with ChiselScalatestTester {
val applicationTest = Seq(
"vector_median"
)
val zve64xTestList: Seq[String] = (if(true) ldstTest else Nil) ++ (if(true) arithmeticTest else Nil) ++
(if(true) applicationTest else Nil)
val zve64xTestList: Seq[String] = ldstTest ++ arithmeticTest ++ applicationTest
for (e <- zve64xTestList) {
it should s"Vector CPU execute $e" in {
test(new Core_and_cache(useVector = true, cpu = classOf[VectorCpu])).withAnnotations(Seq(WriteVcdAnnotation, VerilatorBackendAnnotation)) { dut =>
Expand Down

0 comments on commit 7b5d7e0

Please sign in to comment.