|
DFF(D触发器)的结构图. z# O4 g, [5 [6 E$ @
- o" \" N' \3 A' ^5 c( {6 x8 x: O
module DFF(9 S8 K: F. j$ u v- A" h% W
input clk, S' M4 d/ y+ h& }" i2 A' L) U1 a I
input rst_n ,0 Y5 [: {4 g3 ~3 M7 h- _8 W
input D,& I" x- W; n: f
output reg q6 O! H) p0 }5 l: @2 J, J
);
r& f+ C6 K) B) T# l( I1 r8 J" k
1 h% B7 I" \; Q2 `" w! l# S6 dalways @(posedge clk or negedge rst_n) begin
( g5 }) T* R) @+ h/ j) i if(!rst_n). U& X' U% U4 h5 s; L. Q
q <= 1'b0 ;0 G- Y1 j9 x# L! [! }" U
else
. `; H$ e4 W! |8 ]% C, h q <= D;
- S7 _3 h! {/ f& T, y/ y7 Lend " u6 P+ _4 W! j" Q( V2 G) \
endmodule |
|