From 302ea60085deb2d3f0deff57bd89fb88e7040481 Mon Sep 17 00:00:00 2001 From: Andrey Miroshnikov Date: Tue, 28 Jun 2022 12:29:53 +0000 Subject: [PATCH] Added ls2 svg, added rgmii to N bank --- src/pinmux_generator.py | 2 ++ src/spec/ls2.py | 18 ++++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/pinmux_generator.py b/src/pinmux_generator.py index 896c329..7c7d649 100644 --- a/src/pinmux_generator.py +++ b/src/pinmux_generator.py @@ -112,6 +112,8 @@ if __name__ == '__main__': temp_create_sv("%s/%s.svg" % (pinspec, pinspec), chip) if pinspec == "ls180": create_sv("%s/%s.svg" % (pinspec, pinspec), chip) + if pinspec == "ls2": + create_sv("%s/%s.svg" % (pinspec, pinspec), chip) else: if output_type == 'bsv': from bsv.pinmux_generator import pinmuxgen as gentypes diff --git a/src/spec/ls2.py b/src/spec/ls2.py index caec431..4792b88 100644 --- a/src/spec/ls2.py +++ b/src/spec/ls2.py @@ -38,6 +38,7 @@ def pinspec(): ]} fixedpins = {} function_names = { + 'RG0': 'Gigabit Ethernet 0', 'PWM': 'PWM (pulse-width modulation)', 'MSPI0': 'SPI Master 1 (general)', 'MSPI1': 'SPI Master 2 (SDCard)', @@ -100,18 +101,19 @@ def pinspec(): ps.eint("", ('E', 28), 0, 0, 3) ps.sys("", ('E', 31), 0, 5, 1) # analog VCO out in right top - ps.vss("E", ('N', 6), 0, 6, 1) - ps.vdd("E", ('N', 7), 0, 6, 1) - ps.vdd("I", ('N', 8), 0, 6, 1) - ps.vss("I", ('N', 9), 0, 6, 1) + ps.vss("E", ('N', 1), 0, 6, 1) + ps.vdd("E", ('N', 2), 0, 6, 1) + ps.vdd("I", ('N', 3), 0, 6, 1) + ps.vss("I", ('N', 4), 0, 6, 1) + ps.rgmii("0", ('N', 5), 0, 0, 18) #ps.pwm("", ('N', 2), 0, 0, 2) comment out (litex problem 25mar2021) #ps.mspi("1", ('N', 7), 0) comment out (litex problem 25mar2021) #ps.sdmmc("0", ('N', 11), 0) # comment out (litex problem 25mar2021) ps.sys("", ('N', 27), 0, 0, 5) # all but analog out in top right - ps.vss("I", ('N', 22), 0, 7, 1) - ps.vdd("I", ('N', 23), 0, 7, 1) - ps.vss("E", ('N', 24), 0, 7, 1) - ps.vdd("E", ('N', 25), 0, 7, 1) + ps.vss("I", ('N', 23), 0, 7, 1) + ps.vdd("I", ('N', 24), 0, 7, 1) + ps.vss("E", ('N', 25), 0, 7, 1) + ps.vdd("E", ('N', 26), 0, 7, 1) #ps.mquadspi("1", ('S', 0), 0) -- 2.30.2