Run make format.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
Keith Rothman 2019-01-28 11:32:16 -08:00
parent bf8fd49ba4
commit 2b223ac86c
3 changed files with 6 additions and 10 deletions

View File

@ -6,6 +6,7 @@ from prjxray import util
Local utils script to hold shared code of the 005-tilegrid fuzzer scripts
'''
def get_entry(tile_type, block_type):
""" Get frames and words for a given tile_type (e.g. CLBLL) and block_type (CLB_IO_CLK, BLOCK_RAM, etc). """
return {
@ -26,13 +27,7 @@ def get_int_params():
def add_tile_bits(
tile_name,
tile_db,
baseaddr,
offset,
frames,
words,
verbose=False):
tile_name, tile_db, baseaddr, offset, frames, words, verbose=False):
'''
Record data structure geometry for the given tile baseaddr
For most tiles there is only one baseaddr, but some like BRAM have multiple

View File

@ -14,7 +14,8 @@ with open('params.csv', 'r') as f:
pattern = int(d['pattern'])
for i in range(48):
segmk.add_site_tag(d['site'], "%s.MASK[%d]" % (dsp, i), (mask >> i) & 1)
segmk.add_site_tag(
d['site'], "%s.MASK[%d]" % (dsp, i), (mask >> i) & 1)
segmk.add_site_tag(
d['site'], "%s.PATTERN[%d]" % (dsp, i), (pattern >> i) & 1)

View File

@ -34,8 +34,8 @@ module top();
sites = list(gen_sites())
for (tile_name, site_name) in sites:
mask = random.randint(0, 2**48-1)
pattern = random.randint(0, 2**48-1)
mask = random.randint(0, 2**48 - 1)
pattern = random.randint(0, 2**48 - 1)
lines.append((tile_name, site_name, mask, pattern))
print(