Skip to content
This repository was archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
WIP: First work on test quadrant crossbar
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsc96 committed Dec 16, 2021
1 parent cee8bd2 commit 649e0f7
Show file tree
Hide file tree
Showing 13 changed files with 1,561 additions and 596 deletions.
21 changes: 21 additions & 0 deletions docs/schema/occamy.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,23 @@
}
}
},

"wide_xbar": {
"$ref": "http://pulp-platform.org/snitch/axi_xbar.schema.json"
},
"wide_xbar_slv_id_width_no_rocache": {
"type": "integer",
"description": "ID width of incoming slave ports.",
"default": 3
},
"narrow_xbar": {
"$ref": "http://pulp-platform.org/snitch/axi_xbar.schema.json"
},
"narrow_xbar_slv_id_width": {
"type": "integer",
"description": "ID width of incoming slave ports.",
"default": 4
},
"nr_s1_quadrant": {
"title": "Number of S1 Quadrants",
"type": "integer",
Expand Down Expand Up @@ -100,8 +111,18 @@
"wide_xbar": {
"$ref": "http://pulp-platform.org/snitch/axi_xbar.schema.json"
},
"wide_xbar_slv_id_width": {
"type": "integer",
"description": "ID width of incoming slave ports.",
"default": 2
},
"narrow_xbar": {
"$ref": "http://pulp-platform.org/snitch/axi_xbar.schema.json"
},
"narrow_xbar_slv_id_width": {
"type": "integer",
"description": "ID width of incoming slave ports.",
"default": 4
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions hw/system/occamy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ update-clint:
@echo "[REGGEN] Re-generate CLINT regs"
@$(ROOT)/util/regtool.py -r -t src/clint src/clint/clint.hjson

quad_xbar_test:
@$(ROOT)/util/occamygen.py --cfg $(CFG) --outdir src \
--pkg-sv src/occamy_pkg.sv.tpl \
--quad_xbar_test src/quad_xbar_test.sv.tpl

update-plic:
@mkdir -p src/rv_plic
@echo "[REGGEN] Generate PLIC"
Expand Down
2 changes: 2 additions & 0 deletions hw/system/occamy/src/occamy_cfg.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@
wide_xbar: {
max_slv_trans: 4,
max_mst_trans: 4,
slv_id_width: 2,
fall_through: false,
},
narrow_xbar: {
max_slv_trans: 4,
max_mst_trans: 4,
slv_id_width: 4,
fall_through: false,
},
},
Expand Down
2 changes: 1 addition & 1 deletion hw/system/occamy/src/occamy_cluster_wrapper.sv
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ package occamy_cluster_pkg;
localparam int unsigned NarrowIdWidthOut = $clog2(NrMasters) + NarrowIdWidthIn;

localparam int unsigned NrDmaMasters = 2 + 1;
localparam int unsigned WideIdWidthIn = 2;
localparam int unsigned WideIdWidthIn = 0;
localparam int unsigned WideIdWidthOut = $clog2(NrDmaMasters) + WideIdWidthIn;

localparam int unsigned UserWidth = 1;
Expand Down
Loading

0 comments on commit 649e0f7

Please sign in to comment.