From c70fd52d0d50dca2f172d318bd34fdea6764d715 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 3 Aug 2018 06:15:24 +0100 Subject: [PATCH] set up defaults for mux --- src/bsv/peripheral_gen/gpio.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- 2.30.2