求解 谢谢
module fredevider3(clockin,clockout);input clockin;
output clockout;
reg temp1,temp2;
reg count;
always@(posedge clockin)
begin
if(count==2)
begin
count <= 0;
temp1 <= ~temp1;
end
else
count <= count +1;
end
always@(negedge clockin)
begin
if(count==1)
temp2 <= ~temp2;
end
assign clockout = temp1 ^ temp2;
endmodule
这个程序
用modelsim看 怎么temp1 temp2 和clockout 都没有波形呢
求问?
页:
[1]