Merge remote-tracking branch 'origin/main' into tcdtm
This commit is contained in:
2
.github/scripts/defaults.sh
vendored
2
.github/scripts/defaults.sh
vendored
@@ -53,7 +53,7 @@ mapping["chipyard-cva6"]=" CONFIG=CVA6Config"
|
|||||||
mapping["chipyard-ibex"]=" CONFIG=IbexConfig"
|
mapping["chipyard-ibex"]=" CONFIG=IbexConfig"
|
||||||
mapping["chipyard-spiflashwrite"]=" CONFIG=SmallSPIFlashRocketConfig EXTRA_SIM_FLAGS='+spiflash0=${LOCAL_CHIPYARD_DIR}/tests/spiflash.img'"
|
mapping["chipyard-spiflashwrite"]=" CONFIG=SmallSPIFlashRocketConfig EXTRA_SIM_FLAGS='+spiflash0=${LOCAL_CHIPYARD_DIR}/tests/spiflash.img'"
|
||||||
mapping["chipyard-manyperipherals"]=" CONFIG=ManyPeripheralsRocketConfig EXTRA_SIM_FLAGS='+spiflash0=${LOCAL_CHIPYARD_DIR}/tests/spiflash.img'"
|
mapping["chipyard-manyperipherals"]=" CONFIG=ManyPeripheralsRocketConfig EXTRA_SIM_FLAGS='+spiflash0=${LOCAL_CHIPYARD_DIR}/tests/spiflash.img'"
|
||||||
mapping["chipyard-chiplike"]=" CONFIG=ChipLikeQuadRocketConfig verilog"
|
mapping["chipyard-chiplike"]=" CONFIG=ChipLikeQuadRocketConfig MODEL=FlatTestHarness MODEL_PACKAGE=chipyard.example verilog"
|
||||||
mapping["chipyard-cloneboom"]=" CONFIG=Cloned64MegaBoomConfig verilog"
|
mapping["chipyard-cloneboom"]=" CONFIG=Cloned64MegaBoomConfig verilog"
|
||||||
mapping["chipyard-nocores"]=" CONFIG=NoCoresConfig verilog"
|
mapping["chipyard-nocores"]=" CONFIG=NoCoresConfig verilog"
|
||||||
mapping["tracegen"]=" CONFIG=NonBlockingTraceGenL2Config"
|
mapping["tracegen"]=" CONFIG=NonBlockingTraceGenL2Config"
|
||||||
|
|||||||
@@ -36,10 +36,10 @@ class ChipLikeQuadRocketConfig extends Config(
|
|||||||
new chipyard.clocking.WithClockGroupsCombinedByName("fbus", "fbus", "pbus") ++
|
new chipyard.clocking.WithClockGroupsCombinedByName("fbus", "fbus", "pbus") ++
|
||||||
|
|
||||||
// Set up the crossings
|
// Set up the crossings
|
||||||
|
new chipyard.config.WithFbusToSbusCrossingType(AsynchronousCrossing()) ++ // Add Async crossing between SBUS and FBUS
|
||||||
new chipyard.config.WithCbusToPbusCrossingType(AsynchronousCrossing()) ++ // Add Async crossing between PBUS and CBUS
|
new chipyard.config.WithCbusToPbusCrossingType(AsynchronousCrossing()) ++ // Add Async crossing between PBUS and CBUS
|
||||||
new chipyard.config.WithSbusToMbusCrossingType(AsynchronousCrossing()) ++ // Add Async crossings between backside of L2 and MBUS
|
new chipyard.config.WithSbusToMbusCrossingType(AsynchronousCrossing()) ++ // Add Async crossings between backside of L2 and MBUS
|
||||||
new testchipip.WithAsynchronousSerialSlaveCrossing ++ // Add Async crossing between serial and MBUS. Its master-side is tied to the FBUS
|
new testchipip.WithAsynchronousSerialSlaveCrossing ++ // Add Async crossing between serial and MBUS. Its master-side is tied to the FBUS
|
||||||
new testchipip.WithSerialTLAsyncResetQueue ++ // Add Async reset queue to block ready while in reset
|
|
||||||
|
|
||||||
new chipyard.config.AbstractConfig)
|
new chipyard.config.AbstractConfig)
|
||||||
|
|
||||||
|
|||||||
Submodule generators/testchipip updated: e830ecf6ca...c8ae43950b
@@ -1,7 +1,29 @@
|
|||||||
GCC=riscv64-unknown-elf-gcc
|
#################################
|
||||||
OBJDUMP=riscv64-unknown-elf-objdump
|
# RISCV Toolchain
|
||||||
CFLAGS= -std=gnu99 -O2 -fno-common -fno-builtin-printf -Wall
|
#################################
|
||||||
LDFLAGS= -static
|
|
||||||
|
PREFIX = riscv64-unknown-elf-
|
||||||
|
|
||||||
|
GCC = $(PREFIX)gcc
|
||||||
|
CXX = $(PREFIX)g++
|
||||||
|
CP = $(PREFIX)objcopy
|
||||||
|
OBJDUMP = $(PREFIX)objdump
|
||||||
|
DG = $(PREFIX)gdb
|
||||||
|
SIZE = $(PREFIX)size
|
||||||
|
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Flags
|
||||||
|
#################################
|
||||||
|
|
||||||
|
# SoC Settings
|
||||||
|
ARCH = rv64imafdc
|
||||||
|
ABI = lp64d
|
||||||
|
ARCHFLAGS = -march=$(ARCH) -mabi=$(ABI)
|
||||||
|
|
||||||
|
CFLAGS = -std=gnu99 -O2 -fno-common -fno-builtin-printf -Wall
|
||||||
|
CFLAGS += $(ARCHFLAGS)
|
||||||
|
LDFLAGS = -static
|
||||||
|
|
||||||
include libgloss.mk
|
include libgloss.mk
|
||||||
|
|
||||||
@@ -9,16 +31,16 @@ PROGRAMS = pwm blkdev accum charcount nic-loopback big-blkdev pingd \
|
|||||||
streaming-passthrough streaming-fir nvdla spiflashread spiflashwrite fft gcd \
|
streaming-passthrough streaming-fir nvdla spiflashread spiflashwrite fft gcd \
|
||||||
hello
|
hello
|
||||||
|
|
||||||
spiflash.img: spiflash.py
|
|
||||||
python3 $<
|
|
||||||
|
|
||||||
.DEFAULT_GOAL := default
|
.DEFAULT_GOAL := default
|
||||||
|
|
||||||
.PHONY: default
|
|
||||||
default: $(addsuffix .riscv,$(PROGRAMS)) spiflash.img
|
|
||||||
|
|
||||||
.PHONY: dumps
|
#################################
|
||||||
dumps: $(addsuffix .dump,$(PROGRAMS))
|
# Build
|
||||||
|
#################################
|
||||||
|
|
||||||
|
spiflash.img: spiflash.py
|
||||||
|
python3 $<
|
||||||
|
|
||||||
%.o: %.S
|
%.o: %.S
|
||||||
$(GCC) $(CFLAGS) -D__ASSEMBLY__=1 -c $< -o $@
|
$(GCC) $(CFLAGS) -D__ASSEMBLY__=1 -c $< -o $@
|
||||||
@@ -33,7 +55,17 @@ dumps: $(addsuffix .dump,$(PROGRAMS))
|
|||||||
$(OBJDUMP) -D $< > $@
|
$(OBJDUMP) -D $< > $@
|
||||||
|
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Recipes
|
||||||
|
#################################
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -f *.riscv *.o *.dump
|
rm -f *.riscv *.o *.dump
|
||||||
$(if $(libgloss),rm -rf $(libgloss_builddir)/)
|
$(if $(libgloss),rm -rf $(libgloss_builddir)/)
|
||||||
|
|
||||||
|
.PHONY: default
|
||||||
|
default: $(addsuffix .riscv, $(PROGRAMS)) spiflash.img
|
||||||
|
|
||||||
|
.PHONY: dumps
|
||||||
|
dumps: $(addsuffix .dump, $(PROGRAMS))
|
||||||
|
|||||||
Reference in New Issue
Block a user