030-iob18: fix Vref conflict warnigns by assigning the correct Vref

Signed-off-by: Hans Baier <hansfbaier@gmail.com>
This commit is contained in:
Hans Baier 2022-12-14 10:04:39 +07:00
parent ec284dfb8f
commit a517cfdda7
2 changed files with 15 additions and 8 deletions

View File

@ -65,6 +65,15 @@ def run():
"SSTL12": DIFF_SSTL12, "SSTL12": DIFF_SSTL12,
} }
vref_map = {
"SSTL12": .600,
"SSTL135": .675,
"SSTL15": .75,
"DIFF_SSTL12": .600,
"DIFF_SSTL135": .675,
"DIFF_SSTL15": .75,
}
only_diff_map = { only_diff_map = {
"LVDS": ["LVDS"], "LVDS": ["LVDS"],
} }
@ -99,13 +108,7 @@ def run():
for iobank in iobanks: for iobank in iobanks:
iostandard = random.choice(iostandards) iostandard = random.choice(iostandards)
if iostandard in SSTL: if iostandard in SSTL:
params['INTERNAL_VREF'][iobank] = random.choice( params['INTERNAL_VREF'][iobank] = vref_map[iostandard]
(
.600,
.675,
.75,
.90,
))
iostandard_map[iobank] = iostandard iostandard_map[iobank] = iostandard

View File

@ -11,7 +11,11 @@ open_io_design -name io_1
set fp [open "iobanks.txt" "w"] set fp [open "iobanks.txt" "w"]
foreach iobank [get_iobanks] { foreach iobank [get_iobanks] {
foreach site [get_sites -of $iobank] { foreach site [get_sites -of $iobank] {
puts $fp "$site,$iobank" # we only care about the high performance banks here
# and those are numbered 32, 33, 34...
if {[string match "3*" $iobank]} {
puts $fp "$site,$iobank"
}
} }
} }
close $fp close $fp