Esempio n. 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')))
Esempio n. 2
0
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())
Esempio n. 4
0
def main(_):
    top.build(nexysa7100t.NexysA7100TPlatform(), Demo())
Esempio n. 5
0
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)
Esempio n. 6
0
def main(_):
    top.build(NexysA7100TPlatform(), blinky.Blinky())