from litex.gen.fhdl.namer import build_namespace
from litex.gen.fhdl.conv_output import ConvOutput
+# TODO: clean up simulation hack
_reserved_keywords = {
"always", "and", "assign", "automatic", "begin", "buf", "bufif0", "bufif1",
from litex.soc.interconnect.stream import *
-# TODO: move reverse_bytes / Counter
+# TODO: clean up code below
+# XXX
def reverse_bytes(signal):
n = (len(signal)+7)//8
if almost_full is not None:
self.almost_full = Signal()
self.comb += self.almost_full.eq(data_fifo.fifo.level > almost_full)
+
+# XXX
from litex.gen import *
from litex.soc.interconnect.stream import Sink, Source
+# TODO: clean up code below
+# XXX
+
def print_with_prefix(s, prefix=""):
if not isinstance(s, str):
s = s.__repr__()
selfp.run = 0
else:
selfp.run = 1
+
+# XXX
\ No newline at end of file