我正在学习和练习 Verilog HDL。我想设计一个 16 位并行串行输出移位寄存器。
module verilog_shift_register_test_PISO( din, clk, load, dout );
output reg dout ;
input [15:0] din ;
input clk ;
input load ;
reg [15:0]temp;
always @ (clk or load) begin
if (load)
temp <= din;
else begin
dout <= temp[0];
temp <= {1'b0, temp[15:1]};
end
end
endmodule
我写了这段代码并试图模拟它。
Simulation_result 我不明白为什么数据输出(dout)信号总是低的原因