forked from f4pga/prjxray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request f4pga#1616 from antmicro/rework-pcie-conf-fuzzer
Rework pcie-conf fuzzer
- Loading branch information
Showing
5 changed files
with
181 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Copyright (C) 2017-2021 The Project X-Ray Authors | ||
# | ||
# Use of this source code is governed by a ISC-style | ||
# license that can be found in the LICENSE file or at | ||
# https://opensource.org/licenses/ISC | ||
# | ||
# SPDX-License-Identifier: ISC | ||
|
||
proc dump_pins {file_name site_prefix} { | ||
set fp [open $file_name w] | ||
|
||
puts $fp "name,is_input,is_output" | ||
set site [lindex [get_sites $site_prefix*] 0] | ||
|
||
set pins [get_site_pins -of_objects $site] | ||
foreach pin $pins { | ||
set connected_pip [get_pips -of_objects [get_nodes -of_objects $pin]] | ||
|
||
if { $connected_pip == "" } { | ||
continue | ||
} | ||
|
||
set pin_name [lindex [split $pin "/"] 1] | ||
set is_input [get_property IS_INPUT $pin] | ||
set is_output [get_property IS_OUTPUT $pin] | ||
|
||
puts $fp "$pin_name,$is_input,$is_output" | ||
} | ||
close $fp | ||
} | ||
|
||
create_project -force -name design -part $::env(XRAY_PART) | ||
set_property design_mode PinPlanning [current_fileset] | ||
open_io_design -name io_1 | ||
|
||
dump_pins $::env(FILE_NAME) PCIE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters