mirror of
https://github.com/verilator/verilator.git
synced 2026-08-30 09:48:22 +02:00
Support rand_mode (#5273)
Signed-off-by: Krzysztof Bieganski <[email protected]>
This commit is contained in:
@@ -403,8 +403,12 @@ bool VlRandomizer::parseSolution(std::iostream& f) {
|
||||
|
||||
auto it = m_vars.find(name);
|
||||
if (it == m_vars.end()) continue;
|
||||
const VlRandomVar& varr = *it->second;
|
||||
if (m_randmode && !varr.randModeIdxNone()) {
|
||||
if (!(m_randmode->at(varr.randModeIdx()))) continue;
|
||||
}
|
||||
|
||||
it->second->set(std::move(value));
|
||||
varr.set(std::move(value));
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user