For more information and updates: http://alexforencich.com/wiki/en/verilog/i2c/start
GitHub repository: https://github.com/alexforencich/verilog-i2c
I2C interface components. Includes full MyHDL testbench with intelligent bus cosimulation endpoints.
Template module for peripheral initialization via I2C. For use when one or more peripheral devices (i.e. PLL chips, jitter attenuators, clock muxes, etc.) need to be initialized on power-up without the use of a general-purpose processor.
I2C master module with AXI stream interfaces to control logic.
I2C master module with 8-bit Wishbone slave interface.
axis_fifo.v : AXI stream FIFO
i2c_init.v : Template I2C bus init state machine module
i2c_master.v : I2C master module
i2c_master_wbs_8.v : I2C master module (8-bit Wishbone slave)
Running the included testbenches requires MyHDL and Icarus Verilog. Make sure that myhdl.vpi is installed properly for cosimulation to work correctly. The testbenches can be run with a Python test runner like nose or py.test, or the individual test scripts can be run with python directly.
tb/axis_ep.py : MyHDL AXI Stream endpoints
tb/i2c.py : MyHDL I2C master and slave models
tb/wb.py : MyHDL Wishbone master model and RAM model
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。