Commit 658caeb
committed
[chip, gpio, sw] Adding Verilator as an option to .cmake
The motivation of this PR comes from #382 which is adding a
chip level GPIO smoke test. That test fails on verilator.
Reason being different tops used for different platforms (
DVSim(Xcelium), Verilator, FPGA). For Xcelium, an interface
is connecting the UVM to the GPIO. UVM has the control to
drive GPIOs inputs. In #382, SW waits for a specific pattern
driven by UVM to arrive in data_in reg. If we run the exact
test with the verilator top, which is using GPIO DPI, then
the abilty to drive inputs depends on a host SW
infrastructure which is currently missing.
Second problem is that we use cmake to build software images
for DVSim, verilator and FPGA. We run tests on FPGA and
Verilator in CI. If the build system develops an Xcelium
compatible image and feed that image to Verilator and FPGA
to execute the test in CI then the test will fail due to the
reason given in the first paragraph.
Hence, the best way forward is to make images only for the
compatible paltforms.
Signed-off-by: Kinza Qamar <kqzaman@lowrisc.org>1 parent f8c538b commit 658caeb
2 files changed
Lines changed: 26 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
22 | 32 | | |
23 | 33 | | |
0 commit comments