From 36385cd37b2e24d02c64d9e57fde086336071657 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 3 Aug 2018 06:18:05 +0100 Subject: [PATCH] set up defaults for mux --- src/bsv/peripheral_gen/gpio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bsv/peripheral_gen/gpio.py b/src/bsv/peripheral_gen/gpio.py index d86c582..b9f8504 100644 --- a/src/bsv/peripheral_gen/gpio.py +++ b/src/bsv/peripheral_gen/gpio.py @@ -37,8 +37,8 @@ class gpio(PBase): def mkslow_peripheral(self, size=0): print "gpioslow", self.peripheral, dir(self.peripheral) size = len(self.peripheral.pinspecs) - dflt = "'b%s" % ("0"*size*2) - return "MUX#(%d) mux{0} <- mkmux(%s);\n" % (size, dflt)+ \ + dflt = "%s" % ("0"*size*2) # XX TODO: read default from config + return "MUX#(%d) mux{0} <- mkmux(`b%s);\n" % (size, dflt)+ \ "GPIO#(%d) gpio{0} <- mkgpio();" % size def mk_connection(self, count, fabricname, typ): -- 2.30.2