我在获得所需的输出时遇到问题。
这是我的代码:
module top_module(
input clk,
input reset, // Active-high synchronous reset to 5'h1
output reg [4:0] q
);
wire din3;
assign din3 = q[3] ^ q[0];
always @(posedge clk)
begin
if (reset)
q <= 5'd1;
else
q <= {q[0],din3,q[2],q[1],q[0]};
end
endmodule
这是我的输出与正确输出的时序图。
我也不断收到此错误:
警告 (13024):输出引脚卡在 VCC 或 GND

