Added an option to control the capability type used for verilog wrappers

This commit is contained in:
Alexandre Joannou
2025-01-27 12:13:19 +00:00
parent 7212f50b4d
commit 19d3983010
2 changed files with 8 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 Alexandre Joannou
* Copyright (c) 2019-2025 Alexandre Joannou
* All rights reserved.
*
* This software was developed by SRI International and the University of
@@ -30,7 +30,10 @@ package CHERICapWrap;
import CHERICap :: *;
import CHERICC_Fat :: *;
`ifndef CAPTYPE
`define CAPTYPE CapPipe
`endif
`ifndef CAP64
`define W(name) wrap128_``name
`else

View File

@@ -5,6 +5,9 @@ else
BSCFLAGS = -D CAP64
endif
CAPTYPE ?= CapPipe
BSCFLAGS += -D CAPTYPE=$(CAPTYPE)
ARCH ?= RISCV
ifeq ($(ARCH), RISCV)
BSCFLAGS += -D RISCV
@@ -33,4 +36,4 @@ clean-blarney-wrappers: clean
rm -f *.hs
clean:
rm -f *.bo
rm -f *.bo