Created
April 12, 2022 19:24
-
-
Save folknology/35c1fb20c33743547b044b169eb6d8b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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