Files
Scanning the repository...
Last update 5 years 8 months
by Kate Temkin
| Fileslunagatewaredebug | |
|---|---|
| .. | |
| __init__.py | |
| console.py | |
| ila.py |
console.py# # This file is part of LUNA. # """ Simple gateware debug console for LUNA. """ from nmigen import Signal, Module, Cat, Elaboratable, Array from ..test.utils import LunaGatewareTestCase, sync_test_case class DebugConsole(Elaboratable): """ Simple debug console gateware for LUNA. I: line_in[8][max_line_legth] -- The line to be rendered to the output stream. I: line_length -- The data length to be rendered t """ def __init__(self, *, max_line_length=128): self.line_in = Array(Signal(8) for _ in range(max_line_length)) self.line_length = Signal(range(0, max_line_length + 1)) def elaborate(self, platform): m = Module() return m