From: Neel Date: Sat, 21 Jul 2018 06:26:23 +0000 (+0530) Subject: fix names X-Git-Url: https://git.libre-soc.org/?p=pinmux.git;a=commitdiff_plain;h=180f70b03d99ed3fe2838dda1dc34072f626a13f fix names --- diff --git a/src/bsv/peripheral_gen.py b/src/bsv/peripheral_gen.py index 519ca60..d424778 100644 --- a/src/bsv/peripheral_gen.py +++ b/src/bsv/peripheral_gen.py @@ -63,7 +63,10 @@ class PBase(object): ps_ = ps + '_out' else: ps_ = ps - n_ = "{0}{1}".format(n, count) + if not n.startswith('gpio'): # XXX EURGH! horrible hack + n_ = "{0}{1}".format(n, count) + else: + n_ = n ret.append(" {0}({1}.{2});".format(ps_, n_, fname)) fname = None if p.get('outen'): @@ -294,7 +297,7 @@ class pwm(PBase): return " import pwm::*;" def slowifdecl(self): - return " interface PWMIO pwm{0}_o;" + return " interface PWMIO pwm{0};" def num_axi_regs32(self): return 4