"这个state变量声明的时候没有被赋值,为什么一上来就能用if判断它的值呢?"
Verilog-AMS integer預設值是0阿, Google 一下也可以找的到:
"Integers are initialized at the start of a simulation depending on how they are used. Integer variables whose values are assigned in an analog process default to an initial value of zero (0)."
|