From: Luke Kenneth Casson Leighton Date: Fri, 3 Aug 2018 05:15:24 +0000 (+0100) Subject: set up defaults for mux X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c70fd52d0d50dca2f172d318bd34fdea6764d715;p=pinmux.git set up defaults for mux --- diff --git a/src/bsv/peripheral_gen/gpio.py b/src/bsv/peripheral_gen/gpio.py index be38502..d86c582 100644 --- a/src/bsv/peripheral_gen/gpio.py +++ b/src/bsv/peripheral_gen/gpio.py @@ -37,7 +37,8 @@ class gpio(PBase): def mkslow_peripheral(self, size=0): print "gpioslow", self.peripheral, dir(self.peripheral) size = len(self.peripheral.pinspecs) - return "MUX#(%d) mux{0} <- mkmux();\n" % size + \ + dflt = "'b%s" % ("0"*size*2) + return "MUX#(%d) mux{0} <- mkmux(%s);\n" % (size, dflt)+ \ "GPIO#(%d) gpio{0} <- mkgpio();" % size def mk_connection(self, count, fabricname, typ):