已有 1692 次阅读| 2019-1-30 23:34 |系统分类:芯片设计
module ShiftR_N(num, i1, o1)
begin
input [3:0] num;
input [15:0] i1;
output [15:0] o1;
wire [31:0] tempo
assign tempo = { 16{i1[15]}, i1[15:0]} >> num;
assign o1 = tempo[15:0];
endmodule
评论
查看 »
小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网 ( 京ICP备:10050787号 京公网安备:11010502037710 )
GMT+8, 2024-4-27 10:35 , Processed in 0.028994 second(s), 14 queries , Gzip On, Redis On.