Skip to content

Commit

Permalink
Fixing review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sripathi-muralitharan committed May 6, 2021
1 parent 8ff0701 commit 19f4ffb
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 369 deletions.
1 change: 0 additions & 1 deletion libraries/platforms/dromajo-vcs/.gitignore

This file was deleted.

15 changes: 8 additions & 7 deletions libraries/platforms/dromajo-vcs/compilation.mk
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,24 @@ CXXFLAGS += $(DEFINES) -march=rv64imafd -mabi=lp64 -mcmodel=medany
CFLAGS += $(DEFINES) -march=rv64imafd -mabi=lp64 -mcmodel=medany
SFLAGS += $(DEFINES) -march=rv64imafd -mabi=lp64 -mcmodel=medany

export RV_CC = $(BLACKPARROT_DIR)/sdk/install/bin/riscv64-unknown-elf-dramfs-gcc
export RV_CXX = $(BLACKPARROT_DIR)/sdk/install/bin/riscv64-unknown-elf-dramfs-g++
export RV_LD = $(RV_CXX)
RV_CC = $(BLACKPARROT_DIR)/sdk/install/bin/riscv64-unknown-elf-dramfs-gcc
RV_CXX = $(BLACKPARROT_DIR)/sdk/install/bin/riscv64-unknown-elf-dramfs-g++
export RV_AR = $(BLACKPARROT_DIR)/sdk/install/bin/riscv64-unknown-elf-dramfs-ar
export RV_RANLIB = $(BLACKPARROT_DIR)/sdk/install/bin/riscv64-unknown-elf-dramfs-ranlib

# each regression target needs to build its .o from a .c and .h of the
# same name
%.o: CC = $(RV_CC)
%.o: %.c
$(RV_CC) -c -o $@ $< $(INCLUDES) $(CFLAGS) $(CDEFINES)
$(CC) -c -o $@ $< $(INCLUDES) $(CFLAGS) $(CDEFINES)

# ... or a .cpp and .hpp of the same name
%.o: CXX = $(RV_CXX)
%.o: %.cpp
$(RV_CXX) -c -o $@ $< $(INCLUDES) $(CXXFLAGS) $(CXXDEFINES)
$(CXX) -c -o $@ $< $(INCLUDES) $(CXXFLAGS) $(CXXDEFINES)

%.o: CC = $(RV_CC)
%.o: %.S
$(RV_CC) -c -o $@ $< $(INCLUDES) $(SFLAGS)
$(CC) -c -o $@ $< $(INCLUDES) $(SFLAGS)

.PRECIOUS: %.o

Expand Down
4 changes: 2 additions & 2 deletions libraries/platforms/dromajo-vcs/hardware.mk
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ VSOURCES += $(BASEJUMP_STL_DIR)/bsg_test/bsg_nonsynth_dpi_cycle_counter.v
# Top-level module name
BSG_DESIGN_TOP := replicant_tb_top

VSOURCES += $(LIBRARIES_PATH)/platforms/dromajo-vcs/hardware/dpi_top.sv
VSOURCES += $(LIBRARIES_PATH)/platforms/bigblade-vcs/hardware/dpi_top.sv

VINCLUDES += $(BSG_PLATFORM_PATH)/hardware
VINCLUDES += $(LIBRARIES_PATH)/platforms/bigblade-vcs/hardware
VINCLUDES += $(BSG_PLATFORM_PATH)


Expand Down
Loading

0 comments on commit 19f4ffb

Please sign in to comment.