# Outputs from the peripherals will be inputs to the pinmux
# module. Hence the change in direction for most pins
-ifaces = Interfaces()
-
# ======================================= #
# basic test
print
assert p1 == p2
+ ifaces = Interfaces()
+
ifaceuart = ifaces['uart']
print ifaceuart.ifacedef(0)
print uartinterface_decl.ifacedef(0)
import math
# project module imports
-from interface_decl import ifaces, mux_interface, io_interface
+from interface_decl import Interfaces, mux_interface, io_interface
from wire_def import muxwire, generic_io
from parse import Parse
from actual_pinmux import init
p = Parse()
init(p)
+ifaces = Interfaces()
+#ifaces.ifaceadd('io', p.N_IO, io_interface)
if not os.path.exists("bsv_src"):
os.makedirs("bsv_src")
// Each IO cell will have 8 input field (output from pin mux
// and on output field (input to pinmux)''')
for i in range(0, p.N_IO):
- bsv_file.write('''\n // interface for IO CEll-{0}''')
+ bsv_file.write('''\n // interface declaration between IO-{0} and pinmux'''.format(i))
+
bsv_file.write(io_interface.ifacefmt(i))
# ==============================================================