Skip to content

Commit

Permalink
[VTA][Chisel] End-to-end Inference with Chisel VTA (apache#4574)
Browse files Browse the repository at this point in the history
* [VTA][Chisel] End-to-end Inference with Chisel VTA

* Update TensorAlu.scala
  • Loading branch information
liangfu authored and tmoreau89 committed Dec 23, 2019
1 parent f99f4ef commit 4e30e95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hardware/chisel/src/main/scala/core/TensorAlu.scala
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ class TensorAlu(debug: Boolean = false)(implicit p: Parameters) extends Module {
tensorImm.data.valid := state === sReadTensorB
tensorImm.data.bits.foreach { b =>
b.foreach { c =>
c := dec.alu_imm
c := Mux(dec.alu_imm(C_ALU_IMM_BITS - 1),
Cat(-1.S((aluBits - C_ALU_IMM_BITS).W), dec.alu_imm), dec.alu_imm)
}
}

Expand Down

0 comments on commit 4e30e95

Please sign in to comment.