定义输入为a,b;输出为c;则代码为:
module buried_ff(a,b,c);
input a,b;
output c;
always @(a or b)
begin
if((b==1)&&(a==1))
c = a&b;
end
endmodule
定义输入为a,b;输出为c;则代码为:
module buried_ff(a,b,c);
input a,b;
output c;
always @(a or b)
begin
if((b==1)&&(a==1))
c = a&b;
end
endmodule