diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-09-06 20:30:46 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-09-06 20:30:46 +0200 |
commit | 9329a768181d3765a08c3b264c8b0031b732c0d4 (patch) | |
tree | 092793d2517d97851d50307f8777aead6924173d /passes | |
parent | 98e6463ca78d8c0a342c9b86d9223dbeb45c093c (diff) | |
download | yosys-9329a768181d3765a08c3b264c8b0031b732c0d4.tar.gz yosys-9329a768181d3765a08c3b264c8b0031b732c0d4.tar.bz2 yosys-9329a768181d3765a08c3b264c8b0031b732c0d4.zip |
Various bug fixes (related to $macc model testing)
Diffstat (limited to 'passes')
-rw-r--r-- | passes/tests/test_cell.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/tests/test_cell.cc b/passes/tests/test_cell.cc index edab51eb2..c69bd123b 100644 --- a/passes/tests/test_cell.cc +++ b/passes/tests/test_cell.cc @@ -262,7 +262,7 @@ static void run_eval_test(RTLIL::Design *design, bool verbose, std::string uut_n gold_ce.set(gold_wire, in_value); gate_ce.set(gate_wire, in_value); - if (vlog_file.is_open()) { + if (vlog_file.is_open() && SIZE(in_value) > 0) { vlog_file << stringf(" %s = 'b%s;\n", log_id(gold_wire), in_value.as_string().c_str()); if (!vlog_pattern_info.empty()) vlog_pattern_info += " "; |