Signed-off-by: Maciej Kurc <mkurc@antmicro.com>
This commit is contained in:
Maciej Kurc 2019-12-10 15:21:28 +01:00
parent 0e8ff9b64e
commit 7bd13efdcb
2 changed files with 25 additions and 5 deletions

View File

@ -28,11 +28,6 @@ proc print_tile_pips {tile_type filename} {
continue
}
# TODO: Support CLK sources from PS7 hardblock
if [string match *PSS_HCLK* $src_node] {
continue
}
if {[llength [get_nodes -uphill -of_objects [get_nodes -of_objects $dst]]] != 1} {
set pip_string "$tile_type.[regsub {.*/} $dst ""].[regsub {.*/} $src ""]"
if ![dict exists $pips $pip_string] {

View File

@ -314,6 +314,7 @@ module top();
site_to_cmt = dict(read_site_to_cmt())
is_zynq = os.getenv('XRAY_DATABASE') == 'zynq7'
clock_sources = ClockSources()
# To ensure that all left or right sources are used, sometimes only MMCM/PLL
@ -531,6 +532,30 @@ module top();
break
break
if is_zynq:
for loc, _, site in gen_sites('PS7'):
print("""
(* KEEP, DONT_TOUCH, LOC = "{site}" *)
PS7 ps7_{site} (
.FCLKCLK({fclk3, fclk2, fclk1, fclk0}),
.TESTPLLCLKOUT({testpllclkout2, testpllclkout1, testpllclkout0}),
.TESTPLLNEWCLK({testpllnewclk2, testpllnewclk1, testpllnewclk0}),
);
""".format(
site=site,
fclk0=,
fclk1=,
fclk2=,
fclk3=,
testpllclkout2=,
testpllclkout1=,
testpllclkout0=,
testpllnewclk2=,
testpllnewclk1=,
testpllnewclk0=,
))
for l in luts.create_wires_and_luts():
print(l)