1 Star 0 Fork 0

打野/Verilog练习代码

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
practce_11.23.v 543 Bytes
Copy Edit Raw Blame History
打野 authored 2023-11-23 21:11 +08:00 . 2023-11-23
//2023-11-23
//DFF
module c_seq(
d,
rstn,
clk,
q0,
q1,
q2
);
input wire d,rstn,clk;
output reg q0,q1,q2;
always @(posedge clk ) begin
q0 <= #1 d; //non-blocking assignment ֵ
end
always @(posedge clk) begin
if(!rstn)
q1 <= #1 1'b0;
else
q1 <= #1 d;
end
always @(posedge clk or negedge rstn) begin
if(!rstn)
q2 <= #1 1'b0;
else
q2 <= #1 d;
end
endmodule
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fight_wild/verilog-code.git
git@gitee.com:fight_wild/verilog-code.git
fight_wild
verilog-code
Verilog练习代码
master

Search