3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-12 20:18:20 +00:00

Last sample from input does not represent change

This commit is contained in:
Miodrag Milanovic 2022-04-22 13:46:11 +02:00
parent 83cad82b29
commit 33f4009bb5

View file

@ -1805,8 +1805,9 @@ struct AIWWriter : public OutputWriter
std::map<int, Yosys::RTLIL::Const> current; std::map<int, Yosys::RTLIL::Const> current;
bool first = true; bool first = true;
for(auto& d : worker->output_data) for (auto iter = worker->output_data.begin(); iter != std::prev(worker->output_data.end()); ++iter)
{ {
auto& d = *iter;
for (auto &data : d.second) for (auto &data : d.second)
{ {
current[data.first] = data.second; current[data.first] = data.second;