Skip to content

Instantly share code, notes, and snippets.

@folknology
Created April 12, 2022 19:24
Show Gist options
  • Save folknology/35c1fb20c33743547b044b169eb6d8b2 to your computer and use it in GitHub Desktop.
Save folknology/35c1fb20c33743547b044b169eb6d8b2 to your computer and use it in GitHub Desktop.
class QSPIE2LedTest(Elaboratable):
def elaborate(self, platform):
leds12 = Cat([l for l in platform.request("leds12")])
qspie = Cat([platform.request("qd0"),
platform.request("qd1"),
platform.request("qd2"),
platform.request("qd3"),
platform.request("qck"),
platform.request("qss"),
platform.request("qdr"),
Repl(C(0, 1), 5)])
m = Module()
m.d.comb += leds12.eq(qspie)
return m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment