⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tri_bus.v

📁 实现USB接口功能的VHDL和verilog完整源代码
💻 V
字号:
/********************************************************
 *    1. File name : tri_bus.v 
 *    2. Author    : Rha, haeyoung
 *    3. Key Feature & module : This module( tri_bus ) is
 *           for tri-state  bus between  usb and smart card.
 *
 *     4. created date : 99/7/29
 *     5. modification history
 ********************************************************/

module tri_bus (
                out_enableb, 
                // from smarti
                smart_wr_data,
                // from smart card
                io,
                // to smarti
                smart_rd_data
                // to smart card
              );

  input              out_enableb;
  input        [7:0] smart_wr_data;
  inout        [7:0] io;
  output       [7:0] smart_rd_data;
  //output       [7:0] wr_data;


  assign smart_rd_data = io ;
  //assign smart_rd_data = ( !out_enableb)? 'h0  :io;
  assign io   = ( !out_enableb)? smart_wr_data  : 'hz;

endmodule

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -