Aquacolor

Aquacolor



mul ip

zcxsb · 2025-07-14 · 28浏览 · 未分类


module mul_ip(
	input wire mul_hres,
	input wire mul_signed,
	input wire [31:0] x,
	input wire [31:0] y,
	output wire [31:0] result
);
	wire [32:0] src1;
	wire [32:0] src2;

	assign src1 = {mul_signed & x[31],x};
	assign src2 = {mul_signed & y[31],y};

	wire [65:0] signed_result;

	assign signed_result = $signed(src1) * $signed(src2);

	assign result = mul_hres ? signed_result[63:32] : signed_result[31:0];
endmodule


©

comment 评论区

添加新评论

face表情



  • ©2026 bilibili.com

textsms
内容不能为空
昵称不能为空
email
邮件地址格式错误
web
beach_access
验证码不能为空
keyboard发表评论


star_outline 咱快来抢个沙发吧!




©2026 Aquacolor

Theme Romanticism2.2 by Akashi
Powered by Typecho