From 61e7b3e668bf5f0c82466d0d4e10151b872d10bc Mon Sep 17 00:00:00 2001 From: Ivan Ribeiro Date: Sat, 30 Sep 2023 17:09:56 +0100 Subject: [PATCH] Add test core and targets To test, run: fusesoc --cores-root . run --setup --target test ucam:cheri:cheri-cap-lib-test --- fusesoc/cheri-cap-lib-test.core | 50 +++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 fusesoc/cheri-cap-lib-test.core diff --git a/fusesoc/cheri-cap-lib-test.core b/fusesoc/cheri-cap-lib-test.core new file mode 100644 index 0000000..ffadd87 --- /dev/null +++ b/fusesoc/cheri-cap-lib-test.core @@ -0,0 +1,50 @@ +CAPI=2: +name: "ucam:cheri:cheri-cap-lib-test" +description: "Targets to test cheri-cap-lib generator" + +# different parameterizations of the generator, one is 64bit and the other is 128bit +generate: + cheri-cap-lib-64: + generator: cheri-cap-lib-gen + parameters: + capwidth : "CAP64" + + cheri-cap-lib-128: + generator: cheri-cap-lib-gen + parameters: + capwidth : "CAP128" + +# cores need to explicitly depend on the generator, so an empty fileset with +# a dependency on the generator's core is needed, like so: +filesets: + cheri-cap-lib-dep: + depend: + - ucam:cheri:cheri-cap-lib-verilog-generator + +# the filelist can then be placed in the filesets section of the dependant core +# to add the dependency, so that fusesoc can find the generator + +targets: + test64: + description: "Default target that generates 64bit versions" + default_tool: verilator + filesets: + - cheri-cap-lib-dep + generate: + - cheri-cap-lib-64 + test128: + description: "Default target that generates 128bit versions" + default_tool: verilator + filesets: + - cheri-cap-lib-dep + generate: + - cheri-cap-lib-128 + test: + description: "Default target that generates both 64bit and 128bit versions" + default_tool: verilator + filesets: + - cheri-cap-lib-dep + generate: + - cheri-cap-lib-64 + - cheri-cap-lib-128 +