Skip to content

Commit

Permalink
integration: add function to access csr_groups
Browse files Browse the repository at this point in the history
sbourdeauducq committed Jul 15, 2017
1 parent c49a361 commit bba206f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions misoc/integration/soc_core.py
Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@ def __init__(self, platform, clk_freq,
"timer0",
"tmpu"
]
self.csr_groups = []
self._csr_groups = [] # list of (group_name, (group_member0, group_member1, ...))
self.interrupt_devices = []

if cpu_type == "lm32":
@@ -147,11 +147,14 @@ def add_csr_region(self, name, origin, busword, obj):
self.check_csr_region(name, origin)
self._csr_regions.append((name, origin, busword, obj))

def add_csr_group(self, group_name, members):
self._csr_groups.append((group_name, members))

def get_csr_regions(self):
return self._csr_regions

def get_csr_groups(self):
return self.csr_groups
return self._csr_groups

def get_constants(self):
r = []

0 comments on commit bba206f

Please sign in to comment.