📄 sync.v
字号:
//
// SYNC.v
//
// Jeung Joon Lee
// www.cmosexod.com
// 8/02/01
//
// This is a double-rank synchronizer
//
module sync (
clk_in,
sys_rst_l,
d,
q
);
input clk_in;
input sys_rst_l;
input d;
output q;
reg pipe1, pipe2;
always @(posedge clk_in or negedge sys_rst_l)
if (~sys_rst_l) begin
pipe1 <= 0;
pipe2 <= 0;
end else begin
pipe1 <= d;
pipe2 <= pipe1;
end
assign q = pipe2;
endmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -