N_IO = 0
N_MUX_IO = 0
Addressing = 'WORD'
- ADDR_WIDTH = 32
- DATA_WIDTH = 32
+ ADDR_WIDTH = 64 # TODO parameterise
+ PADDR_WIDTH = 32 # TODO parameterise
+ DATA_WIDTH = 64 # TODO parameterise
# ================ #
# Generating the number of bits for memory map #
if len(line1) == 2: # dedicated
self.dedicated_cells.append(line1)
else:
+ for i in range(1, len(line1)):
+ # XXX HORRIBLE HACK!!
+ if line1[i].startswith('pwm'):
+ line1[i] = 'pwm%s_out' % line1[i][4:]
self.muxed_cells.append(line1)
self.pinnumbers = sorted(self.pinnumbers)
return int(math.log(max_num_cells + 1, 2))
-
if __name__ == '__main__':
p = Parse()
print (p.N_IO)