mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-22 08:35:32 +00:00
16 lines
224 B
Text
16 lines
224 B
Text
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
|