bram: minor cleanup

Signed-off-by: John McMaster <johndmcmaster@gmail.com>
This commit is contained in:
John McMaster 2018-10-31 17:47:18 -07:00
parent 3f77043458
commit 2cffb2987e
3 changed files with 6 additions and 13 deletions

View File

@ -32,15 +32,7 @@ def gen_brams():
'''
Correctly assign a site to either bram36 or 2x bram18
'''
# FIXME
#yield ('RAMBFIFO36E1', "RAMB36_X0Y20")
#return
#for _tile_name, site_name, _site_type in util.get_roi().gen_tiles():
#for site in gen_bram36():
# yield ('RAMBFIFO36E1', site)
# XXX: mix 18 and 36?
for site in gen_bram18():
yield ('RAMB18E1', site)
@ -100,6 +92,7 @@ for loci, (site_type, site) in enumerate(brams):
return ('my_RAMB18E1', ports, params)
'''
def place_bram36():
ports = {
'clk': 'clk',
@ -121,10 +114,11 @@ for loci, (site_type, site) in enumerate(brams):
'WRITE_MODE_B': '"WRITE_FIRST"',
}
return ('my_RAMB36E1', ports, params)
'''
modname, ports, params = {
'RAMB18E1': place_bram18,
'RAMBFIFO36E1': place_bram36,
#'RAMBFIFO36E1': place_bram36,
}[site_type]()
verilog.instance(modname, 'inst_%u' % loci, ports, params=params)

View File

@ -9,7 +9,7 @@ set_property -dict "PACKAGE_PIN $::env(XRAY_PIN_02) IOSTANDARD LVCMOS33" [get_po
set_property -dict "PACKAGE_PIN $::env(XRAY_PIN_03) IOSTANDARD LVCMOS33" [get_ports do]
create_pblock roi
set_property EXCLUDE_PLACEMENT 1 [get_pblocks roi]
add_cells_to_pblock [get_pblocks roi] [get_cells roi]
resize_pblock [get_pblocks roi] -add "$::env(XRAY_ROI)"

View File

@ -9,13 +9,12 @@ import sys
def gen_bram36():
#yield "RAMB36_X%dY%d" % (x, y)
for _tile_name, site_name, _site_type in util.get_roi().gen_sites(
['RAMBFIFO36E1']):
yield site_name
DUTN = 10
DUTN = len(list(gen_bram36()))
DIN_N = DUTN * 8
DOUT_N = DUTN * 8