-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
1,399 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# SystemC model | ||
|
||
Supporting SystemC model in `X-HEEP` is still a work-in-progress. | ||
However, a simple example is provided in the SystemC testbench available in `tb/tb_sc_top.cpp`. | ||
|
||
When compiling the `X-HEEP` with Verilator using SystemC, the above testbench is used for simulation. | ||
The testbench gets an `X-HEEP` external-memory `obi` master port to communicate with a SystemC memory model. | ||
|
||
Such model is very simple as meant to be an example and is provided in `tb/systemc_tb`. | ||
For those who want to extend the functionality of `X-HEEP` with SystemC, such examples can be used as starting point. | ||
|
||
The SystemC modules leverages `TLM-2.0` as well as baseline SystemC functionalities. | ||
|
||
The `X-HEEP` `obi` port is connected to a `C++` direct-mapped cache who handles `hit` and `miss` with pre-defined latencies. | ||
It uses `TLM-2.0` to communicate with the external SystemC memory on `miss` cache-transactions. | ||
A module in SystemC then communicates with the RTL SystemC model compiled by Verilator to provides read/write data. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,3 +60,4 @@ targets: | |
- files_rtl | ||
- ff_regfile | ||
- target_sim? (files_clk_gate) | ||
- target_sim_sc? (files_clk_gate) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,3 +64,4 @@ targets: | |
- files_rtl | ||
- ff_regfile | ||
- target_sim? (files_clk_gate) | ||
- target_sim_sc? (files_clk_gate) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,3 +67,4 @@ targets: | |
filesets: | ||
- files_rtl | ||
- target_sim? (files_clk_gate) | ||
- target_sim_sc? (files_clk_gate) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/cve2_top.core b/cve2_top.core | ||
index cb4e23b4..0d9d2c5c 100644 | ||
--- a/cve2_top.core | ||
+++ b/cve2_top.core | ||
@@ -75,6 +75,7 @@ targets: | ||
- tool_veriblelint ? (files_lint_verible) | ||
- files_rtl | ||
- target_sim ? (files_clk_gate) | ||
+ - target_sim_sc ? (files_clk_gate) | ||
toplevel: cve2_top | ||
parameters: | ||
- tool_vivado ? (FPGA_XILINX=true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ targets: | |
default: | ||
filesets: | ||
- target_sim? (rtl_sim) | ||
- target_sim_sc? (rtl_sim) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.