Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(swregs): use fixed swregs #286

Merged
merged 2 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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