mirror of https://github.com/YosysHQ/yosys.git
17 lines
224 B
Plaintext
17 lines
224 B
Plaintext
|
read_verilog <<EOT
|
||
|
module test (
|
||
|
input [1:0] a,
|
||
|
input [1:0] b,
|
||
|
output [5:0] y
|
||
|
);
|
||
|
|
||
|
wire [5:0] aa = {a, 4'h0};
|
||
|
wire [5:0] bb = {b, 4'h0};
|
||
|
|
||
|
assign y = aa * bb;
|
||
|
|
||
|
endmodule
|
||
|
EOT
|
||
|
|
||
|
equiv_opt -assert opt_expr
|