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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? reg_8_pack.v

?? vga ipcore的verilog代碼
?? V
字號(hào):
// ----------------------------------------------------------------------------
// reg_8_pack.v
// 
// AUTHOR         : John Clayton
// ----------------------------------------------------------------------------
// Release History
//   VERSION DATE        AUTHOR            DESCRIPTION
//   ------- ----------- ----------------- ------------------------------------
//   1.0     01/15/01    John Clayton      Initial Version
//                                         Designed according to 3GPP specs
//                                         3G TS 25.211-25.215 V3.2.0 (2000-03)
//   1.1     01/18/01    John Clayton      Removed sys_clk
//   1.11    03/28/01    John Clayton      Incorporated code review changes
//   1.12    08/06/01    John Clayton      Replaced "rblock_sel" vector with
//                                         a single select line "sel_i"
//                                         Removed CHANNEL_NUM_PP and
//                                         MAX_CHANNELS_PP.
//                                         Replaced rd and wr with single we_i.
//   1.13    04/16/01    John Clayton      Made reset asynchronous.
// ----------------------------------------------------------------------------
// PURPOSE: This module implements a set of eight addresses and a data bus of
//          the given width.  These addresses can be either R/W 
//          (full registers) or they can be Read-Only (no storage provided).
//          See NOTES below for further details of operation.
// ----------------------------------------------------------------------------
// Parameters
//   NAME                 RANGE    DESCRIPTION                DEFAULT
//   -------------------- -------- -------------------------- -----------------
//   SIZE_R0_PP           1..16    Number of bits in register   8
//   SIZE_R1_PP           1..16    Number of bits in register   8
//   SIZE_R2_PP           1..16    Number of bits in register   8
//   SIZE_R3_PP           1..16    Number of bits in register   8
//   SIZE_R4_PP           1..16    Number of bits in register   8
//   SIZE_R5_PP           1..16    Number of bits in register   8
//   SIZE_R6_PP           1..16    Number of bits in register   8
//   SIZE_R7_PP           1..16    Number of bits in register   8
//   READ_ONLY_REGS_PP    0..7     Number of regs which are read only    0
//   DATA_BUS_SIZE_PP     4..24    Sets the width of the data bus 16
//
// ----------------------------------------------------------------------------
// USABILITY FACTORS
//   Reset Strategy   : None.  Program the registers to obtain a known value.
//   Clock Domains    : clk_i
//   Critical Timing  : None
//   Test Features    : None
//   Asynchronous I/F : None
//   Scan Methodology : None
//   Instantiations   : N/A
//   Other            : N/A
// ----------------------------------------------------------------------------
// NOTES
// 
// The reg_8_pack address vector "adr_i" selects among the eight locations
// present in the module.  In order to read data from a register location, the
// we_i line must be inactive (low), and the "sel_i" signal must also be
// active (high.)  Then, the unit will drive the data bus.
//
// Writing is similar - drive we_i active (high), make sel_i high, drive the
// write data onto the data bus, and provide a "posedge clk_i" to store the
// data into the selected register.
//
// The registers are composed of d-flip-flops (DFFs), clocked by clk_i.
//
// A parameter allows setting the number of "read-only" locations.
// The convention for this parameter is the following:  The lower numbered N 
// registers become read-only locations, and the upper (8-N) registers remain 
// as R/W (storage registers,) for a setting of READ_ONLY_REGS_PP = N.
// Thus, for N=4, then r0,r1,r2 and r3 are "read-only" locations (no actual 
// registers are synthesized,) but r4, r5, r6 and r7 remain as registers.
//
// -FHDR-----------------------------------------------------------------------

module reg_8_pack(
clk_i,
rst_i,
sel_i,
we_i,
adr_i,
dat_io,
r0,
r1,
r2,
r3,
r4,
r5,
r6,
r7
);
// Parameter declarations

parameter SIZE_R0_PP = 8;         // Determines size of register in bits.
parameter SIZE_R1_PP = 8;         // Determines size of register in bits.
parameter SIZE_R2_PP = 8;         // Determines size of register in bits.
parameter SIZE_R3_PP = 8;         // Determines size of register in bits.
parameter SIZE_R4_PP = 8;         // Determines size of register in bits.
parameter SIZE_R5_PP = 8;         // Determines size of register in bits.
parameter SIZE_R6_PP = 8;         // Determines size of register in bits.
parameter SIZE_R7_PP = 8;         // Determines size of register in bits.
parameter READ_ONLY_REGS_PP = 0;  // Determines how many regs are read only.
parameter DATA_BUS_SIZE_PP = 16;  // Sets the width of the data bus.

// I/O declarations
input clk_i;                      // System clock input
input rst_i;                      // Reset signal
input sel_i;                      // Reg block "chip select"
input we_i;                       // write enable signal
input [2:0] adr_i;                // Register address field

inout [DATA_BUS_SIZE_PP-1:0] dat_io;  // DSP data bus

inout [SIZE_R0_PP-1:0] r0;        // Register I/O
inout [SIZE_R1_PP-1:0] r1;        // Register I/O
inout [SIZE_R2_PP-1:0] r2;        // Register I/O
inout [SIZE_R3_PP-1:0] r3;        // Register I/O
inout [SIZE_R4_PP-1:0] r4;        // Register I/O
inout [SIZE_R5_PP-1:0] r5;        // Register I/O
inout [SIZE_R6_PP-1:0] r6;        // Register I/O
inout [SIZE_R7_PP-1:0] r7;        // Register I/O


// Internal declarations

// Local signals to hold register values
reg [SIZE_R0_PP-1:0] r0_local;
reg [SIZE_R1_PP-1:0] r1_local;
reg [SIZE_R2_PP-1:0] r2_local;
reg [SIZE_R3_PP-1:0] r3_local;
reg [SIZE_R4_PP-1:0] r4_local;
reg [SIZE_R5_PP-1:0] r5_local;
reg [SIZE_R6_PP-1:0] r6_local;
reg [SIZE_R7_PP-1:0] r7_local;

reg [DATA_BUS_SIZE_PP-1:0] data_out;


//---------------------------------------------------------------
// This is the writing side of the registers
always @(posedge clk_i or posedge rst_i)
  begin
    if (rst_i) begin    // Asynchronous reset
      r0_local <= 0;
      r1_local <= 0;
      r2_local <= 0;
      r3_local <= 0;
      r4_local <= 0;
      r5_local <= 0;
      r6_local <= 0;
      r7_local <= 0;
    end
    else if (we_i && sel_i)
      case (adr_i)
        3'b000 :
          if (SIZE_R0_PP > 1)
            r0_local <= dat_io[SIZE_R0_PP-1:0];
          else if (SIZE_R0_PP == 1)
            r0_local <= dat_io[0];
        3'b001 :
          if (SIZE_R1_PP > 1)
            r1_local <= dat_io[SIZE_R1_PP-1:0];
          else if (SIZE_R1_PP == 1)
            r1_local <= dat_io[0];
        3'b010 :
          if (SIZE_R2_PP > 1)
            r2_local <= dat_io[SIZE_R2_PP-1:0];
          else if (SIZE_R2_PP == 1)
            r2_local <= dat_io[0];
        3'b011 :
          if (SIZE_R3_PP > 1)
            r3_local <= dat_io[SIZE_R3_PP-1:0];
          else if (SIZE_R3_PP == 1)
            r3_local <= dat_io[0];
        3'b100 :
          if (SIZE_R4_PP > 1)
            r4_local <= dat_io[SIZE_R4_PP-1:0];
          else if (SIZE_R4_PP == 1)
            r4_local <= dat_io[0];
        3'b101 :
          if (SIZE_R5_PP > 1)
            r5_local <= dat_io[SIZE_R5_PP-1:0];
          else if (SIZE_R5_PP == 1)
            r5_local <= dat_io[0];
        3'b110 :
          if (SIZE_R6_PP > 1)
            r6_local <= dat_io[SIZE_R6_PP-1:0];
          else if (SIZE_R6_PP == 1)
            r6_local <= dat_io[0];
        3'b111 :
          if (SIZE_R7_PP > 1)
            r7_local <= dat_io[SIZE_R7_PP-1:0];
          else if (SIZE_R7_PP == 1)
            r7_local <= dat_io[0];
      endcase
  end // End of always block

// This is the reading side of the registers

always @(
         adr_i
         or r0_local
         or r1_local
         or r2_local
         or r3_local
         or r4_local
         or r5_local
         or r6_local
         or r7_local
         or r0
         or r1
         or r2
         or r3
         or r4
         or r5
         or r6
         or r7
        )
  begin
    case (adr_i)
    3'b000 : 
      data_out <= (READ_ONLY_REGS_PP > 0)?r0:r0_local;
    3'b001 : 
      data_out <= (READ_ONLY_REGS_PP > 1)?r1:r1_local;
    3'b010 : 
      data_out <= (READ_ONLY_REGS_PP > 2)?r2:r2_local;
    3'b011 : 
      data_out <= (READ_ONLY_REGS_PP > 3)?r3:r3_local;
    3'b100 : 
      data_out <= (READ_ONLY_REGS_PP > 4)?r4:r4_local;
    3'b101 : 
      data_out <= (READ_ONLY_REGS_PP > 5)?r5:r5_local;
    3'b110 : 
      data_out <= (READ_ONLY_REGS_PP > 6)?r6:r6_local;
    3'b111 : 
      data_out <= (READ_ONLY_REGS_PP > 7)?r7:r7_local;
    endcase
  end // End of always block


assign dat_io = (~we_i && sel_i)?data_out:{DATA_BUS_SIZE_PP{1'bz}};

assign r0 = (READ_ONLY_REGS_PP <= 0)?r0_local:{SIZE_R0_PP{1'bz}};
assign r1 = (READ_ONLY_REGS_PP <= 1)?r1_local:{SIZE_R1_PP{1'bz}};
assign r2 = (READ_ONLY_REGS_PP <= 2)?r2_local:{SIZE_R2_PP{1'bz}};
assign r3 = (READ_ONLY_REGS_PP <= 3)?r3_local:{SIZE_R3_PP{1'bz}};
assign r4 = (READ_ONLY_REGS_PP <= 4)?r4_local:{SIZE_R4_PP{1'bz}};
assign r5 = (READ_ONLY_REGS_PP <= 5)?r5_local:{SIZE_R5_PP{1'bz}};
assign r6 = (READ_ONLY_REGS_PP <= 6)?r6_local:{SIZE_R6_PP{1'bz}};
assign r7 = (READ_ONLY_REGS_PP <= 7)?r7_local:{SIZE_R7_PP{1'bz}};

endmodule

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
夜夜精品浪潮av一区二区三区| 一区二区在线电影| 99精品欧美一区| 亚洲成人动漫av| 欧美国产日韩亚洲一区| 欧美日韩一区二区欧美激情| 国产精品456| 日韩高清一区二区| 亚洲永久免费av| 国产精品久久午夜| 欧美一级久久久久久久大片| 91久久久免费一区二区| 成人性视频网站| 国产一区二三区| 日韩成人伦理电影在线观看| 日韩经典一区二区| 亚洲国产欧美在线| 亚洲另类一区二区| 亚洲国产精品一区二区尤物区| 亚洲成人av福利| 六月婷婷色综合| 日韩精品一二三四| 日本91福利区| 日韩av在线免费观看不卡| 久久精品国产999大香线蕉| 国产精品自拍网站| 99这里只有久久精品视频| 国产精品一区二区男女羞羞无遮挡| 国产成人av电影在线观看| 精品无码三级在线观看视频| 日韩激情视频网站| 国产美女在线精品| 91香蕉视频黄| 91免费在线视频观看| 欧美精品1区2区| 9191国产精品| 91精品国产免费| 日韩欧美美女一区二区三区| 欧美一区2区视频在线观看| 久久免费视频色| 国产女人水真多18毛片18精品视频| 久久午夜电影网| 国产情人综合久久777777| 中文字幕在线不卡一区二区三区| 国产精品五月天| 国产精品国产三级国产| 午夜精品视频在线观看| 日韩成人一级片| 成人激情免费视频| 91成人免费在线视频| 日韩精品一区二区三区三区免费| 国产欧美1区2区3区| 亚洲成人av在线电影| 国产成人av一区二区三区在线| 成人网男人的天堂| 91精品午夜视频| 中文字幕亚洲在| 精品一区免费av| 在线一区二区观看| 国产目拍亚洲精品99久久精品| 午夜欧美视频在线观看| 成人性色生活片| 日韩欧美视频在线| 亚洲国产日韩综合久久精品| 国产91高潮流白浆在线麻豆| 欧美一区二区视频在线观看2022| 1区2区3区精品视频| 精品一区二区av| 欧美剧在线免费观看网站| 18成人在线视频| 国产成人av一区二区三区在线观看| 欧美另类高清zo欧美| 1000部国产精品成人观看| 精品一区二区日韩| 5566中文字幕一区二区电影| 亚洲人妖av一区二区| 亚洲三级理论片| 国产盗摄视频一区二区三区| 日韩欧美在线综合网| 亚洲精品成人a在线观看| 不卡一卡二卡三乱码免费网站| 精品蜜桃在线看| 亚洲精品国产a| www.在线欧美| 欧美国产日韩亚洲一区| 国产精品系列在线播放| 精品日韩成人av| 日韩经典中文字幕一区| 欧美乱妇一区二区三区不卡视频| 亚洲精品乱码久久久久| 91蜜桃视频在线| 成人欧美一区二区三区| 成人高清免费观看| 国产欧美精品一区二区色综合朱莉| 国内欧美视频一区二区| 欧美在线短视频| 久久久久久久久久久久久女国产乱 | 国产91在线观看| 久久精品综合网| 亚洲尤物在线视频观看| 91精品福利视频| 亚洲一区二区三区三| 欧美三日本三级三级在线播放| 一区二区免费视频| 在线观看av一区二区| 亚洲成人黄色影院| 欧美精品久久久久久久多人混战| 亚洲高清免费在线| 911精品产国品一二三产区| 日韩精品国产精品| 日韩欧美一级二级三级| 久久成人免费网| 久久久国产精华| 成人av第一页| 亚洲美女免费在线| 欧美日韩电影在线播放| 亚洲另类春色国产| 国产精品久久久久婷婷二区次| 国产成人8x视频一区二区| 国产精品成人网| 色女孩综合影院| 国产女人aaa级久久久级| 丁香激情综合国产| 一区二区三区在线视频观看| 欧美视频一区二区| 夜夜嗨av一区二区三区网页| 欧美日本在线一区| 国内成+人亚洲+欧美+综合在线| 国产亚洲一区二区在线观看| 99久久国产综合精品女不卡| 亚洲一区国产视频| 欧美va在线播放| 不卡免费追剧大全电视剧网站| 一区二区三区在线播| 欧美高清视频在线高清观看mv色露露十八| 蜜臀久久久久久久| 欧美日韩国产高清一区二区三区 | 成人午夜精品在线| 一区二区三区四区五区视频在线观看| 欧美人与z0zoxxxx视频| 国内精品伊人久久久久av一坑| 国产精品久久久久久久蜜臀| 欧美三电影在线| 国产尤物一区二区| 亚洲视频一区二区在线| 欧美一区二区日韩| 成人激情免费视频| 青青草国产精品亚洲专区无| 国产精品视频看| 91精品国产欧美一区二区成人| 成人免费福利片| 肉肉av福利一精品导航| 国产欧美日韩中文久久| 欧美片在线播放| 成人app网站| 久久精品国产一区二区三 | 国模无码大尺度一区二区三区| 最新热久久免费视频| 欧美一区二区三区日韩视频| a亚洲天堂av| 久久国产免费看| 一区二区在线免费| 国产视频不卡一区| 这里只有精品免费| 一本大道久久a久久精二百 | 欧美成人精品1314www| 91视频免费看| 国产酒店精品激情| 日本欧美一区二区| 亚洲黄色录像片| 欧美国产禁国产网站cc| 日韩精品一区二区三区四区| 欧美少妇一区二区| 99久久精品免费看| 国产成人精品午夜视频免费| 日本v片在线高清不卡在线观看| 亚洲视频 欧洲视频| 久久婷婷国产综合精品青草| 欧美久久久影院| 色婷婷一区二区三区四区| 国产99一区视频免费| 另类小说综合欧美亚洲| 亚洲成av人片一区二区梦乃| 亚洲图片另类小说| 亚洲国产成人午夜在线一区| 日韩你懂的电影在线观看| 欧美精品日日鲁夜夜添| 色94色欧美sute亚洲13| 91视频国产资源| 不卡的av电影| 成人97人人超碰人人99| 成人深夜视频在线观看| 懂色av噜噜一区二区三区av| 国产米奇在线777精品观看| 精东粉嫩av免费一区二区三区| 蜜桃视频在线观看一区二区| 天堂一区二区在线免费观看| 亚洲高清免费观看高清完整版在线观看 | 国产精品色眯眯| 欧美激情一区二区|