Misc("SLEWRATE=FAST"),
),
+ ("pwm", 0, Pins("P1"), IOStandard("LVCMOS33")),
+ ("pwm", 1, Pins("P2"), IOStandard("LVCMOS33")),
]
if False:
from litex.soc.cores.gpio import GPIOInOut, GPIOIn, GPIOOut#, GPIOTristate
from litex.soc.cores.spi import SPIMaster
+from litex.soc.cores.pwm import PWM
from litex.tools.litex_sim import sdram_module_nphases, get_sdram_phy_settings
self.comb += self.cpu.jtag_tdi.eq(jtagpads.tdi)
self.comb += jtagpads.tdo.eq(self.cpu.jtag_tdo)
+ # PWM
+ for i in range(2):
+ name = "pwm%d" % i
+ setattr(self.submodules, name, PWM(platform.request("pwm", i)))
+ self.add_csr(name)
+
+
# Debug ---------------------------------------------------------------
if not debug:
return