mirror of
https://github.com/verilator/verilator.git
synced 2025-01-04 05:37:48 +00:00
19 lines
642 B
Perl
Executable File
19 lines
642 B
Perl
Executable File
#!/usr/bin/env perl
|
|
# DESCRIPTION: Print include statements for each ARGV
|
|
#
|
|
# Copyright 2003-2020 by Wilson Snyder. This package is free software; you can
|
|
# redistribute it and/or modify it under the terms of either the GNU Lesser
|
|
# General Public License Version 3 or the Perl Artistic License Version 2.0.
|
|
######################################################################
|
|
|
|
require 5.005;
|
|
use warnings;
|
|
print "// DESCR"."IPTION: Generated by verilator_includer via makefile\n";
|
|
foreach my $param (@ARGV) {
|
|
if ($param =~ /^-D([^=]+)=(.*)/) {
|
|
print "#define $1 $2\n"
|
|
} else {
|
|
print "#include \"$param\"\n"
|
|
}
|
|
}
|