Skip to content

Commit d10b3f4

Browse files
Add draft of Verilator CI
1 parent 2b56236 commit d10b3f4

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/verilator-ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright 2024 ETH Zurich and University of Bologna.
2+
# Solderpad Hardware License, Version 0.51, see LICENSE for details.
3+
# SPDX-License-Identifier: SHL-0.51
4+
5+
# Some CI tests run on our GitLab servers due to licenses and tools
6+
name: verilator-ci
7+
on: [push, pull_request, workflow_dispatch]
8+
jobs:
9+
verilator-ci:
10+
name: Public Verilator CI
11+
runs-on: fconti/pulp-verilator
12+
steps:
13+
- name: Test
14+
# Skip on forks or pull requests from forks due to missing secrets.
15+
if:
16+
github.repository == 'pulp-platform/pulpissimo' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
17+
run: echo "HELLO"

target/sim/verilator/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ $(VERILATOR_BUILD_DIR)/obj_dir/Vtb_pulp: $(VERILATOR_BUILD_DIR)/pulpissimo.f
6767

6868
.PHONY: verilate
6969
verilate: clean-verilator-bender verilator-bender $(VERILATOR_BUILD_DIR)/obj_dir/Vtb_pulp
70+
ifneq ($(VERILATOR_PATH), $(PULPISSIMO_ROOT)/build/verilator)
71+
@echo ""
72+
@echo "To run a simulation directly with the PULP runtime or SDK \`make run\` commands execute the following:"
73+
@echo ""
74+
@echo " export VERILATOR_PATH=$(PULPISSIMO_ROOT)/build/verilator"
75+
endif
7076

7177
clean-verilate:
7278
rm -rf $(VERILATOR_BUILD_DIR)/obj_dir

0 commit comments

Comments
 (0)