From a761e89dcfd77a7aee9b309fffa87348f65c0ddc Mon Sep 17 00:00:00 2001 From: Andrey Miroshnikov Date: Sat, 13 Nov 2021 09:23:21 +0000 Subject: [PATCH] Added platform instantiation (missing import statement though) --- src/spec/testing_stage1.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 -- 2.30.2