from zyp_amaranth_libs.sim_platform import SimPlatform from amaranth.build import Resource, Subsignal, Pins platform = SimPlatform([ Resource('spi', 0, Subsignal('rst', Pins('1', dir = 'o', invert = True)), Subsignal('cs', Pins('2', dir = 'o', invert = True)), Subsignal('sclk', Pins('3', dir = 'o')), Subsignal('sdi', Pins('4 5', dir = 'o')), Subsignal('sdo', Pins('6 7', dir = 'i')), ), ], [])