mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #4627 from RCoeurjoly/roland/assume_x
This commit is contained in:
commit
9068ec5566
|
@ -258,7 +258,8 @@ void FstData::reconstructAllAtTimes(std::vector<fstHandle> &signal, uint64_t sta
|
|||
|
||||
std::string FstData::valueOf(fstHandle signal)
|
||||
{
|
||||
if (past_data.find(signal) == past_data.end())
|
||||
log_error("Signal id %d not found\n", (int)signal);
|
||||
if (past_data.find(signal) == past_data.end()) {
|
||||
return std::string(handle_to_var[signal].width, 'x');
|
||||
}
|
||||
return past_data[signal];
|
||||
}
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
read_verilog simple_assign.v
|
||||
sim -r simple_assign.vcd -scope simple_assign
|
|
@ -0,0 +1,8 @@
|
|||
module simple_assign (
|
||||
input wire in,
|
||||
output wire out
|
||||
);
|
||||
|
||||
assign out = in;
|
||||
|
||||
endmodule
|
|
@ -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
|
Loading…
Reference in New Issue