Commit 727c3b8
treewide: Optimizations for faster Verilator simulation (pulp-platform#259)
* rr_arb_tree: Add Verilator pragmas to split tree node signals
This enables Verilator optimizations as it now understands there are no
combinatorial loops. For the Cheshire SoC, this can reduce simulation
time by around 3%.
* lzc: Add Verilator pragmas to split tree node signals
This enables Verilator optimizations as it now understands there are no
combinatorial loops. For the Cheshire SoC, this can reduce simulation
time by around 2.5%.
* lzc: Optimize reversing of input vector for Verilator speedup
In case the vector is not flipped, using a direct assignment can lead to
an approximately 2% decrease in total system simulation time (measured
using the Cheshire SoC).
* cb_filter: Logic simplification for Verilator speed-up
This decreases total simulation time of the Cheshire SoC by around 1.8%.1 parent 1bdb175 commit 727c3b8
3 files changed
+20
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
| 233 | + | |
| 234 | + | |
237 | 235 | | |
238 | 236 | | |
239 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
59 | 64 | | |
60 | 65 | | |
61 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
| |||
0 commit comments