Skip to content

Commit

Permalink
Merge pull request #286 from P-Miranda/python-setup
Browse files Browse the repository at this point in the history
feat(swregs): use fixed swregs
  • Loading branch information
jjts authored Oct 20, 2023
2 parents f07e6e7 + 43aaef5 commit 9f2dbb0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions iob_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def _create_submodules_list(cls):
super()._create_submodules_list(
[
{"interface": "iob_s_port"},
{"interface": "iob_s_portmap"},
{"interface": "axi_m_port"},
{"interface": "axi_m_m_portmap"},
{"interface": "axi_m_write_port"},
Expand Down Expand Up @@ -412,6 +413,7 @@ def _setup_ios(cls):

@classmethod
def _setup_regs(cls):
cls.autoaddr = False
cls.regs += [
{
"name": "cache",
Expand All @@ -422,7 +424,7 @@ def _setup_regs(cls):
"type": "R",
"n_bits": 1,
"rst_val": 0,
"addr": -1,
"addr": 0,
"log2n_items": 0,
"autologic": False,
"descr": "Write-through buffer empty (1) or non-empty (0).",
Expand All @@ -432,7 +434,7 @@ def _setup_regs(cls):
"type": "R",
"n_bits": 1,
"rst_val": 0,
"addr": -1,
"addr": 1,
"log2n_items": 0,
"autologic": False,
"descr": "Write-through buffer full (1) or non-full (0).",
Expand All @@ -442,7 +444,7 @@ def _setup_regs(cls):
"type": "R",
"n_bits": 32,
"rst_val": 0,
"addr": -1,
"addr": 4,
"log2n_items": 0,
"autologic": False,
"descr": "Read and write hit counter.",
Expand All @@ -452,7 +454,7 @@ def _setup_regs(cls):
"type": "R",
"n_bits": 32,
"rst_val": 0,
"addr": -1,
"addr": 8,
"log2n_items": 0,
"autologic": False,
"descr": "Read and write miss counter.",
Expand All @@ -462,7 +464,7 @@ def _setup_regs(cls):
"type": "R",
"n_bits": 32,
"rst_val": 0,
"addr": -1,
"addr": 12,
"log2n_items": 0,
"autologic": False,
"descr": "Read hit counter.",
Expand All @@ -472,7 +474,7 @@ def _setup_regs(cls):
"type": "R",
"n_bits": 32,
"rst_val": 0,
"addr": -1,
"addr": 16,
"log2n_items": 0,
"autologic": False,
"descr": "Read miss counter.",
Expand All @@ -482,7 +484,7 @@ def _setup_regs(cls):
"type": "R",
"n_bits": 32,
"rst_val": 0,
"addr": -1,
"addr": 20,
"log2n_items": 0,
"autologic": False,
"descr": "Write hit counter.",
Expand All @@ -492,7 +494,7 @@ def _setup_regs(cls):
"type": "R",
"n_bits": 32,
"rst_val": 0,
"addr": -1,
"addr": 24,
"log2n_items": 0,
"autologic": False,
"descr": "Write miss counter.",
Expand Down

0 comments on commit 9f2dbb0

Please sign in to comment.