aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2016-03-30 13:24:49 +0200
committerClifford Wolf <clifford@clifford.at>2016-03-30 13:24:49 +0200
commit48dbc75beddd6db92f09125b49761859be33693d (patch)
treed089c7ce319d0c44016bcf51c54a429f9bbbbe7e /kernel
parent2c15a3a9d0aad62f92c37bd76b763d6c2cf079b1 (diff)
downloadyosys-48dbc75beddd6db92f09125b49761859be33693d.tar.gz
yosys-48dbc75beddd6db92f09125b49761859be33693d.tar.bz2
yosys-48dbc75beddd6db92f09125b49761859be33693d.zip
Added .vhd file extension support
Diffstat (limited to 'kernel')
-rw-r--r--kernel/yosys.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/yosys.cc b/kernel/yosys.cc
index a69a85447..b9a26ee89 100644
--- a/kernel/yosys.cc
+++ b/kernel/yosys.cc
@@ -763,6 +763,8 @@ void run_frontend(std::string filename, std::string command, std::string *backen
command = "verilog";
else if (filename.size() > 2 && filename.substr(filename.size()-3) == ".sv")
command = "verilog -sv";
+ else if (filename.size() > 2 && filename.substr(filename.size()-4) == ".vhd")
+ command = "vhdl";
else if (filename.size() > 4 && filename.substr(filename.size()-5) == ".blif")
command = "blif";
else if (filename.size() > 3 && filename.substr(filename.size()-3) == ".il")