Skip to content

Commit

Permalink
Merge pull request #223 from antmicro/rrozak/62517-bump-verilator
Browse files Browse the repository at this point in the history
Bump Verilator to v5.024
  • Loading branch information
tmichalak authored Sep 19, 2024
2 parents ceb5d14 + 056662a commit 770ade3
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-verilator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
strategy:
matrix:
include:
- version: v5.010
- version: v5.024
repo: verilator/verilator
commit: v5.010
commit: v5.024
- version: uvm
repo: verilator/verilator
commit: 7ca2d6470a
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/test-openocd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
env:
DEBIAN_FRONTEND: "noninteractive"
CCACHE_DIR: "/opt/openocd-tests/.cache/"
VERILATOR_VERSION: v5.010
VERILATOR_VERSION: v5.024

steps:
- name: Install utils
Expand All @@ -32,7 +32,7 @@ jobs:
date=$(date +"%Y_%m_%d")
time=$(date +"%Y%m%d_%H%M%S_%N")
cache_verilator_restore_key=cache_verilator_
cache_verilator_key=${cache_verilator_restore_key}${{ env.VERILATOR_VERSION }}
cache_verilator_key=${cache_verilator_restore_key}${{ env.VERILATOR_VERSION }}_${{ env.VERILATOR_COMMIT }}
cache_openocd_restore_key=cache_openocd_
cache_openocd_key=${cache_openocd_restore_key}
cache_test_restore_key=${{ matrix.coverage }}_
Expand All @@ -54,7 +54,6 @@ jobs:
/opt/verilator
/opt/verilator/.cache
key: ${{ env.cache_verilator_key }}
restore-keys: ${{ env.cache_verilator_restore_key }}

- name: Restore OpenOCD cache
id: cache-openocd-restore
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/test-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
env:
DEBIAN_FRONTEND: "noninteractive"
CCACHE_DIR: "/opt/regression/.cache/"
VERILATOR_VERSION: v5.010
VERILATOR_VERSION: v5.024

steps:
- name: Install utils
Expand All @@ -38,7 +38,7 @@ jobs:
date=$(date +"%Y_%m_%d")
time=$(date +"%Y%m%d_%H%M%S_%N")
cache_verilator_restore_key=cache_verilator_
cache_verilator_key=${cache_verilator_restore_key}${{ env.VERILATOR_VERSION }}
cache_verilator_key=${cache_verilator_restore_key}${{ env.VERILATOR_VERSION }}_${{ env.VERILATOR_COMMIT }}
cache_test_restore_key=${{ matrix.test }}_${{ matrix.coverage }}_
cache_test_key=${cache_test_restore_key}${time}
Expand All @@ -58,7 +58,6 @@ jobs:
/opt/verilator
/opt/verilator/.cache
key: ${{ env.cache_verilator_key }}
restore-keys: ${{ env.cache_verilator_restore_key }}

- name: Setup tests cache
uses: actions/cache@v3
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/test-riscof.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
env:
DEBIAN_FRONTEND: "noninteractive"
CCACHE_DIR: "/opt/riscof/.cache/"
VERILATOR_VERSION: v5.010
VERILATOR_VERSION: v5.024
SPIKE_VERSION: d70ea67d

steps:
Expand All @@ -33,7 +33,7 @@ jobs:
date=$(date +"%Y_%m_%d")
time=$(date +"%Y%m%d_%H%M%S_%N")
cache_verilator_restore_key=cache_verilator_
cache_verilator_key=${cache_verilator_restore_key}${{ env.VERILATOR_VERSION }}
cache_verilator_key=${cache_verilator_restore_key}${{ env.VERILATOR_VERSION }}_${{ env.VERILATOR_COMMIT }}
cache_spike_restore_key=cache_spike_
cache_spike_key=${cache_spike_restore_key}${{ env.SPIKE_VERSION }}
cache_test_restore_key=${{ matrix.test }}_${{ matrix.coverage }}_
Expand All @@ -55,7 +55,6 @@ jobs:
/opt/verilator
/opt/verilator/.cache
key: ${{ env.cache_verilator_key }}
restore-keys: ${{ env.cache_verilator_restore_key }}

- name: Restore Spike cache
id: cache-spike-restore
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-riscv-dv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
env:
DEBIAN_FRONTEND: "noninteractive"
CCACHE_DIR: "/opt/riscv-dv/.cache/"
VERILATOR_VERSION: v5.010
VERILATOR_VERSION: v5.024
SPIKE_VERSION: d70ea67d
RENODE_VERSION: latest
CACHE_HASH: ${{ needs.generate-config.outputs.hash }}
Expand Down Expand Up @@ -155,7 +155,7 @@ jobs:
date=$(date +"%Y_%m_%d")
time=$(date +"%Y%m%d_%H%M%S_%N")
cache_verilator_restore_key=cache_verilator_
cache_verilator_key=${cache_verilator_restore_key}${{ env.VERILATOR_VERSION }}
cache_verilator_key=${cache_verilator_restore_key}${{ env.VERILATOR_VERSION }}_${{ env.VERILATOR_COMMIT }}
cache_spike_restore_key=cache_spike_
cache_spike_key=${cache_spike_restore_key}${{ env.SPIKE_VERSION }}
cache_renode_restore_key=cache_renode_
Expand Down Expand Up @@ -313,7 +313,7 @@ jobs:
env:
DEBIAN_FRONTEND: "noninteractive"
CCACHE_DIR: "/opt/riscv-dv/.cache/"
VERILATOR_VERSION: v5.010
VERILATOR_VERSION: v5.024
SPIKE_VERSION: d70ea67d
GHA_EXTERNAL_DISK: additional-tools
GHA_SA: gh-sa-veer-uploader
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/test-uarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_call:

env:
VERILATOR_VERSION: v5.010
VERILATOR_VERSION: v5.024

jobs:
lint:
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
- "block/lsu_tl"
env:
CCACHE_DIR: "/opt/verification/.cache/"
VERILATOR_VERSION: v5.010
VERILATOR_VERSION: v5.024
DEBIAN_FRONTEND: "noninteractive"
steps:
- name: Setup repository
Expand All @@ -78,7 +78,7 @@ jobs:
date=$(date +"%Y_%m_%d")
time=$(date +"%Y%m%d_%H%M%S_%N")
cache_verilator_restore_key=cache_verilator_
cache_verilator_key=${cache_verilator_restore_key}${{ env.VERILATOR_VERSION }}
cache_verilator_key=${cache_verilator_restore_key}${{ env.VERILATOR_VERSION }}_${{ env.VERILATOR_COMMIT }}
cache_test_restore_key=uarch_${{ matrix.test }}_${{ matrix.coverage }}_
cache_test_key=${cache_test_restore_key}${time}
Expand All @@ -97,7 +97,6 @@ jobs:
/opt/verilator
/opt/verilator/.cache
key: ${{ env.cache_verilator_key }}
restore-keys: ${{ env.cache_verilator_restore_key }}

- name: Setup tests cache
uses: actions/cache@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-uvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
env:
CCACHE_DIR: "/opt/uvm/.cache/"
VERILATOR_VERSION: uvm
VERILATOR_COMMIT: 7ca2d6470a
DEBIAN_FRONTEND: "noninteractive"
steps:
- name: Setup repository
Expand All @@ -23,7 +24,7 @@ jobs:
date=$(date +"%Y_%m_%d")
time=$(date +"%Y%m%d_%H%M%S_%N")
cache_verilator_restore_key=cache_verilator_
cache_verilator_key=${cache_verilator_restore_key}${{ env.VERILATOR_VERSION }}
cache_verilator_key=${cache_verilator_restore_key}${{ env.VERILATOR_VERSION }}_${{ env.VERILATOR_COMMIT }}
cache_test_restore_key=${{ matrix.test }}_${{ matrix.coverage }}_
cache_test_key=${cache_test_restore_key}${time}
Expand All @@ -43,7 +44,6 @@ jobs:
/opt/verilator
/opt/verilator/.cache
key: ${{ env.cache_verilator_key }}
restore-keys: ${{ env.cache_verilator_restore_key }}

- name: Setup tests cache
uses: actions/cache@v3
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/test-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_call:

env:
VERILATOR_VERSION: v5.010
VERILATOR_VERSION: v5.024

jobs:
tests:
Expand All @@ -16,7 +16,7 @@ jobs:
coverage: ["all", "branch", "toggle"] #TODO: add functional coverage
env:
CCACHE_DIR: "/opt/verification/.cache/"
VERILATOR_VERSION: v5.010
VERILATOR_VERSION: v5.024
DEBIAN_FRONTEND: "noninteractive"
steps:
- name: Setup repository
Expand All @@ -38,7 +38,7 @@ jobs:
date=$(date +"%Y_%m_%d")
time=$(date +"%Y%m%d_%H%M%S_%N")
cache_verilator_restore_key=cache_verilator_
cache_verilator_key=${cache_verilator_restore_key}${{ env.VERILATOR_VERSION }}
cache_verilator_key=${cache_verilator_restore_key}${{ env.VERILATOR_VERSION }}_${{ env.VERILATOR_COMMIT }}
cache_test_restore_key=${{ matrix.test }}_${{ matrix.coverage }}_
cache_test_key=${cache_test_restore_key}${time}
Expand All @@ -58,7 +58,6 @@ jobs:
/opt/verilator
/opt/verilator/.cache
key: ${{ env.cache_verilator_key }}
restore-keys: ${{ env.cache_verilator_restore_key }}

- name: Setup tests cache
uses: actions/cache@v3
Expand Down
2 changes: 1 addition & 1 deletion design/el2_pmp.sv
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ module el2_pmp
el2_pmp_type_pkt_t pmp_req_type,
logic priv_mode,
logic permission_check);
logic result = 1'b0;
logic result;
logic unused_cfg = |csr_pmp_cfg.mode;

if (!csr_pmp_cfg.read && csr_pmp_cfg.write) begin
Expand Down

0 comments on commit 770ade3

Please sign in to comment.