亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pci_wb_master.v

?? 用verilog編寫的pci——rtl級。
?? V
?? 第 1 頁 / 共 4 頁
字號:
//////////////////////////////////////////////////////////////////////
////                                                              ////
////  File name: wb_master.v                                      ////
////                                                              ////
////  This file is part of the "PCI bridge" project               ////
////  http://www.opencores.org/cores/pci/                         ////
////                                                              ////
////  Author(s):                                                  ////
////      - Tadej Markovic, tadej@opencores.org                   ////
////                                                              ////
////  All additional information is avaliable in the README.txt   ////
////  file.                                                       ////
////                                                              ////
////                                                              ////
//////////////////////////////////////////////////////////////////////
////                                                              ////
//// Copyright (C) 2000 Tadej Markovic, tadej@opencores.org       ////
////                                                              ////
//// This source file may be used and distributed without         ////
//// restriction provided that this copyright statement is not    ////
//// removed from the file and that any derivative work contains  ////
//// the original copyright notice and the associated disclaimer. ////
////                                                              ////
//// This source file is free software; you can redistribute it   ////
//// and/or modify it under the terms of the GNU Lesser General   ////
//// Public License as published by the Free Software Foundation; ////
//// either version 2.1 of the License, or (at your option) any   ////
//// later version.                                               ////
////                                                              ////
//// This source is distributed in the hope that it will be       ////
//// useful, but WITHOUT ANY WARRANTY; without even the implied   ////
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ////
//// PURPOSE.  See the GNU Lesser General Public License for more ////
//// details.                                                     ////
////                                                              ////
//// You should have received a copy of the GNU Lesser General    ////
//// Public License along with this source; if not, download it   ////
//// from http://www.opencores.org/lgpl.shtml                     ////
////                                                              ////
//////////////////////////////////////////////////////////////////////
//
// CVS Revision History
//
// $Log: pci_wb_master.v,v $
// Revision 1.6  2004/01/24 11:54:18  mihad
// Update! SPOCI Implemented!
//
// Revision 1.5  2003/10/24 09:35:40  tadejm
// Added missing signals to 2 sensitivity lists. Everything works the same as before.
//
// Revision 1.4  2003/08/21 20:56:40  tadejm
// WB Master is now WISHBONE B3 compatible.
//
// Revision 1.3  2003/03/14 15:31:57  mihad
// Entered the option to disable no response counter in wb master.
//
// Revision 1.2  2003/01/30 22:01:09  mihad
// Updated synchronization in top level fifo modules.
//
// Revision 1.1  2003/01/27 16:49:31  mihad
// Changed module and file names. Updated scripts accordingly. FIFO synchronizations changed.
//
// Revision 1.7  2002/12/05 12:19:23  mihad
// *** empty log message ***
//
// Revision 1.6  2002/10/11 14:15:29  mihad
// Cleaned up non-blocking assignments in combinatinal logic statements
//
// Revision 1.5  2002/03/05 11:53:47  mihad
// Added some testcases, removed un-needed fifo signals
//
// Revision 1.4  2002/02/19 16:32:37  mihad
// Modified testbench and fixed some bugs
//
// Revision 1.3  2002/02/01 15:25:13  mihad
// Repaired a few bugs, updated specification, added test bench files and design document
//
// Revision 1.2  2001/10/05 08:14:30  mihad
// Updated all files with inclusion of timescale file for simulation purposes.
//
// Revision 1.1.1.1  2001/10/02 15:33:47  mihad
// New project directory structure
//
//

`define WB_FSM_BITS 3 // number of bits needed for FSM states


`include "bus_commands.v"
`include "pci_constants.v"
//synopsys translate_off
`include "timescale.v"
//synopsys translate_on

module pci_wb_master 
                 (  wb_clock_in,        // CLK_I
                    reset_in,           // RST_I
                    
                    pci_tar_read_request,
                    pci_tar_address,
                    pci_tar_cmd,
                    pci_tar_be,
                    pci_tar_burst_ok,
                    pci_cache_line_size,
                    cache_lsize_not_zero,
                    wb_read_done_out,
                    w_attempt,

                    pcir_fifo_wenable_out, 
                    pcir_fifo_data_out,    
                    pcir_fifo_be_out, 
                    pcir_fifo_control_out,  
                    //pcir_fifo_renable_out,            for PCI Target !!!
                    //pcir_fifo_data_in,                for PCI Target !!!
                    //pcir_fifo_be_in,                  for PCI Target !!!
                    //pcir_fifo_control_in,             for PCI Target !!!
                    //pcir_fifo_flush_out,              for PCI Target !!!
                    //pcir_fifo_almost_empty_in,        for PCI Target !!!
                    //pcir_fifo_empty_in,               NOT used
                    //pcir_fifo_transaction_ready_in,   NOT used
                    //pciw_fifo_wenable_out,            for PCI Target !!!
                    //pciw_fifo_addr_data_out,          for PCI Target !!!   
                    //pciw_fifo_cbe_out,                for PCI Target !!!
                    //pciw_fifo_control_out,            for PCI Target !!!       
                    pciw_fifo_renable_out, 
                    pciw_fifo_addr_data_in,                              
                    pciw_fifo_cbe_in, 
                    pciw_fifo_control_in,                                   
                    //pciw_fifo_flush_out,              NOT used
                    //pciw_fifo_almost_full_in,         for PCI Target !!!
                    //pciw_fifo_full_in,                for PCI Target !!!
                    pciw_fifo_almost_empty_in, 
                    pciw_fifo_empty_in, 
                    pciw_fifo_transaction_ready_in,

                    pci_error_sig_out,
                    pci_error_bc,
                    write_rty_cnt_exp_out,
                    error_source_out,
                    read_rty_cnt_exp_out,

                    wb_cyc_o,
                    wb_stb_o,
                    wb_we_o,
                    wb_cti_o,
                    wb_bte_o,
                    wb_sel_o,
                    wb_adr_o,
                    wb_dat_i,
                    wb_dat_o,
                    wb_ack_i,
                    wb_rty_i,
                    wb_err_i
//                    CYC_O,
//                    STB_O,
//                    WE_O,
//                    SEL_O,
//                    ADR_O,
//                    MDATA_I,
//                    MDATA_O,
//                    ACK_I,
//                    RTY_I,
//                    ERR_I,
                );

/*----------------------------------------------------------------------------------------------------------------------
Various parameters needed for state machine and other stuff
----------------------------------------------------------------------------------------------------------------------*/
parameter       S_IDLE          = `WB_FSM_BITS'h0 ; 
parameter       S_WRITE         = `WB_FSM_BITS'h1 ;
parameter       S_WRITE_ERR_RTY = `WB_FSM_BITS'h2 ;
parameter       S_READ          = `WB_FSM_BITS'h3 ;
parameter       S_READ_RTY      = `WB_FSM_BITS'h4 ;
parameter       S_TURN_ARROUND  = `WB_FSM_BITS'h5 ;

/*----------------------------------------------------------------------------------------------------------------------
System signals inputs
wb_clock_in - WISHBONE bus clock input
reset_in    - system reset input controlled by bridge's reset logic
----------------------------------------------------------------------------------------------------------------------*/
input           wb_clock_in ; 
input           reset_in ;

/*----------------------------------------------------------------------------------------------------------------------
Control signals from PCI Target for READS to PCIR_FIFO
---------------------------------------------------------------------------------------------------------------------*/
input           pci_tar_read_request ;      // read request from PCI Target
input   [31:0]  pci_tar_address ;           // address for requested read from PCI Target                   
input   [3:0]   pci_tar_cmd ;               // command for requested read from PCI Target                   
input   [3:0]   pci_tar_be ;                // byte enables for requested read from PCI Target              
input           pci_tar_burst_ok ;
input   [7:0]   pci_cache_line_size ;       // CACHE line size register value for burst length   
input           cache_lsize_not_zero ;           
output          wb_read_done_out ;              // read done and PCIR_FIFO has data ready
output          w_attempt ;

reg             wb_read_done_out ;
reg             wb_read_done ;

/*----------------------------------------------------------------------------------------------------------------------
PCIR_FIFO control signals used for sinking data into PCIR_FIFO and status monitoring         
---------------------------------------------------------------------------------------------------------------------*/
output          pcir_fifo_wenable_out ;     // PCIR_FIFO write enable output
output  [31:0]  pcir_fifo_data_out ;        // data output to PCIR_FIFO
output  [3:0]   pcir_fifo_be_out ;          // byte enable output to PCIR_FIFO
output  [3:0]   pcir_fifo_control_out ;     // control bus output to PCIR_FIFO

reg     [31:0]  pcir_fifo_data_out ;
reg             pcir_fifo_wenable_out ;
reg             pcir_fifo_wenable ;
reg     [3:0]   pcir_fifo_control_out ;
reg     [3:0]   pcir_fifo_control ;

/*----------------------------------------------------------------------------------------------------------------------
PCIW_FIFO control signals used for fetching data from PCIW_FIFO and status monitoring
---------------------------------------------------------------------------------------------------------------------*/
output          pciw_fifo_renable_out ;     // read enable for PCIW_FIFO output
input   [31:0]  pciw_fifo_addr_data_in ;    // address and data input from PCIW_FIFO
input   [3:0]   pciw_fifo_cbe_in ;          // command and byte_enables from PCIW_FIFO
input   [3:0]   pciw_fifo_control_in ;      // control bus input from PCIW_FIFO
input           pciw_fifo_almost_empty_in ; // almost empty status indicator from PCIW_FIFO
input           pciw_fifo_empty_in ;        // empty status indicator from PCIW_FIFO
input           pciw_fifo_transaction_ready_in ;    // write transaction is ready in PCIW_FIFO

reg             pciw_fifo_renable_out ;
reg             pciw_fifo_renable ;

/*----------------------------------------------------------------------------------------------------------------------
Control INPUT / OUTPUT signals for configuration space reporting registers !!!
---------------------------------------------------------------------------------------------------------------------*/
output          pci_error_sig_out ;         // When error occures (on WB bus, retry counter, etc.)
output  [3:0]   pci_error_bc ;              // bus command at which error occured !
output          write_rty_cnt_exp_out ;     // Signaling that RETRY counter has expired during write transaction!
output          read_rty_cnt_exp_out ;      // Signaling that RETRY counter has expired during read transaction!
                                            //  if error_source is '0' other side didn't respond
                                            //  if error_source is '1' other side RETRIED for max retry counter value
output          error_source_out ;          // Signaling error source - '0' other WB side signaled error OR didn't respond
                                            //   if '1' wridge counted max value in retry counter because of RTY responds
reg             pci_error_sig_out ;
reg             write_rty_cnt_exp_out ;
reg             read_rty_cnt_exp_out ;
reg             error_source_out ;

/*----------------------------------------------------------------------------------------------------------------------
WISHBONE bus interface signals - can be connected directly to WISHBONE bus
---------------------------------------------------------------------------------------------------------------------*/
output          wb_cyc_o;         // cycle indicator output
output          wb_stb_o;         // strobe output - data is valid when strobe and cycle indicator are high
output          wb_we_o;          // write enable output - 1 - write operation, 0 - read operation
output  [2:0]   wb_cti_o;         // WB B3 - cycle type identifier
output  [1:0]   wb_bte_o;         // WB B3 - burst type 
output  [3:0]   wb_sel_o;         // Byte select outputs
output  [31:0]  wb_adr_o;         // WISHBONE address output
input   [31:0]  wb_dat_i;         // WISHBONE interface input data bus
output  [31:0]  wb_dat_o;         // WISHBONE interface output data bus
input           wb_ack_i;         // Acknowledge input - qualifies valid data on data output bus or received data on data input bus
input           wb_rty_i;         // retry input - signals from WISHBONE slave that cycle should be terminated and retried later
input           wb_err_i;         // Signals from WISHBONE slave that access resulted in an error

reg             wb_cyc_o;
reg             wb_stb_o;
reg             wb_we_o;
reg     [2:0]   wb_cti_o;
reg     [1:0]   wb_bte_o;
reg     [3:0]   wb_sel_o;
reg     [31:0]  wb_dat_o;



/*###########################################################################################################
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
    LOGIC, COUNTERS, STATE MACHINE and some control register bits
    =============================================================
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
###########################################################################################################*/

reg             last_data_transferred ; // signal is set by STATE MACHINE after each complete transfere !

// wire for write attempt - 1 when PCI Target attempt to write and PCIW_FIFO has a write transaction ready
reg     w_attempt;
always@(posedge wb_clock_in or posedge reset_in)
begin
    if (reset_in)
        w_attempt <= #`FF_DELAY 1'b0;
    else
    begin
        if (pciw_fifo_transaction_ready_in && ~pciw_fifo_empty_in)
            w_attempt <= #`FF_DELAY 1'b1;
        else
            if (last_data_transferred)
                w_attempt <= #`FF_DELAY 1'b0;
    end
end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人综合网站| 99精品欧美一区二区蜜桃免费| 日本午夜一区二区| 懂色av一区二区在线播放| 欧美日韩视频在线一区二区| 久久久99精品久久| 美女一区二区视频| 欧美日韩精品久久久| 一区视频在线播放| 国产一区福利在线| 欧美一级xxx| 亚洲一区在线视频| 99久久亚洲一区二区三区青草| 精品久久国产97色综合| 亚洲国产精品影院| 色播五月激情综合网| 国产精品久久久久影院| 国产成人在线免费观看| 精品国产一区二区三区四区四 | 色999日韩国产欧美一区二区| 欧美精品亚洲一区二区在线播放| 中文字幕一区二区三区不卡在线| 国产激情一区二区三区| 精品三级在线看| 久久精品国产一区二区三 | 一区二区三国产精华液| av电影一区二区| 国产女主播视频一区二区| 国产一区二区免费视频| 欧美tickling挠脚心丨vk| 美女视频黄久久| 日韩一区二区三区电影在线观看| 水蜜桃久久夜色精品一区的特点| 欧美色图第一页| 天天综合色天天综合色h| 欧美日韩在线播放三区| 亚洲国产成人tv| 欧美另类久久久品| 日韩av一二三| 久久中文字幕电影| 国产99久久久精品| 亚洲图片激情小说| 欧美日韩中文国产| 亚洲.国产.中文慕字在线| 欧美猛男gaygay网站| 肉丝袜脚交视频一区二区| 91精品国产福利在线观看| 久久国产精品99久久久久久老狼 | 日韩—二三区免费观看av| 91精品国产色综合久久| 狠狠久久亚洲欧美| 欧美韩日一区二区三区四区| 91网站最新地址| 性欧美疯狂xxxxbbbb| 日韩欧美国产成人一区二区| 国产成人精品影视| 亚洲靠逼com| 日韩视频一区在线观看| 国产精品中文字幕一区二区三区| 国产精品国产精品国产专区不蜜| 色婷婷精品久久二区二区蜜臀av| 爽爽淫人综合网网站| 久久精品免费在线观看| 91极品美女在线| 老司机精品视频一区二区三区| 久久久欧美精品sm网站| 色香蕉成人二区免费| 裸体歌舞表演一区二区| 国产精品久久久久一区二区三区 | 国产在线视视频有精品| 国产精品视频免费看| 欧美精品乱码久久久久久按摩| 国产中文一区二区三区| 一区二区三区欧美视频| 欧美精品一区二区三区蜜桃视频| 99久久国产综合精品麻豆| 奇米777欧美一区二区| 最新国产の精品合集bt伙计| 日韩视频123| 一本久久a久久精品亚洲| 国产在线国偷精品产拍免费yy| 亚洲精品videosex极品| www国产亚洲精品久久麻豆| 国产日韩在线不卡| 91精选在线观看| 色综合天天综合网天天看片| 国产酒店精品激情| 日韩激情在线观看| 亚洲免费电影在线| 国产色产综合产在线视频| 欧美一区二区三区思思人| 色八戒一区二区三区| 成人精品小蝌蚪| 国产一区二区三区四区五区入口| 亚洲成人av资源| 亚洲美女屁股眼交| 国产精品久久久久久久午夜片| 日韩免费观看高清完整版| 欧美性受xxxx黑人xyx| aaa欧美日韩| 成人伦理片在线| 国产成人丝袜美腿| 国产精品一区二区视频| 精品制服美女丁香| 青娱乐精品视频在线| 偷拍亚洲欧洲综合| 亚洲一级二级在线| 亚洲综合图片区| 夜夜嗨av一区二区三区四季av| 日韩理论在线观看| 亚洲色图丝袜美腿| 亚洲欧美日韩久久| 中文字幕一区二区三区不卡 | 亚洲激情一二三区| 中文字幕日韩av资源站| 成人免费在线视频| 亚洲三级小视频| 亚洲女性喷水在线观看一区| 成人免费在线视频| 中文字幕一区二区在线观看| 中文字幕一区二区三区四区不卡| 国产精品久久久久久妇女6080| 亚洲国产精品激情在线观看| 中文字幕av资源一区| 国产精品青草综合久久久久99| 国产精品妹子av| 亚洲素人一区二区| 亚洲在线中文字幕| 日本三级亚洲精品| 国产在线精品一区二区夜色| 国产寡妇亲子伦一区二区| 成人国产视频在线观看| 在线精品视频免费观看| 在线成人午夜影院| 亚洲精品一区二区三区香蕉| 中文字幕国产一区二区| 悠悠色在线精品| 蜜桃视频在线一区| 成人综合日日夜夜| 欧美视频在线不卡| 日韩欧美亚洲国产精品字幕久久久| 久久亚洲一级片| 亚洲女女做受ⅹxx高潮| 视频一区二区不卡| 国产成人鲁色资源国产91色综| 91在线观看视频| 制服丝袜中文字幕亚洲| 久久精品一区二区三区不卡| 亚洲黄色av一区| 看片的网站亚洲| 91免费观看视频在线| 91精品国产一区二区| 一色屋精品亚洲香蕉网站| 秋霞av亚洲一区二区三| 成人a级免费电影| 91精品国产乱码久久蜜臀| 国产精品视频一二三| 欧美aa在线视频| 91亚洲男人天堂| 精品国产sm最大网站免费看| 亚洲精品成人a在线观看| 国产精一区二区三区| 欧美欧美欧美欧美首页| 国产精品二区一区二区aⅴ污介绍| 三级欧美在线一区| 色综合天天做天天爱| 久久你懂得1024| 婷婷开心久久网| 91亚洲精品乱码久久久久久蜜桃| 精品国产一区二区三区忘忧草| 亚洲大片免费看| 99久久久久久99| 国产亚洲欧美日韩日本| 奇米一区二区三区av| 欧美日韩在线免费视频| 国产精品久久久久久久久久久免费看 | 国产夫妻精品视频| 欧美一区二区在线免费观看| 亚洲欧美综合色| 国产精品性做久久久久久| 欧美久久一区二区| 亚洲精品你懂的| av电影一区二区| 欧美—级在线免费片| 激情久久久久久久久久久久久久久久| 在线观看av不卡| 亚洲精品免费播放| 波多野结衣中文字幕一区| 久久久国产精品午夜一区ai换脸| 日本中文字幕一区| 欧美日韩午夜在线视频| 亚洲自拍偷拍九九九| 91国产成人在线| 一区二区在线免费| 一本一道久久a久久精品| 亚洲欧洲另类国产综合| 成人精品视频一区二区三区尤物| 久久久久国产精品免费免费搜索| 狠狠色丁香久久婷婷综合_中| 日韩欧美国产精品|