Skip to content

Commit

Permalink
Fixed Makefile which causes the build fail due to path changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jxwleong committed Sep 8, 2023
1 parent 4acd3f1 commit 1e490c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Empty file removed testbench/__init__.py
Empty file.
10 changes: 6 additions & 4 deletions testbench/cocotb/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Makefile
THIS_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
RTL_DIR := $(THIS_DIR)/rtl
# Determine the directory containing this makefile and root directory
MAKEFILE_DIR := $(dir $(realpath $(firstword $(MAKEFILE_LIST))))
ROOT_DIR := $(realpath $(dir $(MAKEFILE_DIR))/../../)
RTL_DIR := $(ROOT_DIR)/rtl

# defaults
SIM ?= icarus
Expand Down Expand Up @@ -37,7 +39,7 @@ test_microprocessor:
$(MAKE) cleanup
$(info Running test_microprocessor...)
$(eval TOPLEVEL := CombinedCUnDP)
$(eval MODULE := testbench.cocotb.test_microprocessor)
$(eval MODULE := test_microprocessor)

@echo "TOPLEVEL=$(TOPLEVEL)"
@echo "MODULE=$(MODULE)"
Expand All @@ -48,7 +50,7 @@ test_mux2to1:
$(MAKE) cleanup
$(info Running test_mux2to1...)
$(eval TOPLEVEL := mux2to1)
$(eval MODULE := testbench.cocotb.test_mux2to1)
$(eval MODULE := test_mux2to1)

@echo "TOPLEVEL=$(TOPLEVEL)"
@echo "MODULE=$(MODULE)"
Expand Down

0 comments on commit 1e490c3

Please sign in to comment.