From: Luke Kenneth Casson Leighton Date: Sat, 14 Apr 2018 11:28:03 +0000 (+0100) Subject: must declare mux selection same bitwidth X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=473bc1ff7b3639164ae94eaa91f3f5916f468911;p=pinmux.git must declare mux selection same bitwidth --- diff --git a/src/bsv/pinmux_generator.py b/src/bsv/pinmux_generator.py index 7a01fb3..d45f5df 100644 --- a/src/bsv/pinmux_generator.py +++ b/src/bsv/pinmux_generator.py @@ -170,9 +170,7 @@ def write_pmp(pmp, p, ifaces): for cell in p.muxed_cells: bsv_file.write( mux_interface.ifacedef( - cell[0], 'Bit#(' + str(int( - math.log( - len(cell) - 1, 2))) + ')')) + cell[0], cell_bit_width)) bsv_file.write(''' endinterface; interface peripheral_side = interface PeripheralSide