Skip to content

Commit

Permalink
030-iob18: fix Vref conflict warnigns by assigning the correct Vref
Browse files Browse the repository at this point in the history
Signed-off-by: Hans Baier <hansfbaier@gmail.com>
  • Loading branch information
hansfbaier committed Dec 14, 2022
1 parent 2ce7ea1 commit 7800bcb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
17 changes: 10 additions & 7 deletions fuzzers/030-iob18/top.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ def run():
"SSTL12": DIFF_SSTL12,
}

vref_map = {
"SSTL12": .600,
"SSTL135": .675,
"SSTL15": .75,
"DIFF_SSTL12": .600,
"DIFF_SSTL135": .675,
"DIFF_SSTL15": .75,
}

only_diff_map = {
"LVDS": ["LVDS"],
}
Expand Down Expand Up @@ -99,13 +108,7 @@ def run():
for iobank in iobanks:
iostandard = random.choice(iostandards)
if iostandard in SSTL:
params['INTERNAL_VREF'][iobank] = random.choice(
(
.600,
.675,
.75,
.90,
))
params['INTERNAL_VREF'][iobank] = vref_map[iostandard]

iostandard_map[iobank] = iostandard

Expand Down
6 changes: 5 additions & 1 deletion fuzzers/030-iob18/write_io_banks.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ open_io_design -name io_1
set fp [open "iobanks.txt" "w"]
foreach iobank [get_iobanks] {
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
Expand Down

0 comments on commit 7800bcb

Please sign in to comment.