Add LiteScope Analyzer instance and csvs needed

This commit is contained in:
Aadi Desai 2023-05-11 01:46:58 +01:00
parent bda6a825de
commit 012b24adaf
No known key found for this signature in database

18
make.py
View file

@ -237,6 +237,23 @@ class BaseSoC(SoCCore):
pads = platform.request("dac_pcm") pads = platform.request("dac_pcm")
) )
# LiteScope Analyzer -----------------------------------------------------------------------
self.add_uartbone(name="debug_uart", baudrate=115200)
from litescope import LiteScopeAnalyzer
analyzer_signals = [
self.audio.targ.storage,
self.audio.backpressure_48,
self.audio.leftrightaudio_48,
self.audio.audioready_48,
]
self.submodules.analyzer = LiteScopeAnalyzer(
analyzer_signals,
depth = 1024,
clock_domain = "sys",
samplerate = sys_clk_freq,
csr_csv = "analyzer.csv",
)
# Build -------------------------------------------------------------------------------------------- # Build --------------------------------------------------------------------------------------------
def main(): def main():
@ -258,6 +275,7 @@ def main():
**parser.soc_argdict) **parser.soc_argdict)
if args.with_spi_sdcard: if args.with_spi_sdcard:
soc.add_spi_sdcard() soc.add_spi_sdcard()
args.csr_csv = "csr.csv"
builder = Builder(soc, **parser.builder_argdict) builder = Builder(soc, **parser.builder_argdict)
if args.build: if args.build:
builder.build(**parser.toolchain_argdict) builder.build(**parser.toolchain_argdict)