From a9ab25bc8e706a9734098ef48317764dcb393f4f Mon Sep 17 00:00:00 2001 From: Nathaniel Graff Date: Wed, 7 Aug 2019 11:45:06 -0700 Subject: [PATCH 1/3] Bump Metal and DeviceTree tools for license Signed-off-by: Nathaniel Graff --- freedom-devicetree-tools | 2 +- freedom-metal | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/freedom-devicetree-tools b/freedom-devicetree-tools index 9a7dcf8c1..6c2ac6bd5 160000 --- a/freedom-devicetree-tools +++ b/freedom-devicetree-tools @@ -1 +1 @@ -Subproject commit 9a7dcf8c1f17c6ae427912bf61462e22a2986f61 +Subproject commit 6c2ac6bd5dcc6cf766510ac80fb7d64cc1a0bb54 diff --git a/freedom-metal b/freedom-metal index e707b8b21..6c88abe21 160000 --- a/freedom-metal +++ b/freedom-metal @@ -1 +1 @@ -Subproject commit e707b8b2100c5b435a6320d373673498d0fc4d51 +Subproject commit 6c88abe21efe5e75d2de929309209377af0843d6 From 274063efad6b3da66d1e246d1eb632b5f616700d Mon Sep 17 00:00:00 2001 From: Bunnaroath Sou Date: Fri, 9 Aug 2019 12:51:39 -0700 Subject: [PATCH 2/3] CLIC examples for new clic APIs usage --- .gitmodules | 9 +++++++++ README.md | 6 ++++++ doc/sphinx/contents.rst | 12 ++++++++++++ freedom-metal | 2 +- 4 files changed, 28 insertions(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index 1ab2f3be3..5c2e706dc 100644 --- a/.gitmodules +++ b/.gitmodules @@ -73,3 +73,12 @@ [submodule "software/plic-interrupts"] path = software/plic-interrupts url = https://github.com/sifive/example-plic-interrupts.git +[submodule "software/clic-vector-interrupts"] + path = software/clic-vector-interrupts + url = git@github.com:sifive/example-clic-vector-interrupts.git +[submodule "software/clic-selective-vector-interrupts"] + path = software/clic-selective-vector-interrupts + url = git@github.com:sifive/example-clic-selective-vector-interrupts.git +[submodule "software/clic-hardware-vector-interrupts"] + path = software/clic-hardware-vector-interrupts + url = git@github.com:sifive/example-clic-hardware-vector-interrupts.git diff --git a/README.md b/README.md index 259003476..c21268cd9 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,12 @@ operating systems to RISC-V. - Assembly test code which executes instructions and checks for expected results. The tests are designed to work on SiFive CPU designs in RTL simulation or on the Arty FPGA board. + - clic-vector-interrupts + - A simple example demonstrating how to use CLIC non vector interrupts + - clic-selective-vector-interrupts + - A simple example demonstrating how to use CLIC selective vector interrupts + - clic-hardware-vector-interrupts + - A simple example demonstrating the use of CLIC hardware vector interrupts ### Setting up the SDK ### diff --git a/doc/sphinx/contents.rst b/doc/sphinx/contents.rst index 81a0b4391..7cfe20e6a 100644 --- a/doc/sphinx/contents.rst +++ b/doc/sphinx/contents.rst @@ -180,3 +180,15 @@ The example programs can be found under the ``software/`` directory. The tests are designed to work on SiFive CPU designs in RTL simulation or on the Arty FPGA board. +- clic-vector-interrupts + + - A simple example demonstrating how to use CLIC non vector interrupts + +- clic-selective-vector-interrupts + + - A simple example demonstrating how to use CLIC selective vector interrupts + +- clic-hardware-vector-interrupts + + - A simple example demonstrating the use of CLIC hardware vector interrupts + diff --git a/freedom-metal b/freedom-metal index 6c88abe21..e2c8e8e62 160000 --- a/freedom-metal +++ b/freedom-metal @@ -1 +1 @@ -Subproject commit 6c88abe21efe5e75d2de929309209377af0843d6 +Subproject commit e2c8e8e62828c42bafc8e9f4f2cf5cc184034956 From f30dc01060fd88c17e8dc48298771f6a1e261ced Mon Sep 17 00:00:00 2001 From: Bunnaroath Sou Date: Fri, 9 Aug 2019 14:55:57 -0700 Subject: [PATCH 3/3] Include clic examples submodules --- software/clic-hardware-vector-interrupts | 1 + software/clic-selective-vector-interrupts | 1 + software/clic-vector-interrupts | 1 + 3 files changed, 3 insertions(+) create mode 160000 software/clic-hardware-vector-interrupts create mode 160000 software/clic-selective-vector-interrupts create mode 160000 software/clic-vector-interrupts diff --git a/software/clic-hardware-vector-interrupts b/software/clic-hardware-vector-interrupts new file mode 160000 index 000000000..b574f3b75 --- /dev/null +++ b/software/clic-hardware-vector-interrupts @@ -0,0 +1 @@ +Subproject commit b574f3b758aaec911e702f3709be694daa8c8138 diff --git a/software/clic-selective-vector-interrupts b/software/clic-selective-vector-interrupts new file mode 160000 index 000000000..7e5ad47f3 --- /dev/null +++ b/software/clic-selective-vector-interrupts @@ -0,0 +1 @@ +Subproject commit 7e5ad47f3a81c095978e3a0c2d3278d1c7aa2ab2 diff --git a/software/clic-vector-interrupts b/software/clic-vector-interrupts new file mode 160000 index 000000000..53d1bbf11 --- /dev/null +++ b/software/clic-vector-interrupts @@ -0,0 +1 @@ +Subproject commit 53d1bbf119265ae3abbb09ca5208cad450111018