Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu1990 committed May 21, 2024
1 parent 4d2ff4b commit 7aba381
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
13 changes: 7 additions & 6 deletions src/main/scala/vexiiriscv/execute/SimdAddRawPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,20 @@ class SimdAddRawPlugin(val layer : LaneLayer) extends FiberPlugin {

val add4 = layer.add(ADD4)

val SEL = Payload(Bool())
layer.el.setDecodingDefault(SEL, False)
val wb = wbp.createPort(at = 0)

add4.addDecoding(SEL -> True)
add4.addRsSpec(RS1, executeAt = 0)
add4.addRsSpec(RS2, executeAt = 0)
wbp.addMicroOp(wb, add4)
add4.setCompletion(0)
// add4.mayFlushUpTo(0)
// add4.dontFlushFrom(0)
// add4.reserve(something, at=0)

val wb = wbp.createPort(at = 0)
wbp.addMicroOp(wb, add4)

val SEL = Payload(Bool())
layer.el.setDecodingDefault(SEL, False)
add4.addDecoding(SEL -> True)

earlyLock.release()

//Let's define some logic in the execute lane [0]
Expand Down
6 changes: 5 additions & 1 deletion src/main/scala/vexiiriscv/soc/demo/MicroSoc.scala
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ object MicroSocSim extends App{
}.parse(args, Unit).nonEmpty)


sim.compile(new MicroSoc(p)).doSimUntilVoid("test", seed = 42){dut =>
sim.compile(new MicroSoc(p){
hardFork{
main.ram.thread.logic.mem.simPublic()
}
}).doSimUntilVoid("test", seed = 42){dut =>
dut.cd100.forkStimulus()
dut.asyncReset #= true
delayed(100 ns)(dut.asyncReset #= false)
Expand Down
2 changes: 2 additions & 0 deletions src/main/scala/vexiiriscv/soc/litex/Soc.scala
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,8 @@ perf report
video capture => qv4l2
openssl speed -provider legacy -provider default aes-128-cbc
PMU Hardware doesn't support sampling/overflow-interrupts
branch-instructions OR branches [Hardware event]
Expand Down

0 comments on commit 7aba381

Please sign in to comment.