From: Luke Kenneth Casson Leighton Date: Wed, 1 Aug 2018 05:46:33 +0000 (+0100) Subject: add sdram3 function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=22ddaa35cb060679b66064e9f3d3a5a346245ba3;p=pinmux.git add sdram3 function --- diff --git a/src/spec/pinfunctions.py b/src/spec/pinfunctions.py index 423a190..5653fc5 100644 --- a/src/spec/pinfunctions.py +++ b/src/spec/pinfunctions.py @@ -164,33 +164,47 @@ def flexbus2(suffix, bank): def sdram1(suffix, bank): buspins = [] inout = [] - for i in range(16): + for i in range(8): pname = "SDRDQM%d*" % i buspins.append(pname) + for i in range(8): + pname = "SDRD%d*" % i + buspins.append(pname) inout.append(pname) for i in range(12): buspins.append("SDRAD%d+" % i) for i in range(8): - buspins.append("SDRDQ%d+" % i) - for i in range(3): - buspins.append("SDRCS%d#+" % i) - for i in range(2): - buspins.append("SDRDQ%d+" % i) + buspins.append("SDRDEN%d+" % i) for i in range(2): buspins.append("SDRBA%d+" % i) - buspins += ['SDRCKE+', 'SDRRAS#+', 'SDRCAS#+', 'SDRWE#+', - 'SDRRST+'] + buspins += ['SDRCKE+', 'SDRRASn+', 'SDRCASn+', 'SDRWEn+', + 'SDRCSn0++'] return (buspins, inout) def sdram2(suffix, bank): buspins = [] inout = [] - for i in range(3, 6): - buspins.append("SDRCS%d#+" % i) - for i in range(16, 32): + for i in range(1, 6): + buspins.append("SDRCSn%d+" % i) + for i in range(8, 16): pname = "SDRDQM%d*" % i buspins.append(pname) + for i in range(8, 16): + pname = "SDRD%d*" % i + buspins.append(pname) + inout.append(pname) + return (buspins, inout) + + +def sdram3(suffix, bank): + buspins = [] + inout = [] + for i in range(12, 13): + buspins.append("SDRAD%d+" % i) + for i in range(8, 64): + pname = "SDRD%d*" % i + buspins.append(pname) inout.append(pname) return (buspins, inout)