On Fri, Mar 25, 2016 at 3:18 PM, Tim 'mithro' Ansell <mit...@mithis.com> wrote: > def _build_xst_files(device, sources, vincpaths, build_name, xst_opt): > prj_contents = "" > - for filename, language, library in sources: > + for filename, language, library in sorted(sources): > prj_contents += language + " " + library + " " + filename + "\n" > tools.write_to_file(build_name + ".prj", prj_contents) > > @@ -57,7 +57,7 @@ def _build_xst_files(device, sources, vincpaths, > build_name, xst_opt): > -ofn {build_name}.ngc > -p {device} > """.format(build_name=build_name, xst_opt=xst_opt, device=device) > - for path in vincpaths: > + for path in sorted(vincpaths): > xst_contents += "-vlgincdir " + path + "\n" > tools.write_to_file(build_name + ".xst", xst_contents) > > @@ -65,9 +65,9 @@ def _build_xst_files(device, sources, vincpaths, > build_name, xst_opt): > def _run_yosys(device, sources, vincpaths, build_name): > ys_contents = "" > incflags = "" > - for path in vincpaths: > + for path in sorted(vincpaths): > incflags += " -I" + path > - for filename, language, library in sources: > + for filename, language, library in sorted(sources): > ys_contents += "read_{}{} {}\n".format(language, incflags, filename) > > ys_contents += """hierarchy -check -top top
Please modify the functions calling these to pass lists (and not sets if they indeed pass sets). Don't change the ordering that deep in the API. -- Robert Jordens. _______________________________________________ M-Labs devel mailing list https://ssl.serverraum.org/lists/listinfo/devel