很负责的告诉你,两个语句意思完全相同,无任何区别。在Verilog中,这两条语句是可以互换的,基本没什么区别。
方波的实现算法较简单,可以在一个周期的中间位置翻转电平即可。以下为源程序: module squ_wave(cpi,rst_n,address,q_square); input cpi; input rst_n; input [16:0] address; output reg [11:0] q_square; always@(posedge cpi or negedge rst_n)...