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.
由于上拉,我将 i2c 信号连接为 tri1。我想将 i2c 信号视为高 z,但由于 tri1,断言失败。知道谁能够回答?
您可以将强度转换为字符串,并进行字符串比较
($sformatf("%v",SDA) == "Pul")
这在信号处于被动上拉状态时是正确的。