mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
17 lines
312 B
Text
17 lines
312 B
Text
read_verilog <<EOF
|
|
module top(input [16:0] a, input [16:0] b, output reg [33:0] o, input clk, input [2:0] j);
|
|
reg [16:0] ar;
|
|
reg [16:0] br;
|
|
|
|
always @(posedge clk) begin
|
|
ar <= a;
|
|
br <= b;
|
|
o <= {ar * br, j};
|
|
end
|
|
endmodule
|
|
EOF
|
|
|
|
synth_quicklogic -family qlf_k6n10f -dspv2 -run :coarse
|
|
check
|
|
opt_clean
|
|
dump
|