why the results I get with Yosys’s eval -set-undef -table L command differ from those produced by ABC’s write_pla #5124
-
module TOP (
endmodule // module shift_left_4u_2u (cin, a, amount, o);
endmodule 1.read_verilog xx.v
Assumed undef (x) value for the following signals: \S 1.read_verilog xx.v For example, when |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
yosys> sat -set-all-undef S -set D[3] 0 -show L
Setting up SAT problem: Solving problem with 235 variables and 626 clauses.. Signal Name Dec Hex Bin \L 1 1 1 The result obtained using the sat command is different from that of the eval command, but it matches the result from write_pla |
Beta Was this translation helpful? Give feedback.
x
in Verilog (and Yosys) doesn't mean "don't-care". It's unknown/undefined. Verilog uses 4-state logic, '1', '0', 'X', and 'Z', where 'X' can be any of the other values, not just 0 or 1.