mibuild/lattice/diamond: add verilog include path (thanks Lattice's FAE since it's not documented)

This commit is contained in:
Florent Kermarrec 2015-03-18 18:54:22 +01:00
parent 5a9afee234
commit 3aee58f484

View file

@ -40,6 +40,8 @@ def _build_lpf(named_sc, named_pc):
def _build_files(device, sources, vincpaths, build_name): def _build_files(device, sources, vincpaths, build_name):
tcl = [] tcl = []
tcl.append("prj_project new -name \"%s\" -impl \"implementation\" -dev %s -synthesis \"synplify\"" %(build_name, device)) tcl.append("prj_project new -name \"%s\" -impl \"implementation\" -dev %s -synthesis \"synplify\"" %(build_name, device))
for path in vincpaths:
tcl.append("prj_impl option {include path} {\"" + path.replace("\\", "/") + "\"}")
for filename, language in sources: for filename, language in sources:
tcl.append("prj_src add \"" + filename.replace("\\", "/") + "\"") tcl.append("prj_src add \"" + filename.replace("\\", "/") + "\"")
tcl.append("prj_run Synthesis -impl implementation -forceOne") tcl.append("prj_run Synthesis -impl implementation -forceOne")