文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > 计算机硬件及网络 > i2c_verilog范例
侵权投诉

i2c_verilog范例

i2c_verilog范例

////

ChangedPRERresetvaluefrom0x0000to0xffff,conformspecs.

//synopsystranslate_off`include"timescale.v"//synopsystranslate_on

`include"i2c_master_defines.v"

modulei2c_master_top(

wb_clk_i,wb_rst_i,arst_i,wb_adr_i,wb_dat_i,wb_dat_o,wb_we_i,wb_stb_i,wb_cyc_i,wb_ack_o,wb_inta_o,

scl_pad_i,scl_pad_o,scl_padoen_o,sda_pad_i,sda_pad_o,sda_padoen_o);

//parameters

parameterARST_LVL=1'b1;//asynchronousresetlevel//

//inputs&outputs//

//wishbonesignalsinputwb_clk_i;inputwb_rst_i;inputarst_i;input[2:0]wb_adr_i;input[7:0]wb_dat_i;output[7:0]wb_dat_o;inputwb_we_i;inputwb_stb_i;inputwb_cyc_i;outputwb_ack_o;outputwb_inta_o;reg[7:0]wb_dat_o;regwb_ack_o;regwb_inta_o;//I2C//i2cinputoutputoutput//i2cinputoutputoutput

signalsclocklinescl_pad_i;scl_pad_o;scl_padoen_o;datalinesda_pad_i;sda_pad_o;sda_padoen_o;

//////////////////////

masterclockinput

synchronousactivehighresetasynchronousresetloweraddressbitsdatabusinputdatabusoutput

writeenableinput

stobe/coreselectsignalvalidbuscycleinput

buscycleacknowledgeoutputinterruptrequestsignaloutput

//SCL-lineinput

//SCL-lineoutput(always1'b0)

//SCL-lineoutputenable(activelow)//SDA-lineinput

//SDA-lineoutput(always1'b0)

//SDA-lineoutputenable(activelow)

//

//variabledeclarations//

//registers

reg[15:0]prer;reg[7:0]ctr;reg[7:0]txr;wire[7:0]rxr;reg[7:0]cr;wire[7:0]sr;

////////////

clockprescaleregistercontrolregistertransmitregisterreceiveregistercommandregisterstatusregister

Page:2

上一页第2页

热门文档

相关文档

  • Verilog教程范例2004

    i2c_verilog范例 17页 1下载券Verilog教...Verilog 设计举例结构模块的层次化组成 各种类型模块之间的关系 测试和验证 设计...

  • I2C verilog (非常详细的i2c学习心得)

    I2C verilog (非常详细的i2c学习心得)_电子/电路_工程科技_专业资料。如果你正在为学习fpga,我想这个可以帮助你I2C 学习心得? ? ? 我最近刚做完 I2C 通信协议...

  • I2C_Verilog

    I2C_Verilog_工学_高等教育_教育专区。69 70 71 72 73 74 75 76 // ..."i2c_master_defines.v" module i2c_master_byte_ctrl ( clk, rst, nReset,...

  • EDA_FPGA_VHDL_i2c读写

    FPGA读写i2c verilog 9页 2财富值 i2c总线协议(中文版pdf) 38页 免费 i2c_verilog范例 17页 2财富值 Verilog程序8、I2C通信协议... 13页 5财富值 I2C ...

  • I2C读写模块 verilog 代码

    I2C读写模块 verilog 代码_信息与通信_工程科技_专业资料。这纯碎是个人原创.... i2c_verilog范例 17页 1下载券 I2C+verilog HDL 11页 1下载券 用Verilog ...

  • Verilog HDL实例

    例子: 本文档含有很多 Verilog HDL 例子: //与门 与门 module zxhand2(c,a,...下面给出的范例也是一个可综合风格的分频器,是将 10M 的时钟分频为 500K 的...

  • Verilog HDL设计实例

    Verilog HDL设计实例_信息与通信_工程科技_专业资料。Verilog 设计实例...下面给出的范例也是一个可综合风格的分频器, 是将 10M 的时钟分频为 500K ...

  • FPGA读写i2c_verilog

    FPGA读写i2c_verilog_计算机软件及应用_IT/计算机_专业资料。Verilog语音写的IIC,感觉还是挺不错的,还有注释`timescale 1ns / 1ps /// // Company: // Engine...

  • I2C+verilog HDL

    module iic_top( clk,rst_n, sw1,sw2, scl,sda, sm_cs1_n,sm_cs2_n,sm_db ); input clk; // 50MHz input rst_n; //复位信号,低有效 input ...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email