remove limitation on debug tuple definition
This commit is contained in:
parent
5f19955825
commit
8e0553670a
|
@ -81,6 +81,8 @@ class LiteScopeLA(Module, AutoCSR):
|
|||
r += format_line("config", "dw", str(self.dw))
|
||||
r += format_line("config", "depth", str(self.depth))
|
||||
r += format_line("config", "with_rle", str(int(self.with_rle)))
|
||||
if not isinstance(self.layout, tuple):
|
||||
self.layout = [self.layout]
|
||||
for e in self.layout:
|
||||
r += format_line("layout", vns.get_name(e), str(flen(e)))
|
||||
write_to_file(filename, r)
|
||||
|
|
2
make.py
2
make.py
|
@ -131,7 +131,7 @@ RLE: {}
|
|||
write_to_file(args.csr_csv, csr_csv)
|
||||
|
||||
if actions["build-bitstream"]:
|
||||
vns = platform.build(soc, build_name=build_name)
|
||||
vns = platform.build(soc, build_name=build_name, run=True)
|
||||
if hasattr(soc, "do_exit") and vns is not None:
|
||||
if hasattr(soc.do_exit, '__call__'):
|
||||
soc.do_exit(vns)
|
||||
|
|
|
@ -98,8 +98,7 @@ class LiteScopeSoC(GenSoC, AutoCSR):
|
|||
]
|
||||
|
||||
self.debug = (
|
||||
counter1.value,
|
||||
Signal()
|
||||
counter1.value
|
||||
)
|
||||
self.submodules.la = LiteScopeLA(self.debug, 512, with_rle=True, with_subsampler=True)
|
||||
self.la.trigger.add_port(LiteScopeTerm(self.la.dw))
|
||||
|
|
Loading…
Reference in New Issue