diff options
Diffstat (limited to 'src/lib/netlist/prg/nltool.cpp')
-rw-r--r-- | src/lib/netlist/prg/nltool.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/netlist/prg/nltool.cpp b/src/lib/netlist/prg/nltool.cpp index 3850dd935e4..1d796201fd9 100644 --- a/src/lib/netlist/prg/nltool.cpp +++ b/src/lib/netlist/prg/nltool.cpp @@ -365,8 +365,17 @@ static void create_header(tool_options_t &opts) pout(" * ---------------------------------------------------------------------------*/\n"); pout("\n"); + pstring last_source(""); + for (auto &e : nt.setup().factory()) { + if (last_source != e->sourcefile()) + { + last_source = e->sourcefile(); + pout("{1}\n", pstring("// ").rpad("-", 72)); + pout("{1}\n", pstring("// Source: ").cat(e->sourcefile().replace("../",""))); + pout("{1}\n", pstring("// ").rpad("-", 72)); + } auto v = plib::pstring_vector_t(e->param_desc(), ","); pstring vs; for (auto s : v) |