首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

如何使用自定义逻辑?看IIC的例子吧[转帖]

如何使用自定义逻辑?看IIC的例子吧[转帖]

you can easily connect the I2C Wishbone core to the NIOS processor

1. Within SOPC builder, generate interface to user logic.
2. Select bus interface type: avalon register slave.
3. Add "i2c_master_top.v" design file.
4. Read port list from file.
5. Connect the signals as follow:
wb_adr_i <=> address
wb_dat_i <=> writedata
wb_dat_o <=> readdata
wb_we_i <=> write
wb_stb_i <=> chipselect
wb_cyc_i <=> chipselect
wb_inta_o <=> irq
wb_clk_i <=> clk
wb_ack_o <=> waitrequest_n
wb_rst_i <=> always0
arst_i <=> reset_n
scl_pad_i <=> export
scl_pad_o <=> export
scl_padoen_o <=> export
sda_pad_i <=> export
sda_pad_o <=> export
sda_padoen_o <=> export
6. Under timing tab, leave the setup, wait and hold settings at 0 cycles.


You can now access the I2C core via included "oc_i2c_master.h".
点击下载

返回列表