aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-05-14 13:06:58 +0100
committerDavid Shah <dave@ds0.me>2020-05-14 13:06:58 +0100
commit2cebd40f2e26207f1ac22471ac269ede2784c7d0 (patch)
tree996205b54f282673780ddc5768f75240267f7f65 /ecp5
parent2692c6f6cce41d22847058c85715e8822feb9b87 (diff)
downloadnextpnr-2cebd40f2e26207f1ac22471ac269ede2784c7d0.tar.gz
nextpnr-2cebd40f2e26207f1ac22471ac269ede2784c7d0.tar.bz2
nextpnr-2cebd40f2e26207f1ac22471ac269ede2784c7d0.zip
lpf: Support // comments
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'ecp5')
-rw-r--r--ecp5/lpf.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ecp5/lpf.cc b/ecp5/lpf.cc
index e626cc54..e740b737 100644
--- a/ecp5/lpf.cc
+++ b/ecp5/lpf.cc
@@ -48,6 +48,9 @@ bool Arch::applyLPF(std::string filename, std::istream &in)
size_t cstart = line.find('#');
if (cstart != std::string::npos)
line = line.substr(0, cstart);
+ cstart = line.find("//");
+ if (cstart != std::string::npos)
+ line = line.substr(0, cstart);
if (isempty(line))
continue;
linebuf += line;