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 主代码,用于从温度传感器(从设备)读取温度值。我正在 FPGA 进化板上测试我的代码。FPGA 是 Microsemi nano 非常基本的 FPGA。如何在不连接从设备的情况下测试我的主设备?
我建议编写一个测试台来模拟从设备的行为,并检查来自 I2C 主设备的正确操作序列并将其用于仿真。