genconn.py 519 Bytes
Newer Older
1 2
#!/usr/bin/python

3
nchan = 8
4 5 6 7 8 9 10 11 12 13 14 15

for i in range(0,nchan):
    print "tdc_desh%d_o => wbg_des(%d downto %d)," % (i, i*64+63, i*64+32)
    print "tdc_desl%d_o => wbg_des(%d downto %d)," % (i, i*64+31, i*64)

for i in range(0,nchan):
    print "tdc_raw%d_i => wbg_raw(%d downto %d)," % (i, i*32+31, i*32)
    print "tdc_mesh%d_i => wbg_mes(%d downto %d)," % (i, i*64+63, i*64+32)
    print "tdc_mesl%d_i => wbg_mes(%d downto %d)," % (i, i*64+31, i*64)

for i in range(0,nchan):
    print "irq_ie%d_i => wbg_ie(%d)," % (i, i)