pin2qsf.pl 264 B

123456789101112
  1. #!/usr/bin/perl
  2. while ( defined($line = <STDIN>) ) {
  3. chomp $line;
  4. $line =~ s/^\#.*$//; # Remove comments
  5. if ( $line =~ /^\s*(\S+)\s+(\S+)/ ) {
  6. $pin = $1;
  7. $signal = $2;
  8. print "set_location_assignment PIN_\U${pin}\E -to \"${signal}\"\n";
  9. }
  10. }