diff options
| author | Miodrag Milanovic <mmicko@gmail.com> | 2022-01-31 10:52:47 +0100 | 
|---|---|---|
| committer | Miodrag Milanovic <mmicko@gmail.com> | 2022-01-31 10:52:47 +0100 | 
| commit | 543feb75cb3765746ea865c11aa6ceccaf0adeac (patch) | |
| tree | 4080c23526e8ff4e36388744f32b64af11ab3649 /passes | |
| parent | a6959d30df067c27da75d12bc0bd5233eb91d3ca (diff) | |
| download | yosys-543feb75cb3765746ea865c11aa6ceccaf0adeac.tar.gz yosys-543feb75cb3765746ea865c11aa6ceccaf0adeac.tar.bz2 yosys-543feb75cb3765746ea865c11aa6ceccaf0adeac.zip  | |
Display simulation time data
Diffstat (limited to 'passes')
| -rw-r--r-- | passes/sat/sim.cc | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/passes/sat/sim.cc b/passes/sat/sim.cc index ff815b69a..05fe11201 100644 --- a/passes/sat/sim.cc +++ b/passes/sat/sim.cc @@ -1033,7 +1033,9 @@ struct SimWorker : SimShared  				log_error("No clock edges found in given time range\n");  			fst->reconstructAllAtTimes(edges);  			bool initial = false; +			int cycle = 0;  			for(auto &time : edges) { +				log("Simulating cycle %d [%zu %s].\n", cycle+1, time, fst->getTimescaleString());  				for(auto &item : inputs) {  					std::string v = fst->valueAt(item.second, time);  					top->set_state(item.first, Const::from_string(v)); @@ -1046,7 +1048,8 @@ struct SimWorker : SimShared  				bool status = top->checkSignals(time);  				if (status) -					log_error("Signal difference at %zu\n", time); +					log_error("Signal difference\n"); +				cycle++;  			}  		}  	}  | 
