from bsv.wire_def import muxwire # special case
from ifacebase import InterfacesBase
+
class Pin(object):
""" pin interface declaration.
* name is the name of the pin
# ========= Interface declarations ================ #
-mux_interface = MuxInterface('cell', [{'name': 'mux', 'ready': False,
- 'enabled': False,
- 'bitspec': '{1}', 'action': True}])
+mux_interface = MuxInterface('cell',
+ [{'name': 'mux', 'ready': False, 'enabled': False,
+ 'bitspec': '{1}', 'action': True}])
io_interface = IOInterface(
'io',
ganged[bus].append(name)
spec.append(d)
return spec, ganged
-
digits = maketrans('0123456789', ' ' * 10) # delete space later
# XXX hmmm duplicated from src/bsc/actual_pinmux.py
+
+
def transfn(temp):
""" removes the number from the string of signal name.
"""
return '%s{0}_%s' % (self.ifacename, name)
-
class Interfaces(InterfacesBase):
""" contains a list of interface definitions
"""
tb.config_sim(trace=True)
tb.run_sim(66 * period) # run for 15 clock cycle
+
test = create_test()
return int(math.log(max_num_cells + 1, 2))
-
if __name__ == '__main__':
p = Parse()
print (p.N_IO)
else:
specgen(of, output_dir, pinout, bankspec, pinspec, fixedpins)
else:
- gentypes = {'bsv': bsvgen, 'myhdl': myhdlgen }
+ gentypes = {'bsv': bsvgen, 'myhdl': myhdlgen}
if output_type not in gentypes:
print ("ERROR: output type '%s' does not exist" % output_type)
printhelp()