from nmigen_soc.wishbone.bus import Interface
from nmigen_soc.memory import MemoryMap
-from lambdasoc.periph.event import IRQLine
from nmigen.utils import log2_int
from nmigen.cli import rtlil, verilog
import os
self.master_bus = master_bus
self.slave_bus = slave_bus
if irq is None:
- irq = IRQLine()
+ irq = Signal()
self.irq = irq
slave_mmap = MemoryMap(addr_width=12+self.dsize,
"""
def __init__(self, bus=None, features=None, name=None, data_width=32,
- pins=None):
+ pins=None, irq=None):
if name is not None:
# convention: give the name in the format "name_number"
self.idx = int(name.split("_")[-1])
"bus width must be %d" % data_width
# IRQ for data buffer receive/xmit
- self.irq = Signal()
+ if irq is None:
+ irq = Signal()
+ self.irq = irq
# 9-pin UART signals (if anyone still remembers those...)
self.tx_o = Signal() # transmit