⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 async.v

📁 多个Verilog和vhdl程序例子
💻 V
字号:
// Asynchronous state machines (small ones)
// Do not give these designs to a synthesis tool because the
// optimizer will remove the gates you put in for hazard suppression.
//
// Synplify-Lite correctly gives a "Found combinational loop"
// error message for these designs to remind you that you should
// not design asynchronous state machines with a synthesis tool
// unless you explicitly instantiate technology primitives from
// your target library. (They are not optimized out of the netlist).

module async1 (out, g, d);
output out;
input g, d;

assign out = g & d | !g & out | d & out;

endmodule


module async2 (out, g, d);
output out;
input g, d;
reg out;

always @(g or d or out)
begin
	out = g & d | !g & out | d & out;
end

endmodule



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -