From 19b9f9e2e7656ad1d39f254cce2daa295999438c Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 10 Jun 2021 11:50:55 +0000 Subject: [PATCH] put in a temporary absolutely terrible hack for now to skip adding analog pins --- cumulus/src/plugins/alpha/block/iospecs.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cumulus/src/plugins/alpha/block/iospecs.py b/cumulus/src/plugins/alpha/block/iospecs.py index 19ed9a59..c0043cc5 100644 --- a/cumulus/src/plugins/alpha/block/iospecs.py +++ b/cumulus/src/plugins/alpha/block/iospecs.py @@ -119,9 +119,11 @@ class IoSpecs ( object ): actual_side |= IoPin.A_END self.addIoPadSpec( padName, actual_side) - def loadFromPinmux ( self, fileName ): + def loadFromPinmux ( self, fileName , cheat_dont_do_analog=False): """ Load ioPadsSpec from a LibreSOC generated pinmux file in JSON format. + The cheat_dont_do_analog is there, sigh, because nsxlib doesn't + have analog pads. it's a terrible hack. """ print( ' o Loading I/O pad specifications from "%s".' % fileName ) if not os.path.isfile(fileName): @@ -147,7 +149,7 @@ class IoSpecs ( object ): # remove the direction info: + output - input * bi-directional if padDatas[-1][-1] in '+-*': end = -1 # check if pad is analog or not: last spec item starts with "A" - if padDatas[-1][0] == 'A': + if padDatas[-1][0] == 'A' and not cheat_dont_do_analog: self._ioPadsLUT[padName].setAnalog() # add the nets to the pad self._ioPadsLUT[padName].addNets( padDatas[1:end] )