mkConnection (slow_fabric.v_to_slaves [fromInteger(valueOf(Plic_slave_num))],
plic.axi4_slave_plic); //
`endif
- `ifdef QSPI0
- mkConnection (slow_fabric.v_to_slaves [fromInteger(valueOf(Qspi0_slave_num))],
- qspi0.slave);
- `endif
- `ifdef QSPI1
- mkConnection (slow_fabric.v_to_slaves [fromInteger(valueOf(Qspi1_slave_num))],
- qspi1.slave);
- `endif
`ifdef AXIEXP
mkConnection (slow_fabric.v_to_slaves [fromInteger(valueOf(AxiExp1_slave_num))],
axiexp1.axi_slave); //
`endif
- `ifdef PWM_AXI4Lite
- mkConnection (slow_fabric.v_to_slaves [fromInteger(valueOf(Pwm_slave_num))],
- pwm_bus.axi4_slave);
- `endif
// NEEL EDIT
mkConnection (slow_fabric.
def mkslow_peripheral(self):
return ''
- def mk_connection(self, count):
- aname = self.axi_slave_name(self.name, count)
+ def __mk_connection(self, aname, count):
txt = " mkConnection (slow_fabric.v_to_slaves\n" + \
" [fromInteger(valueOf({1}))],\n" + \
" {0});"
return ''
return txt.format(con, aname)
+ def mk_connection(self, count):
+ aname = self.axi_slave_name(self.name, count)
+ return :elf.__mk_connection(aname, count)
+
def _mk_connection(self):
return ''
return 4
def mkslow_peripheral(self):
- return " Ifc_PWM_bus pwm_bus <- mkPWM_bus(sp_clock);"
+ return " Ifc_PWM_bus pwm{0}_bus <- mkPWM_bus(sp_clock);"
+
+ def _mk_connection(self):
+ return "pwm{0}_bus.axi4_slave"
class gpio(PBase):