mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-17 00:32:17 +00:00
driver: allow --no-version still write things like Generated by Yosys
This commit is contained in:
parent
d7affb8821
commit
90a2c92370
21 changed files with 36 additions and 40 deletions
|
@ -2065,7 +2065,7 @@ struct SimWorker : SimShared
|
|||
|
||||
json.begin_object();
|
||||
json.entry("version", "Yosys sim summary");
|
||||
json.entry("generator", yosys_version_str);
|
||||
json.entry("generator", yosys_maybe_version());
|
||||
json.entry("steps", step);
|
||||
json.entry("top", log_id(top->module->name));
|
||||
json.name("assertions");
|
||||
|
@ -2344,7 +2344,7 @@ struct VCDWriter : public OutputWriter
|
|||
void write(std::map<int, bool> &use_signal) override
|
||||
{
|
||||
if (!vcdfile.is_open()) return;
|
||||
vcdfile << stringf("$version %s $end\n", worker->date ? yosys_version_str : "Yosys");
|
||||
vcdfile << stringf("$version %s $end\n", worker->date ? yosys_maybe_version() : "Yosys");
|
||||
|
||||
if (worker->date) {
|
||||
std::time_t t = std::time(nullptr);
|
||||
|
@ -2412,7 +2412,7 @@ struct FSTWriter : public OutputWriter
|
|||
{
|
||||
if (!fstfile) return;
|
||||
std::time_t t = std::time(nullptr);
|
||||
fstWriterSetVersion(fstfile, worker->date ? yosys_version_str : "Yosys");
|
||||
fstWriterSetVersion(fstfile, worker->date ? yosys_maybe_version() : "Yosys");
|
||||
if (worker->date)
|
||||
fstWriterSetDate(fstfile, asctime(std::localtime(&t)));
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue