中细软做的网站,网站代理维护,怎样做网站分流赚钱,中国版动漫网站模板Johnson Counter
题目描述 请用Verilog实现4位约翰逊计数器#xff08;扭环形计数器#xff09;#xff0c;计数器的循环状态如下。
电路的接口如下图所示。
timescale 1ns/1nsmodule JC_counter(input clk ,input rst_n,output reg [3:0…Johnson Counter
题目描述 请用Verilog实现4位约翰逊计数器扭环形计数器计数器的循环状态如下。
电路的接口如下图所示。
timescale 1ns/1nsmodule JC_counter(input clk ,input rst_n,output reg [3:0] Q
);always (posedge clk or negedge rst_n)beginif(!rst_n)Q d0;else Q {~Q[0], Q[3:1]};
end endmodule