在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 4652|回复: 17

i2c 源代码,谨供参考

[复制链接]
发表于 2009-6-24 15:28:57 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
-- Vhdl Source Files:
  i2c.vhd   -- top level file
  i2c_control.vhd  -- control function for the I2C master/slave
  shift.vhd  -- shift register
  uc_interface.vhd -- uC interface function for an 8-bit 68000-like uC
  upcnt4.vhd  -- 4-bit up counter
  i2c_timesim.vhd  -- post-route I2C simulation netlist
     
--VHDL Testbench Files:
  micro_test.vhd  -- top-level VHDL testbench for functional simulation that
        instantiates micro_tb.vhd, pullup.vhd, and i2c.vhd.

  micro_tb.vhd  -- VHDL functional simulation testbench that tests two
        instantiations of the I2C design. It configures
        one as a master and one as a slave and then
        the two I2C designs transfer data over I2C.
  micro_test_post.vhd -- top-level VHDL testbench for post-route simulation that
        instantiates micro_master_tb.vhd, micro_slave_tb.vhd,
        pullup.vhd and the post-route VHDL model time_sim.vho
  micro_master_tb.vhd
  micro_slave_tb.vhd -- These two files test the post-fit VHDL files output from
        Project Navigator. Since in the post-fit VHDL the uC
        address is hard-coded,  both instantiations of the I2C
        design have the same uC address. Therefore separate
        testbenches are needed to talk to the two instantiations
        of the I2C design; one that configures one of the I2C
        designs as a Master, one that configures the other I2C
        design as a Slave.
  pullup.vhd  -- models a pull-up resistor
  upcnt4_tb.vhd  -- functional testbench for upcnt4
  upcnt4_tb_post.vhd -- post-route testbench for upcnt4
-- ModelSim DO files:
  micro_test.do  -- functional simulation script file that calls wave.do
  wave.do   -- configures wave window for functional simulation
  micro_test_post.do -- post-route simulation script file that calls wave_post.do
  wave_post.do  -- configures wave window for post-route simulation
-- Report Files
  i2c.rpt   -- Project Navigator fitter report file
  i2c.cxt   -- XPower input data file

-- XST Files
  i2c.npl   -- Project Navigator project file
  i2c.jed   -- JEDEC programming file with I2C fit to a XCR3256XL-7-TQ144

xapp333.zip

868.83 KB, 下载次数: 151 , 下载积分: 资产 -2 信元, 下载支出 2 信元

i2c 源代码

 楼主| 发表于 2009-6-25 14:37:52 | 显示全部楼层
自己顶一下
 楼主| 发表于 2009-6-25 14:49:20 | 显示全部楼层
这么经典的东西,千万不要沉底啊~~~~~~~~~
发表于 2009-8-11 14:07:15 | 显示全部楼层

太感謝了 謝謝你喔

太感謝了 謝謝你喔
发表于 2009-9-8 11:18:50 | 显示全部楼层
樓主很有錢,還自個頂一下
发表于 2009-9-22 15:22:58 | 显示全部楼层

很好很牛B~~~

很好很牛B~~~
发表于 2009-9-25 17:53:08 | 显示全部楼层
呵呵!学习了!多谢
发表于 2009-9-25 18:32:52 | 显示全部楼层
ddddddddddddddddddddddddddddddddddddddd
发表于 2009-9-25 21:25:34 | 显示全部楼层
好东西啊
发表于 2010-4-13 14:01:15 | 显示全部楼层
收藏源码了,谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /3 下一条

×

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-4-19 17:43 , Processed in 0.046139 second(s), 12 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表