Exemple #1
0
def main(_):
    platform = nexysa7100t.NexysA7100TPlatform()
    if FLAGS.debug_pmod is not None:
        conn = ('pmod', FLAGS.debug_pmod)
        platform.add_resources([
            Resource(
                'debug', 0,
                Subsignal('tx', Pins('1', conn=conn, dir='o')),
                Subsignal('rx', Pins('2', conn=conn, dir='o')),
                Attrs(IOSTANDARD="LVCMOS33")),
        ])
        demo_cls = UARTDemoDebug
    else:
        demo_cls = UARTDemo
    top.build(platform, demo_cls(pins=platform.request('uart')))
def main(_):
    platform = nexysa7100t.NexysA7100TPlatform()
    platform.add_resources([
        pmod_oled.PmodOLEDResource(0, conn=('pmod', 2)),
    ])
    top.build(platform, Demo())
def main(_):
    top.build(nexysa7100t.NexysA7100TPlatform(), ManualBrightness())
Exemple #4
0
def main(_):
    top.build(nexysa7100t.NexysA7100TPlatform(), Demo())
def main(_):
    platform = nexysa7100t.NexysA7100TPlatform()
    segments = platform.request('display_7seg')
    anodes = platform.request('display_7seg_an')
    demo = seven_segment.DisplayMultiplexerDemo(segments, anodes)
    top.build(platform, demo)
Exemple #6
0
def main(_):
    top.build(NexysA7100TPlatform(), blinky.Blinky())