interface Vme_out proc_ifc;
interface Data_bus_inf proc_dbus;
`endif
- `ifdef FlexBus
- interface FlexBus_Master_IFC flexbus_out;
- `endif
{1}
endinterface
`ifdef VME
Ifc_vme_top vme <-mkvme_top();
`endif
- `ifdef FlexBus
- AXI4_Slave_to_FlexBus_Master_Xactor_IFC #(32, 64,0)
- flexbus <- mkAXI4_Slave_to_FlexBus_Master_Xactor;
- `endif
Ifc_slow_peripherals slow_peripherals <-mkslow_peripherals(
core_clock, core_reset, uart_clock,
uart_reset, clocked_by slow_clock ,
[fromInteger(valueOf(VME_slave_num))],
vme.slave_axi_vme);
`endif
- `ifdef FlexBus
- mkConnection (fabric.v_to_slaves
- [fromInteger(valueOf(FlexBus_slave_num))],
- flexbus.axi_side);
- `endif
// fabric connections
{5}
`ifdef VME
interface proc_ifc = vme.proc_ifc;
interface proc_dbus = vme.proc_dbus;
- `endif
- `ifdef FlexBus
- interface flexbus_out = flexbus.flexbus_side;
`endif
method Action boot_sequence(Bit#(1) bootseq) =
core.boot_sequence(bootseq);
def extfastifinstance(self, name, count):
return ''
- def _extifinstance(self, name, count, suffix, prefix, samename=False):
+ def _extifinstance(self, name, count, suffix, prefix, samename=False,
+ ifsuffix=None):
+ if ifsuffix is None:
+ ifsuffix = ''
pname = self.get_iname(count)
if samename:
sname = pname
else:
sname = self.peripheral.iname().format(count)
- template = "interface {0}{3} = {2}{1};"
- return template.format(pname, sname, prefix, suffix)
+ template = "interface {0}{3} = {2}{1}{4};"
+ return template.format(pname, sname, prefix, suffix, ifsuffix)
def extifinstance2(self, name, count):
return ''
from qspi import qspi, mqspi
from gpio import gpio
from rgbttl import rgbttl
+ from flexbus import flexbus
for k, v in {'uart': uart,
'rs232': rs232,
'sd': sdmmc,
'jtag': jtag,
'lcd': rgbttl,
+ 'fb': flexbus,
'gpio': gpio
}.items():
if name.startswith(k):
def fastifdecl(self, name, count):
# YUK!
- return "Ifc_jtagdtm jtag{0}_out;".format(count)
+ return "interface Ifc_jtagdtm jtag{0}_out;".format(count)
def mkfast_peripheral(self):
return """\
}
ps = PinSpec(pinbanks, fixedpins, function_names,
- ['lcd', 'jtag', 'flexbus' ])
+ ['lcd', 'jtag', 'fb' ])
# Bank A, 0-27
ps.gpio("", ('A', 0), 0, 0, 28)