mirror of https://github.com/openXC7/prjxray.git
Make format.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
parent
72ffe32e33
commit
8ff137435b
|
|
@ -17,7 +17,6 @@ def gen_sites(lr):
|
|||
if gridinfo.tile_type[-1] != lr:
|
||||
continue
|
||||
|
||||
|
||||
sites = []
|
||||
for site_name, site_type in gridinfo.sites.items():
|
||||
if site_type in ['SLICEL', 'SLICEM']:
|
||||
|
|
@ -30,14 +29,17 @@ def gen_sites(lr):
|
|||
|
||||
yield sorted(sites)
|
||||
|
||||
|
||||
def yield_bits(bits, nvals):
|
||||
for i in range(nvals):
|
||||
mask = (1 << i)
|
||||
yield int(bool(bits & mask))
|
||||
|
||||
|
||||
NUM_IMUX_INPUTS = 2 * 6 * 4
|
||||
NUM_TILES = 20
|
||||
|
||||
|
||||
def emit_luts(choices, spec_idx, lr):
|
||||
for idx, sites in enumerate(itertools.islice(gen_sites(lr), 0, NUM_TILES)):
|
||||
|
||||
|
|
@ -51,7 +53,8 @@ def emit_luts(choices, spec_idx, lr):
|
|||
|
||||
for site in sites:
|
||||
for lut in range(4):
|
||||
print('''
|
||||
print(
|
||||
'''
|
||||
(* KEEP, DONT_TOUCH, LOC = "{site}" *)
|
||||
LUT6 {site}_lut{lut} (
|
||||
.I0({I0}),
|
||||
|
|
|
|||
|
|
@ -244,6 +244,7 @@ def gen_fuzz_choices(nvals):
|
|||
|
||||
return choices
|
||||
|
||||
|
||||
def gen_fuzz_states(nvals):
|
||||
'''
|
||||
Generates an optimal encoding to solve single bits as quickly as possible
|
||||
|
|
|
|||
Loading…
Reference in New Issue