Skip to content

Commit

Permalink
ice-v swirl, cleanup, comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sylefeb committed Nov 14, 2023
1 parent b0281e4 commit a707676
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
4 changes: 2 additions & 2 deletions projects/ice-v/CPUs/ice-v-swirl.si
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ $$print("====== ice-v swirl (pipeline, data bypass, rdcycle) ======")
// - the register written by stage 4 at this cycle [case b]
// - none of the above: we have to wait and hold the pipeline [case c]
//
// case a) input register value incorrect
// case a) input register value incorrect due to write at i-1
// due to [write at i-1] => mux
// case b) setup register value incorrect, ALU and store
// case b) setup register value incorrect due to write at i
// due to [write at i ] => mux
// case c) instruction in stage 3 /will/ invalidate a setup register
// due to [write at i+1] => hold
Expand Down
2 changes: 1 addition & 1 deletion projects/ice-v/SOCs/ice-v-soc-swirl-cache.si
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ $$end
algorithm {
$$if SIMULATION and not BARE then
//while (1) { }
while (cycle < 4000) { }
while (cycle < 250) { }
__display("stopping at cycle %d",cycle);
$$else
while (1) { }
Expand Down
15 changes: 15 additions & 0 deletions projects/ice-v/src/test_pip.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.globl _start

_start:

addi t0,zero,0

addi t1,t0,1
addi t2,t1,1
addi t3,t2,1
addi t4,t3,1
addi t5,t4,1
addi t6,t5,1

_end:
jal _end

0 comments on commit a707676

Please sign in to comment.