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

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

?? pci_wb_decoder.v

?? 用verilog編寫的pci——rtl級。
?? V
字號:
//////////////////////////////////////////////////////////////////////
////                                                              ////
////  File name: decoder.v                                        ////
////                                                              ////
////  This file is part of the "PCI bridge" project               ////
////  http://www.opencores.org/cores/pci/                         ////
////                                                              ////
////  Author(s):                                                  ////
////      - Tadej Markovic, tadej@opencores.org                   ////
////      - Tilen Novak, tilen@opencores.org                      ////
////                                                              ////
////  All additional information is avaliable in the README.txt   ////
////  file.                                                       ////
////                                                              ////
////                                                              ////
//////////////////////////////////////////////////////////////////////
////                                                              ////
//// Copyright (C) 2000 Tadej Markovic, tadej@opencores.org       ////
////                    Tilen Novak, tilen@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_decoder.v,v $
// Revision 1.1  2003/01/27 16:49:31  mihad
// Changed module and file names. Updated scripts accordingly. FIFO synchronizations changed.
//
// Revision 1.3  2002/02/01 15:25:12  mihad
// Repaired a few bugs, updated specification, added test bench files and design document
//
// Revision 1.2  2001/10/05 08:14:28  mihad
// Updated all files with inclusion of timescale file for simulation purposes.
//
// Revision 1.1.1.1  2001/10/02 15:33:46  mihad
// New project directory structure
//
//

`include "pci_constants.v"

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

module pci_wb_decoder (hit, addr_out, addr_in, base_addr, mask_addr, tran_addr, at_en) ;

// Decoding address size parameter - for FPGAs 1MegByte is recommended
//   MAXIMUM is 20 (4KBytes), length 12 is 1 MByte !!!
parameter		decode_len     = 12 ;

//###########################################################################################################
// ALL COMMENTS are written as there were decode_len 20. This number and 12 (32 - 20) are assigning the
// numbers of decoded and compared bits, etc.
//###########################################################################################################

/*-----------------------------------------------------------------------------------------------------------
DECODER interface decodes input address (ADDR_IN); what means that it validates (HIT), if input address
falls within the defined image space boundaries. Image space boundarie is defined with image base address
register (BASE_ADDR) and address mask register (MASK_ADDR).
Beside that, it also translates (maps) the input address to the output address (ADDR_OUT), regarding the
translation address register (TRAN_ADDR) and the address mask register.
-----------------------------------------------------------------------------------------------------------*/

// output control
output	hit ;
// output address
output	[31:0]	addr_out ;
// input address
input	[31:0]	addr_in ;

// input registers - 12 LSbits are not valid since the smallest possible size is 4KB !
input	[31:(32-decode_len)]	base_addr ;
input	[31:(32-decode_len)]	mask_addr ;
input	[31:(32-decode_len)]	tran_addr ;

// input bit[2] of the Image Control register used to enable the address translation !
input	at_en ;
/*-----------------------------------------------------------------------------------------------------------
Internal signals !
-----------------------------------------------------------------------------------------------------------*/

// bit[31] if address mask register is IMAGE ENABLE bit (img_en)
wire	img_en ;

// addr_in_compare are masked input address bits that are compared with masked base_addr
wire	[31:(32-decode_len)]	addr_in_compare ;
// base_addr_compare are masked base address bits that are compared with masked addr_in
wire	[31:(32-decode_len)]	base_addr_compare ;

/*-----------------------------------------------------------------------------------------------------------
Decoding the input address!
This logic produces the loghest path in this module!

20 MSbits of input addres are as well as base address (20 bits) masked with corrected address mask. Only
masked bits of each vector are actually logically compared.
Bit[31] of address mask register is used to enable the image space !
-----------------------------------------------------------------------------------------------------------*/

assign addr_in_compare = (addr_in[31:(32-decode_len)] & mask_addr) ;

assign base_addr_compare = (base_addr & mask_addr) ;

assign img_en = mask_addr[31] ;

assign hit = { 1'b1, addr_in_compare } == { img_en, base_addr_compare } ;

/*-----------------------------------------------------------------------------------------------------------
Translating the input address!

Translation of input address is not implemented if ADDR_TRAN_IMPL is not defined

20 MSbits of input address are masked with negated value of the corrected address mask in order to get
address bits of the input address which won't be replaced with translation address bits.
Translation address bits (20 bits) are masked with corrected address mask. Only masked bits of vector are
actually valid, all others are zero.
Boath vectors are bit-wise ORed in order to get the valid translation address with an offset of an input
address.
12 LSbits of an input address are assigned to 12 LSbits of an output addres.
-----------------------------------------------------------------------------------------------------------*/

`ifdef ADDR_TRAN_IMPL
    // if Address Translation Enable bit is set, then translation address is used othervise input address is used!
    // addr_in_combine input address bits are not replaced with translation address!
    wire	[31:(32-decode_len)] addr_in_combine ;
    // tran_addr_combine are masked and combined with addr_in_combine!
    reg		[31:(32-decode_len)] tran_addr_combine ;

    assign addr_in_combine = (addr_in[31:(32-decode_len)] & ~mask_addr) ;
    always@(at_en or tran_addr or mask_addr or addr_in)
	begin
	    if (at_en)
			begin
				tran_addr_combine <= (tran_addr & mask_addr) ;
    		end
    	else
			begin
				tran_addr_combine <= (addr_in[31:(32-decode_len)] & mask_addr) ;
			end
	end

    assign addr_out[31:(32-decode_len)] = addr_in_combine | tran_addr_combine ;
    assign addr_out[(31-decode_len):0] = addr_in [(31-decode_len):0] ;
`else
    assign addr_out = addr_in ;
`endif

endmodule

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美高清视频www夜色资源网| 亚洲一区二区三区三| 日本高清免费不卡视频| 国产精品一线二线三线| 久久精品99国产精品日本| 一区二区久久久| 一区二区三区中文免费| 亚洲人成影院在线观看| 亚洲免费在线视频一区 二区| 国产精品午夜久久| 国产精品情趣视频| 亚洲欧洲av在线| 亚洲综合精品久久| 午夜伦理一区二区| 久久精品国产一区二区三| 美女视频黄频大全不卡视频在线播放| 日本欧洲一区二区| 国产精品一区一区三区| 亚洲自拍偷拍麻豆| 久久久精品综合| 亚洲欧美一区二区三区极速播放 | 中文字幕在线不卡国产视频| 欧美一区二区人人喊爽| 精品少妇一区二区三区免费观看| 久久久www成人免费无遮挡大片| 国产三级精品三级| 亚洲一区二区在线观看视频 | 日本不卡一区二区三区高清视频| 青青草精品视频| 丁香一区二区三区| 在线观看视频91| 精品国产免费久久| 综合激情网...| 美女精品一区二区| 91首页免费视频| 精品欧美乱码久久久久久 | 国产精品人妖ts系列视频| 亚洲精品五月天| 久久99精品久久久久久国产越南 | 欧美日韩亚洲综合| 欧美成人aa大片| 亚洲精品日韩专区silk| 久久国产综合精品| 在线观看视频一区二区欧美日韩| 欧美一级xxx| 一区二区三区中文字幕电影| 日韩不卡在线观看日韩不卡视频| 懂色av一区二区三区蜜臀| 欧美久久一二三四区| 中文字幕中文字幕中文字幕亚洲无线| 亚洲国产毛片aaaaa无费看| 处破女av一区二区| 精品国产第一区二区三区观看体验| 国产精品亲子伦对白| 欧美bbbbb| 一区二区高清视频在线观看| 91精品欧美综合在线观看最新| 午夜精品123| 欧美放荡的少妇| 亚洲成人av一区二区三区| 色婷婷综合久久久中文字幕| 中文字幕欧美一区| 欧美日韩视频第一区| 国产伦精品一区二区三区免费| 欧美经典一区二区| 国产欧美va欧美不卡在线| 高清beeg欧美| 99久久精品久久久久久清纯| 久久一留热品黄| 五月天丁香久久| 欧美人狂配大交3d怪物一区| 亚洲免费观看高清完整版在线观看熊| 国产大陆亚洲精品国产| 国产午夜精品久久久久久免费视| 免费观看在线综合色| 欧美一区二区三区系列电影| 午夜不卡av免费| 欧美精品久久天天躁| 日韩影院精彩在线| 91精品久久久久久久91蜜桃| 视频一区国产视频| 日韩视频123| 久久9热精品视频| 久久久久久综合| www.成人在线| 亚洲伊人色欲综合网| 欧美影片第一页| 欧美a一区二区| 亚洲精品一区二区精华| 成人小视频免费在线观看| 国产精品黄色在线观看| 91久久线看在观草草青青| 亚洲自拍另类综合| 日韩亚洲欧美一区二区三区| 久久91精品久久久久久秒播| 久久精品免费在线观看| 99久久精品免费精品国产| 亚洲成人一区二区| 精品国产麻豆免费人成网站| 丁香啪啪综合成人亚洲小说| 亚洲欧洲无码一区二区三区| 欧美在线免费视屏| 美女免费视频一区二区| 国产精品久久综合| 欧美人狂配大交3d怪物一区| 国产乱人伦偷精品视频不卡| 国产精品每日更新在线播放网址| 日本精品视频一区二区| 精品一区二区三区免费播放| 国产色婷婷亚洲99精品小说| 一本色道久久综合狠狠躁的推荐| 亚洲成人激情综合网| 久久综合色综合88| 在线视频你懂得一区二区三区| 日韩一区精品视频| 国产精品女主播av| 日韩一二在线观看| 91婷婷韩国欧美一区二区| 奇米色777欧美一区二区| 国产精品福利一区二区| 精品少妇一区二区三区| 日本黄色一区二区| 高清久久久久久| 日韩电影免费在线看| 亚洲另类在线制服丝袜| 久久蜜桃av一区精品变态类天堂| 91搞黄在线观看| 不卡一二三区首页| 久久99国产精品麻豆| 亚洲成av人片在www色猫咪| 国产精品欧美一区喷水| 久久综合色一综合色88| 7777女厕盗摄久久久| 一本色道久久综合亚洲91| 国产盗摄一区二区三区| 蜜臀av一区二区在线观看| 亚洲第一精品在线| 一区二区三区毛片| 亚洲视频小说图片| 国产精品免费免费| 国产精品欧美一区喷水| 久久精品亚洲一区二区三区浴池| 69堂成人精品免费视频| 欧美日韩免费高清一区色橹橹| 91同城在线观看| 一本色道久久综合狠狠躁的推荐 | 国产成a人亚洲精品| 美女久久久精品| 久久精品国产在热久久| 麻豆精品视频在线| 精品一二三四在线| 韩国理伦片一区二区三区在线播放| 婷婷国产在线综合| 日本不卡一区二区三区| 日韩精品成人一区二区在线| 亚洲成a天堂v人片| 亚洲成av人片一区二区三区 | 日韩成人精品在线观看| 日韩综合在线视频| 日韩vs国产vs欧美| 久久精品国产77777蜜臀| 美女视频网站黄色亚洲| 韩国v欧美v日本v亚洲v| 国产麻豆精品theporn| 国产成人精品三级麻豆| kk眼镜猥琐国模调教系列一区二区| 福利一区福利二区| 99久久精品国产毛片| 在线免费观看视频一区| 欧美蜜桃一区二区三区| 宅男噜噜噜66一区二区66| 欧美一区二区久久| 国产日本欧洲亚洲| 尤物在线观看一区| 蜜臀久久99精品久久久久宅男| 精品一区二区三区在线视频| 成人一级视频在线观看| 欧美主播一区二区三区美女| 欧美日免费三级在线| 精品国免费一区二区三区| 中文字幕av免费专区久久| 樱桃国产成人精品视频| 免费精品视频在线| 成人av电影在线观看| 欧美日韩久久久一区| 久久网站最新地址| 一区二区三区日本| 国产美女一区二区三区| 91黄色小视频| 久久精品无码一区二区三区| 一区二区三区在线观看欧美 | 国产寡妇亲子伦一区二区| 色哟哟一区二区在线观看| 91精品国产综合久久香蕉麻豆| 久久精品一区二区| 午夜精品久久久久久久99水蜜桃| 韩国毛片一区二区三区| 欧美日韩国产三级| 中文字幕欧美一| 国产一区亚洲一区|