8位移位寄存器 verilog hdl

2025-04-24 18:26:44
推荐回答(1个)
回答1:

module yiweijicun(in,out,clk,rst); input [7:0] in; input clk,rst; output [7:0] out; reg [7:0] out; reg [7:0] temp; always @(posedge clk) begin if (!rst) out=0; else begin if(load) temp=in; else begin out=(out