padbank[banknum] = name
print "sys_rst add", bank, banknum, name
name = None
- else:
- name = ''
#if name:
# iopads.append([pname, name, name])
# SPI Card
pad = ['p_' + name, name, name2 % 'o', name2 % 'i', name2 % 'oe']
print ("GPIO pad", name, pad)
iopads.append(pad)
+ # I2C
+ elif name.startswith('twi'):
+ name = 'i2c' + name[3:]
+ if name.startswith('i2c_sda'):
+ name2 = 'i2c_sda_%s'
+ pad = ['p_' + name, name, name2 % 'o', name2 % 'i', name2 % 'oe']
+ print ("I2C pad", name, pad)
+ iopads.append(pad)
# EINT
elif name.startswith('eint'):
i = name[-1]
'pads.west' : pw,
#[ 'f_3', 'f_2' , 'p_clk_0', 'f_1' , 'f_0' ]
# core option (big, time-consuming)
- #'core.size' : ( l(27500), l(27500) ),
- #'chip.size' : ( l(30000), l(30000) ),
+ #'core.size' : ( l(28000), l(28000) ),
+ #'chip.size' : ( l(30200), l(30200) ),
# no-core option (test_issuer but no actual core)
'core.size' : ( l(13000), l(13000) ),
'chip.size' : ( l(17000), l(17000) ),