[Libre-soc-bugs] [Bug 50] nmigen pinmux

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sat Nov 13 18:32:46 GMT 2021


https://bugs.libre-soc.org/show_bug.cgi?id=50

--- Comment #19 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
cleaned up the create_resources function a bit, and started experimenting
to see what the heck is going on.  

@@ -78,6 +81,16 @@ class Blinker(Elaboratable):
         m = Module()
         count = Signal(5)
         m.d.comb += count.eq(5)
+        print ("resources", platform.resources.items())
+        gpio = platform.request("gpio", 0)
+        m.d.comb += gpio.gpio0.o.eq(1)

well, that looks pretty straightforward and easy, and the build/top.il
and build/debug.top.v look obvious as well.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list