Skip to content

Commit

Permalink
feat(widths): Add correct widths to if_gen interfaces.
Browse files Browse the repository at this point in the history
Add `widths` dictionary to generate interfaces with widths based on
CACHE parameters.
  • Loading branch information
arturum1 committed Oct 19, 2023
1 parent 754b86c commit ec66dbe
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions iob_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,12 @@ def _init_attributes(cls):
"wire_prefix": "",
"descr": "AXI4 interface",
"ports": [],
"widths": {
"ID_W": "AXI_ID_W",
"ADDR_W": "AXI_ADDR_W",
"DATA_W": "AXI_DATA_W",
"LEN_W": "AXI_LEN_W",
},
},
{
"name": "axi_write",
Expand All @@ -296,6 +302,12 @@ def _init_attributes(cls):
"wire_prefix": "",
"descr": "AXI4 write interface",
"ports": [],
"widths": {
"ID_W": "AXI_ID_W",
"ADDR_W": "AXI_ADDR_W",
"DATA_W": "AXI_DATA_W",
"LEN_W": "AXI_LEN_W",
},
},
{
"name": "axi_read",
Expand All @@ -304,6 +316,12 @@ def _init_attributes(cls):
"wire_prefix": "",
"descr": "AXI4 read interface",
"ports": [],
"widths": {
"ID_W": "AXI_ID_W",
"ADDR_W": "AXI_ADDR_W",
"DATA_W": "AXI_DATA_W",
"LEN_W": "AXI_LEN_W",
},
},
{
"name": "fe",
Expand Down

0 comments on commit ec66dbe

Please sign in to comment.