|
Message
From: m.afgani at gmail.com<m.afgani@g...>
Date: Fri Apr 20 00:16:58 CEST 2007
Subject: [oc] I2C core VHDL testbench
Hello,I've finally succeeded in creating a simple WISHBONE master and testbench in VHDL that seems to work with the VHDL I2C core (ISE Sim 9.1.03i). One major issue appears to be the fact the core cannot deal with SCL/SDA lines that toggle between 'H' and '0' -- requiring the use of the /to_X01()/ function for /scl_i/ and /sda_i/ in the testbench. Also, I chose to use a VHDL model for a 24Cxx I2C EEPROM rather than the verilog slave model in CVS. An archive with the contributed files can be found here:
http://m.afgani.googlepages.com/wb_i2c_tb.zip
I started working on this project a few weeks ago with no prior knowledge of any HDL. Therefore, the code is certain to be lacking in many respects. I would really appreciate it if some of the more experienced users would have a look and provide some feedback.
Many thanks to Richard for the core.
Regards, Mostafa
|
 |