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

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

?? it51_core.v

?? 流片過的risc_8051源代碼 verilog語言描述的~
?? V
?? 第 1 頁 / 共 5 頁
字號:
//-----------------------------------------------------------------------------
//   IT51 (Improved-T51)                                                     --
//                                                                           --
//   VERSION: 030723                                                         --
//                                                                           --
//   Contact: yfchen58@gmail.com                                             --
//                                                                           --
//-----------------------------------------------------------------------------
//                                                                           --
//  IT51 - Improved T51 (VHDL 1-Cycle 8051 Compatible Microcontroller)       --
//  Copyright (c) 2001-2002 Daniel Wallner (jesus@opencores.org)             --
//                          Yung-Fu Chen (yfchen58@ms49.hinet.net)           --
//                                                                           --
//-----------------------------------------------------------------------------
//  FETURE                                                                   --
//     . IT51_top interface is similar to synopsys DW8051                    --
//     . High-Performance 1-Cycle 8051                                       --
//     . instruction compatible with standard DW8051                         --
//     . 256 byte internal data memory                                       --
//     . up to 64KB external data memory                                     --
//     . up to 64KB internal program memory                                  --
//     . export sfr-bus                                                      --
//     . no dual-port memory used                                            --
//     . no watch-dog timer                                                  --
//     . dual DPTR (DPTR0, DPTR1), refer to DW8051                           --
//     . sleep mode support, refer to DW8051                                 --
//     . no stop mode                                                        --
//     . six external interrupt, refer to DW8051                             --
//     . pass all DW8051 test-pattern                                        --
//     . UART/Timer are not fully tested yet                                 --
//     . no internal tri-state bus                                           --
//     . 2-Cycle MUL Instruction                                             --
//                                                                           --
//-----------------------------------------------------------------------------
//                                                                           --
//  IT51_top (Interface Compatible with Synopsys DW8051)                     --
//     |                                                                     --
//     +-- IT51_core (Control Unit)                                          --
//     |       |                                                             --
//     |       +-- IT51_ALU (ALU)                                            --
//     |               |                                                     --
//     |               +-- IT51_MD (MUL/DIV)                                 --
//     |                                                                     --
//     +-- IT51_Glue (Glue Logic)                                            --
//     |                                                                     --
//     +-- IT51_TC01 (Timer/Counter-1)                                       --
//     |                                                                     --
//     +-- IT51_TC2 (Timer/Counter-2)                                        --
//     |                                                                     --
//     +-- IT51_UART (UART)                                                  --
//                                                                           --
//-----------------------------------------------------------------------------
// ============================================================================
// The original T51 license is listed below:
// ============================================================================
//
// 8051 compatible microcontroller core
//
// Version : 0218
//
// Copyright (c) 2001-2002 Daniel Wallner (jesus@opencores.org)
//
// All rights reserved
//
// Redistribution and use in source and synthezised forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// Redistributions in synthesized form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// Neither the name of the author nor the names of other contributors may
// be used to endorse or promote products derived from this software without
// specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
//
// Please report bugs to the author, but before you do so, please
// make sure that this is not a derivative work and that
// you have the latest version of this file.
//
// The latest version of this file can be found at:
//	http://www.opencores.org/cvsweb.shtml/t51/
//
// Limitations :
//
// File history :
//
// ============================================================================
//
//`define DPH0 DPTR0[15:8] 
//`define DPL0 DPTR0[7:0] 
//`define DPH1 DPTR1[15:8] 
//`define DPL1 DPTR1[7:0] 
//`define DPS_SEL DPS[0] 
//`define cInst_Length cInst_MCode[1:0] 
//`define nInst ROM_Data 
//`define nInst_Rn_Index ROM_Data[2:0] 

module IT51_core (Clk, Rst_n, Idle_n, ROM_Addr, ROM_Data, RAM_Addr, RAM_RData, RAM_WData, RAM_Cycle, RAM_Rd, RAM_Wr, iRAM_Addr, iRAM_Rd, iRAM_Wr, iRAM_RData, iRAM_WData, Int_Trig, Int_Acc, SFR_Rd, SFR_Wr, SFR_Addr, SFR_WData, SFR_RData_Ext);

   // included from package it51_pack
   input Clk; 
   input Rst_n; 
   input Idle_n; 
   output[15:0] ROM_Addr; 
   wire[15:0] ROM_Addr;
   input[7:0] ROM_Data; 
   output[15:0] RAM_Addr; 
   reg[15:0] RAM_Addr;
   input[7:0] RAM_RData; 
   output[7:0] RAM_WData; 
   wire[7:0] RAM_WData;
   output RAM_Cycle; 
   wire RAM_Cycle;
   output RAM_Rd; 
   wire RAM_Rd;
   output RAM_Wr; 
   wire RAM_Wr;
   output[7:0] iRAM_Addr; 
   wire[7:0] iRAM_Addr;
   output iRAM_Rd; 
   wire iRAM_Rd;
   output iRAM_Wr; 
   wire iRAM_Wr;
   input[7:0] iRAM_RData; 
   output[7:0] iRAM_WData; 
   wire[7:0] iRAM_WData;
   input[10:0] Int_Trig; 
   output[10:0] Int_Acc; 
   reg[10:0] Int_Acc;
   output SFR_Rd; 
   wire SFR_Rd;
   output SFR_Wr; 
   wire SFR_Wr;
   output[6:0] SFR_Addr; 
   wire[6:0] SFR_Addr;
   output[7:0] SFR_WData; 
   wire[7:0] SFR_WData;
   input[7:0] SFR_RData_Ext; 

   // Registers
   reg[7:0] ACC; 
   reg[7:0] B; 
   reg[7:1] PSW; // Bit 0 is parity
   wire PSW0; 
   reg[7:0] IP; 
   reg[7:0] SP; 
   reg[7:0] iSP; 
   reg[15:0] DPTR0; // DPTR0
   wire[15:0] DPTR0_Plus_ACC; 
   reg[15:0] DPTR1; // DPTR1
   wire[15:0] DPTR1_Plus_ACC; 
   reg[7:0] DPS; // DPS
   reg[7:0] CKCON; // CKCON
   reg[15:0] PC; 
   reg[15:0] PC_Plus_1; 
   reg[15:0] PC_Plus_2; 
   reg[15:0] PC_Minus_1; 
   reg[15:0] PC_Plus_cInst1; 
   reg[15:0] PC_Plus_cInst2; 
   reg[7:0] MPAGE; 
   reg[15:0] PCC; 
   reg[15:0] nPC; 
   reg[15:0] oPC; 
   // ALU signals
   wire[7:0] Op_A; 
   wire[7:0] Op_B; 
   reg[7:0] Mem_A; 
   reg Mem_A_Rd; 
   wire[7:0] Mem_Din; 
   reg[7:0] Old_Mem_A; 
   wire[7:0] ACC_Q; 
   wire[7:0] B_Q; 
   wire[7:0] Res_Bus; 
   wire[7:5] Status_D; 
   wire[7:5] Status_Wr; 
   // Misc signals
   reg[7:0] Int_AddrA; 
   reg[7:0] Int_AddrA_r; 
   wire Last; 
   reg[1:0] FCycle; 
   reg RET_r; 
   wire Next_PSW7; 
   wire Next_ACC_Z; 
   reg ACC_Wr; 
   reg B_Wr; 
   reg[7:0] SFR_RData; 
   reg[7:0] SFR_RData_r; 
   reg[7:0] Bit_Pattern; 
   // Registered instruction words.
   reg[7:0] cInst; 
   reg[7:0] cInst1; 
   reg[7:0] cInst2; 
   reg[8:0] cInst_MCode; 
   reg[8:0] nInst_MCode; 
   // Control signals
   reg RAM_Rd_i; 
   reg RAM_Wr_i; 
   reg Rst_r_n; 
   reg SFR_Rd_i; 
   reg SFR_Wr_i; 
   reg SFR_Wr_p; 
   reg Mem_Wr; 
   reg Mem_Wr_p; 
   reg J_Skip; 
   reg IPending; 
   reg[10:0] Int_Trig_r; 
   reg ICall; 
   reg HPInt; 
   reg LPInt; 
   reg[3:0] PCPaused; 
   wire Div_Rdy; 
   reg INC_DPTR; 
   wire CJNE; 
   wire DJNZ; 
   // Mux control
   reg AMux_SFR; 
   reg BMux_Inst2; 
   reg RMux_PCL; 
   reg RMux_PCH; 
   reg INT_reject; 
   wire First_Cycle; 
   wire Second_Cycle; 
   wire Third_Cycle; 
   wire Last_Cycle; 
   wire Inst_Skip; 
   wire IStart; 
   wire Ri_Stall; 
   wire PSW_Stall; 
   wire RW_Stall; 
   reg PCPause; 
   wire Ready; 
   reg NOP; 
   wire nInst_is_Ri; 
   wire nInst_is_Rn; 
   wire nInst_is_RET; 
   wire nInst_is_RETI; 
   wire nInst_is_DR; 
   reg cInst_is_DW; 
   reg cInst_is_MOVX_Write; 
   reg cInst_is_MOVX_Read; 
   reg cInst_is_RET; 
   reg cInst_is_RETI; 
   reg cInst_is_MOVC; 
   reg cInst_is_DIV; 
   reg cInst_is_PUSH; 
   reg cInst_is_POP; 
   reg cInst_is_ACALL; 
   reg cInst_is_LCALL; 
   reg cInst_is_Ri; 
   reg cInst_is_Rn; 
   reg cInst_is_A_Write; 
   reg cInst_is_MUL; 
   reg cInst_is_INC_DPTR; 
   reg cInst_is_JC; 
   reg cInst_is_JNC; 
   reg cInst_is_JZ; 
   reg cInst_is_JNZ; 
   reg cInst_is_SJMP; 
   reg cInst_is_AJMP; 
   reg cInst_is_JB; 
   reg cInst_is_JNB; 
   reg cInst_is_JBC; 
   reg cInst_is_LJMP; 
   reg cInst_is_IW; 
   reg cInst_is_DR; 
   reg cInst_is_CJNE; 
   reg cInst_is_DJNE; 
   reg cInst_is_DJNZ; 
   reg cInst_is_JMP_A_DPTR; 
   reg cInst_is_7x; 
   reg cInst_is_8x; 
   reg cInst_is_Ax; 
   reg cInst_is_x3; 
   reg cInst_is_x5; 
   reg[7:0] EIP; 
   wire[10:0] INT_IP; 
   reg[15:0] IRQ_Entry; 

   //--------------------------------------------------------------------------
   assign iRAM_Rd = Mem_A_Rd ;
   assign iRAM_Wr = Mem_Wr ;
   assign iRAM_WData = Mem_Din ;
   assign iRAM_Addr = (Mem_Wr == 1'b1) ? Int_AddrA_r : Int_AddrA ;

   always @(negedge Rst_n or posedge Clk)
   begin
      if (Rst_n == 1'b0)
      begin
         Mem_A <= {8{1'b0}} ; 
      end
      else
      begin
         if (Mem_A_Rd == 1'b1)
         begin
            Mem_A <= iRAM_RData ; 
         end 
         if (Mem_Wr == 1'b1)
         begin
            if (Int_AddrA_r == Int_AddrA)
            begin
               Mem_A <= Mem_Din ; 
            end 
         end 
      end 
   end 
   //--------------------------------------------------------------------------
   assign ROM_Addr = nPC ;
   //--------------------------------------------------------------------------
   // Ready
   assign Ready = (Idle_n == 1'b1) ;
   //--------------------------------------------------------------------------
   // Next Instruction is @Ri
   assign nInst_is_Ri = ((nInst_MCode[7]) == 1'b1) ;
   assign nInst_is_Rn = ((nInst_MCode[8]) == 1'b1) ;
   //assign nInst_is_RET = (nInst == 8'b00100010) ;
   assign nInst_is_RET = (ROM_Data == 8'b00100010) ;
   assign nInst_is_RETI = (ROM_Data == 8'b00110010) ;
   assign nInst_is_DR = ((nInst_MCode[5]) == 1'b1) ;

   //--------------------------------------------------------------------------
   // Program counter
   //PC_Plus_1      <= PC + 1;
   //PC_Plus_2      <= PC + 2;
   //PC_Minus_1     <= PC - 1;
   //PC_Plus_cInst1 <= std_logic_vector(conv_unsigned(signed(PC) +
   //                                                       signed(cInst1), 16));
   //PC_Plus_cInst2 <= std_logic_vector(conv_unsigned(signed(PC) +
   //                                                       signed(cInst2), 16));
   always @(negedge Rst_n or posedge Clk)
   begin
      if (Rst_n == 1'b0)
      begin
         PC <= {16{1'b0}} ; 
         PC_Plus_1 <= 16'b0000000000000001 ; 
         PC_Plus_2 <= 16'b0000000000000010 ; 
         PC_Minus_1 <= 16'b1111111111111111 ; 
      end
      else
      begin
         if (Ready)
         begin
            PC <= nPC ; 
            PC_Plus_1 <= nPC + 1 ; 
            PC_Plus_2 <= nPC + 2 ; 
            PC_Minus_1 <= nPC - 1 ; 
         end 
      end 
   end 

   // PC_Plus_cInst1
   always @(negedge Rst_n or posedge Clk)
   begin
      if (Rst_n == 1'b0)
      begin
         PC_Plus_cInst1 <= {16{1'b0}} ; 
      end
      else
      begin
         if (Ready)
         begin
            if (First_Cycle)
            begin
               //PC_Plus_cInst1 <= std_logic_vector(signed(nPC) + signed(nInst)) ; 
               PC_Plus_cInst1 <= nPC + ROM_Data ; 
            end
            else
            begin
               //PC_Plus_cInst1 <= std_logic_vector(signed(nPC) + signed(cInst1)) ; 
               PC_Plus_cInst1 <= nPC + cInst1 ; 
            end 
         end 
      end 
   end 

   // PC_Plus_cInst2
   always @(negedge Rst_n or posedge Clk)
   begin
      if (Rst_n == 1'b0)
      begin
         PC_Plus_cInst2 <= {16{1'b0}} ; 
      end
      else
      begin
         if (Ready)
         begin
            if (Second_Cycle)
            begin
               //PC_Plus_cInst2 <= std_logic_vector(signed(nPC) + signed(nInst)) ; 
               PC_Plus_cInst2 <= nPC + ROM_Data; 
            end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
www.性欧美| 欧美日韩国产在线播放网站| 91黄色激情网站| 精品国产三级电影在线观看| 一二三四社区欧美黄| 国产精品一区二区在线观看网站| 欧美男女性生活在线直播观看| 国产欧美日韩三区| 九九久久精品视频| 777久久久精品| 亚洲专区一二三| 91亚洲精品久久久蜜桃网站| 26uuu久久综合| 日av在线不卡| 91精品国产综合久久蜜臀 | 亚洲视频网在线直播| 精品一区二区免费在线观看| 欧美丰满少妇xxxxx高潮对白| 亚洲乱码一区二区三区在线观看| 成人小视频在线观看| 久久久亚洲精品一区二区三区| 日韩国产欧美三级| 欧美久久久影院| 亚洲一区二区3| 91久久精品一区二区三| 亚洲欧美一区二区三区孕妇| 国产ts人妖一区二区| 国产亚洲一区二区三区四区| 韩国精品一区二区| 久久久久综合网| 国产精品一区2区| 国产亲近乱来精品视频| 国产成人免费在线观看| 国产亚洲一本大道中文在线| 国产精品自产自拍| 国产精品看片你懂得| 91在线精品一区二区| 亚洲美女淫视频| 在线视频国内自拍亚洲视频| 亚洲第一狼人社区| 欧美日韩性生活| 久草这里只有精品视频| www欧美成人18+| 成人a免费在线看| 一区二区三区.www| 7777精品伊人久久久大香线蕉超级流畅 | 国产视频亚洲色图| 不卡一区二区中文字幕| 一区二区三区色| 欧美一级在线视频| 成人午夜视频在线| 有坂深雪av一区二区精品| 欧美精品在线观看一区二区| 久久精品国产一区二区| 中文字幕av不卡| 欧美性生活影院| 精品一区二区三区在线播放 | 日韩精品成人一区二区三区| 精品国产百合女同互慰| 成人免费毛片app| 亚洲国产cao| 亚洲精品在线网站| 一本大道久久a久久精品综合| 视频一区视频二区中文字幕| 久久男人中文字幕资源站| 欧洲一区二区av| 激情小说欧美图片| 又紧又大又爽精品一区二区| 精品国产一区二区三区av性色 | 国产一区二区在线电影| 亚洲免费大片在线观看| 精品久久国产97色综合| 在线一区二区三区四区| 国产精品一区二区你懂的| 亚洲伊人伊色伊影伊综合网 | 日韩欧美一区二区在线视频| 粉嫩aⅴ一区二区三区四区五区| 亚洲午夜精品网| 国产欧美日韩三级| 日韩欧美亚洲一区二区| 日本韩国一区二区三区| 国产suv精品一区二区883| 日产国产欧美视频一区精品| 日韩毛片精品高清免费| 久久这里只有精品6| 欧美一区二区三区免费视频| 一本到不卡精品视频在线观看| 国产尤物一区二区| 日韩成人午夜电影| 亚洲日本一区二区| 欧美激情在线看| 国产亚洲精品资源在线26u| 91精品国产日韩91久久久久久| 91色porny| 成人动漫在线一区| 国产99久久久久| 韩国成人精品a∨在线观看| 午夜精品福利一区二区三区av| 亚洲国产精华液网站w| 精品成人一区二区| 精品乱码亚洲一区二区不卡| 91精品欧美福利在线观看| 欧美日本高清视频在线观看| 欧美性受极品xxxx喷水| 在线欧美日韩精品| 91丨九色丨国产丨porny| 不卡大黄网站免费看| 精品在线亚洲视频| 午夜不卡在线视频| 欧美一区午夜视频在线观看 | 亚洲激情中文1区| 中文一区在线播放| 国产精品国产三级国产专播品爱网| 精品国产三级a在线观看| 精品国产亚洲在线| 亚洲精品在线观看视频| 日韩女同互慰一区二区| 欧美成人aa大片| 精品欧美乱码久久久久久1区2区| 日韩视频免费观看高清完整版| 欧美精品123区| 日韩欧美你懂的| 欧美大片在线观看一区二区| 精品国产123| 日本一区二区视频在线观看| 中文字幕一区二| 亚洲精品视频自拍| 午夜av一区二区| 日本三级韩国三级欧美三级| 国内精品免费**视频| 国产经典欧美精品| 成人网页在线观看| 欧美在线观看视频一区二区| 欧美日韩不卡一区| 精品久久国产97色综合| 国产精品动漫网站| 亚洲超碰精品一区二区| 激情五月播播久久久精品| 大桥未久av一区二区三区中文| 99久久精品国产麻豆演员表| 欧美日韩国产区一| 久久久久国产精品人| 亚洲男同性恋视频| 男女男精品视频| proumb性欧美在线观看| 欧美美女一区二区| 国产日产欧美精品一区二区三区| 国产黄人亚洲片| 91成人免费在线| 久久综合五月天婷婷伊人| 亚洲手机成人高清视频| 麻豆精品国产传媒mv男同| 97久久超碰国产精品| 欧美一级搡bbbb搡bbbb| 国产精品久久久久影院色老大| 亚洲.国产.中文慕字在线| 国产精品91一区二区| 欧美日韩国产三级| 亚洲欧洲美洲综合色网| 老司机午夜精品| 91豆麻精品91久久久久久| 国产视频在线观看一区二区三区| 午夜精品aaa| 波多野结衣精品在线| 日韩亚洲电影在线| 亚洲曰韩产成在线| 国产91精品久久久久久久网曝门| 欧美日韩一级片在线观看| 国产精品久久久久婷婷二区次| 蜜桃av噜噜一区二区三区小说| 99精品久久99久久久久| 久久影音资源网| 看电视剧不卡顿的网站| 日本高清无吗v一区| 久久先锋影音av鲁色资源网| 成人国产精品免费| 调教+趴+乳夹+国产+精品| 日韩精品亚洲专区| 色一情一伦一子一伦一区| 午夜视频在线观看一区二区三区| 国产美女精品人人做人人爽| 宅男噜噜噜66一区二区66| 亚洲免费观看视频| 成人97人人超碰人人99| 久久久综合精品| 韩日av一区二区| 日韩午夜av一区| 免费精品视频在线| 制服丝袜亚洲网站| 亚洲高清免费在线| 欧美少妇性性性| 亚洲成人综合网站| 欧美精选一区二区| 亚洲福利一区二区三区| 欧美在线制服丝袜| 亚洲综合激情另类小说区| 欧美性色欧美a在线播放| 亚洲综合一区二区精品导航| 欧美最猛黑人xxxxx猛交| 一区二区久久久|