mirror of https://github.com/openXC7/prjxray.git
Update rempips experiment
Signed-off-by: Clifford Wolf <clifford@clifford.at> Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
This commit is contained in:
parent
4cf059ed69
commit
d8cac0e25b
|
|
@ -10,6 +10,13 @@ segmk = segmaker("design.bits")
|
||||||
tiledata = dict()
|
tiledata = dict()
|
||||||
pipdata = dict()
|
pipdata = dict()
|
||||||
ignpip = set()
|
ignpip = set()
|
||||||
|
todo = set()
|
||||||
|
|
||||||
|
print("Loading todo from ../todo.txt.")
|
||||||
|
with open("../todo.txt", "r") as f:
|
||||||
|
for line in f:
|
||||||
|
line = tuple(line.strip().split("."))
|
||||||
|
todo.add(line)
|
||||||
|
|
||||||
print("Loading tags from design.txt.")
|
print("Loading tags from design.txt.")
|
||||||
with open("design.txt", "r") as f:
|
with open("design.txt", "r") as f:
|
||||||
|
|
@ -44,6 +51,9 @@ with open("design.txt", "r") as f:
|
||||||
if pnum == 1 or pdir == 0:
|
if pnum == 1 or pdir == 0:
|
||||||
ignpip.add(pip)
|
ignpip.add(pip)
|
||||||
|
|
||||||
|
if ("_".join(tile.split("_")[0:2]), dst, src) not in todo:
|
||||||
|
ignpip.add(pip)
|
||||||
|
|
||||||
for tile, pips_srcs_dsts in tiledata.items():
|
for tile, pips_srcs_dsts in tiledata.items():
|
||||||
pips = pips_srcs_dsts["pips"]
|
pips = pips_srcs_dsts["pips"]
|
||||||
srcs = pips_srcs_dsts["srcs"]
|
srcs = pips_srcs_dsts["srcs"]
|
||||||
|
|
|
||||||
|
|
@ -41,9 +41,13 @@ for {set idx 0} {$idx < [llength $todo_lines]} {incr idx} {
|
||||||
if {$tile_type == "INT_L"} {set tile [lindex $int_l_tiles $idx]; set other_tile [lindex $int_r_tiles $idx]}
|
if {$tile_type == "INT_L"} {set tile [lindex $int_l_tiles $idx]; set other_tile [lindex $int_r_tiles $idx]}
|
||||||
if {$tile_type == "INT_R"} {set tile [lindex $int_r_tiles $idx]; set other_tile [lindex $int_l_tiles $idx]}
|
if {$tile_type == "INT_R"} {set tile [lindex $int_r_tiles $idx]; set other_tile [lindex $int_l_tiles $idx]}
|
||||||
|
|
||||||
|
puts "PIP Tile: $tile"
|
||||||
|
|
||||||
set driver_site [get_sites -of_objects [get_site_pins -of_objects [get_nodes -downhill \
|
set driver_site [get_sites -of_objects [get_site_pins -of_objects [get_nodes -downhill \
|
||||||
-of_objects [get_nodes -of_objects [get_wires $other_tile/CLK*0]]]]]
|
-of_objects [get_nodes -of_objects [get_wires $other_tile/CLK*0]]]]]
|
||||||
|
|
||||||
|
puts "LUT Tile (Site): $other_tile ($driver_site)"
|
||||||
|
|
||||||
set mylut [create_cell -reference LUT1 mylut_$idx]
|
set mylut [create_cell -reference LUT1 mylut_$idx]
|
||||||
set_property -dict "LOC $driver_site BEL A6LUT" $mylut
|
set_property -dict "LOC $driver_site BEL A6LUT" $mylut
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue