diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2026-07-22 20:56:11 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2026-07-22 20:56:11 +0300 |
| commit | b7678edeb8ac8d7b95719988c9bdaf52b734c212 (patch) | |
| tree | ecc399d834b4570e622434a498dbbff457ae5512 /src/sched.sv | |
| parent | 76029b9bc1242a9292905cae6f71e080955ceaf2 (diff) | |
| download | ttarv32-b7678edeb8ac8d7b95719988c9bdaf52b734c212.tar.gz ttarv32-b7678edeb8ac8d7b95719988c9bdaf52b734c212.zip | |
fix some verilator 5.048 warnings
Diffstat (limited to 'src/sched.sv')
| -rw-r--r-- | src/sched.sv | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sched.sv b/src/sched.sv index 4165dc8..e39a237 100644 --- a/src/sched.sv +++ b/src/sched.sv @@ -122,7 +122,7 @@ function automatic slot_t maybe_populate( return slot; endfunction -function automatic void schedule(insn_t[QUE_DEPTH-1:0] que, slot_t[SLOT_COUNT-1:0] slots); +task automatic schedule(insn_t[QUE_DEPTH-1:0] que, slot_t[SLOT_COUNT-1:0] slots); bit[SLOT_COUNT-1:0] possible[QUE_DEPTH]; bit[SLOT_COUNT-1:0] selected[QUE_DEPTH]; bit[$clog2(QUE_DEPTH)-1:0] shift; @@ -146,7 +146,7 @@ function automatic void schedule(insn_t[QUE_DEPTH-1:0] que, slot_t[SLOT_COUNT-1: /* should que be shifted somewhere else, I wonder? */ shift_o = shift; que_o = que_i >> (shift * $bits(insn_t)); -endfunction +endtask always_comb begin schedule(que_i, slots_i); |
