Merge pull request #4627 from RCoeurjoly/roland/assume_x

This commit is contained in:
N. Engelhardt 2024-11-06 16:27:30 +01:00 committed by GitHub
commit 9068ec5566
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 26 additions and 2 deletions

View File

@ -258,7 +258,8 @@ void FstData::reconstructAllAtTimes(std::vector<fstHandle> &signal, uint64_t sta
std::string FstData::valueOf(fstHandle signal) std::string FstData::valueOf(fstHandle signal)
{ {
if (past_data.find(signal) == past_data.end()) if (past_data.find(signal) == past_data.end()) {
log_error("Signal id %d not found\n", (int)signal); return std::string(handle_to_var[signal].width, 'x');
}
return past_data[signal]; return past_data[signal];
} }

View File

@ -0,0 +1,2 @@
read_verilog simple_assign.v
sim -r simple_assign.vcd -scope simple_assign

View File

@ -0,0 +1,8 @@
module simple_assign (
input wire in,
output wire out
);
assign out = in;
endmodule

View File

@ -0,0 +1,13 @@
$version Yosys $end
$scope module simple_assign $end
$var wire 1 n2 in $end
$var wire 1 n1 out $end
$upscope $end
$enddefinitions $end
#0
#5
b1 n1
b1 n2
#10
b0 n1
b0 n2