?? 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
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -