Skip to content

Commit

Permalink
Merge pull request #38 from PedroAntunes178/main
Browse files Browse the repository at this point in the history
VexRiscv.v: use AXI interface, use CLINT and PLIC generated in VexRiscv.
  • Loading branch information
jjts authored Oct 18, 2023
2 parents d4b2152 + c5eee03 commit a903278
Show file tree
Hide file tree
Showing 10 changed files with 4,257 additions and 1,436 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ jobs:
with:
submodules: 'recursive'
- name: test-clean
run: make clean-all
run: nix-shell --run "make clean-vexriscv"
- name: test-vexriscv
run: nix-shell --run "make vexriscv"
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,18 @@ VEX_SUBMODULES_DIR:=$(VEXRISCV_DIR)/submodules
# Rules
.PHONY: vexriscv clean-all qemu

CPU ?= LinuxGen
#CPU ?= GenFullNoMmuNoCache
CPU ?= VexRiscvAxi4LinuxPlicClint

# Primary targets
vexriscv:
cp $(VEX_HARDWARE_DIR)/vexriscv_core/* $(VEX_SUBMODULES_DIR)/VexRiscv/src/main/scala/vexriscv/demo/ && \
cd submodules/VexRiscv && sbt "runMain vexriscv.demo.$(CPU)" && \
cp VexRiscv.v $(VEXRISCV_SRC_DIR)
cp $(CPU).v $(VEXRISCV_SRC_DIR)

#
# Clean
#
clean-vexriscv:
rm $(VEXRISCV_SRC_DIR)/VexRiscv.v
rm $(VEXRISCV_SRC_DIR)/$(CPU).v

clean-all: clean-vexriscv
32 changes: 0 additions & 32 deletions hardware/src/VexRiscv.v_toplevel_RegFilePlugin_regFile.bin

This file was deleted.

4,926 changes: 3,874 additions & 1,052 deletions hardware/src/VexRiscv.v → hardware/src/VexRiscvAxi4LinuxPlicClint.v

Large diffs are not rendered by default.

Loading

0 comments on commit a903278

Please sign in to comment.