set fake-mem LibreSOCMem output q as a Net Output
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 27 May 2021 13:52:36 +0000 (13:52 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 27 May 2021 13:52:36 +0000 (13:52 +0000)
experiments9/LibreSOCMem.py

index b5c27644778e0f079409ac9c9e8fb1b8b80ed974..3bb757d3817012908a489ed07c3c50dc3106f9a0 100644 (file)
@@ -250,6 +250,10 @@ def _load():
                 x += step
                 net.setExternal(True)
                 NetExternalComponents.setExternal(pin)
+                # q is an output, has to be explicitly set as output
+                # everything else can kinda get away with not being set
+                if name == 'q':
+                    net.setDirection( Net.Direction.OUT )
             # separate the pin groups
             x += step * 3