From: Andrey Miroshnikov Date: Sat, 13 Nov 2021 09:23:21 +0000 (+0000) Subject: Added platform instantiation (missing import statement though) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a761e89dcfd77a7aee9b309fffa87348f65c0ddc;p=pinmux.git Added platform instantiation (missing import statement though) --- diff --git a/src/spec/testing_stage1.py b/src/spec/testing_stage1.py index 39690b5..7312c7f 100644 --- a/src/spec/testing_stage1.py +++ b/src/spec/testing_stage1.py @@ -1,4 +1,7 @@ #!/usr/bin/env python +from nmigen import Platform # Not sure where platform comes from? + +# Was thinking of using these functions, but skipped for simplicity for now #from pinfunctions import i2s, lpc, emmc, sdmmc, mspi, mquadspi, spi, quadspi, i2c, mi2c, jtag, uart, uartfull, rgbttl, ulpi, rgmii, flexbus1, flexbus2, sdram1, sdram2, sdram3, vss, vdd, sys, eint, pwm, gpio # File for stage 1 pinmux tested proposed by Luke, https://bugs.libre-soc.org/show_bug.cgi?id=50#c10 @@ -57,5 +60,7 @@ def dummy_pinset(): } # testing ..... -resources = dummy_pinset() -print(resources) \ No newline at end of file +p=Platform() +p.resources=dummy_pinset() +print(p.resources) +p.build(Blinker()) \ No newline at end of file