Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在一个简单的时钟发生器示例中,我看到以下代码:
always #(cycle/2) clk ~= clk;
我以前总是看到@(*),但没有看到英镑 (#)。我试图在文档中找到它,但我能找到的只是一些对“实值端口”的引用,没有进一步说明。
这是一个延迟操作。它基本上只是读取
always begin #(cycle/2) //wait for cycle/2 time clk ~= clk; end
您有时可能会看到它与原始值一起使用,例如 #5 或 #10,这意味着等待时间刻度的 5 或 10 个单位。