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

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

?? oc8051_op_select.v

?? 8051 IP核VERILOG代碼
?? V
字號:
//////////////////////////////////////////////////////////////////////
////                                                              ////
////  8051 instruction select                                     ////
////                                                              ////
////  This file is part of the 8051 cores project                 ////
////  http://www.opencores.org/cores/8051/                        ////
////                                                              ////
////  Description                                                 ////
////   module that stops current program and insert long call     ////
////   in case of interrupt                                       ////
////                                                              ////
////  To Do:                                                      ////
////   nothing                                                    ////
////                                                              ////
////  Author(s):                                                  ////
////      - Simon Teran, simont@opencores.org                     ////
////                                                              ////
//////////////////////////////////////////////////////////////////////
////                                                              ////
//// Copyright (C) 2000 Authors and 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                     ////
////                                                              ////
//////////////////////////////////////////////////////////////////////
//
// ver: 1
//


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

`include "oc8051_defines.v"


module oc8051_op_select (clk, int, , rd, pc, int_v, op1, op2, op3, op1_out, op2_out, op2_direct, op3_out);
// clk          clock
// int          interrupt
// int_v        interrupt vector (low byte)
// op1, op2, op3 input from rom (instruction bytes)
// op1_out      byte 1 output
// op2_out      byte 2 output
// op2_direct   byte 2 output (used for direct addressing)
// op3_out      byte 3 output
// rd           read from rom
// pc           pc input (used for some instructions to calculate next address)


input clk, int, rd; input [7:0] op1, op2, op3, int_v, pc;
output [7:0] op1_out, op3_out, op2_out, op2_direct;

reg int_ack;
reg [7:0] op2_out, op2_direct;
reg [7:0] op1_buff, op2_buff, op3_buff;
reg [7:0] op1_o, op2_o, op3_o;

wire [7:0] op2_tmp;

//
// assigning outputs
// case rd = 1'b0 don't change output
assign op1_out = rd ? op1_o : op1_buff;
assign op3_out = rd ? op3_o : op3_buff;
assign op2_tmp = rd ? op2_o : op2_buff;

//
// in case of interrupts
always @(op1 or op2 or op3 or int_ack or int_v) begin
  if (int_ack) begin
    op1_o = `OC8051_LCALL;
    op2_o = 8'h00;
    op3_o = int_v;
  end else begin
    op1_o = op1;
    op2_o = op2;
    op3_o = op3;
  end
end

//
// remember inputs
always @(posedge clk)
begin
  op1_buff <= #1 op1_o;
  op2_buff <= #1 op2_o;
  op3_buff <= #1 op3_o;
end

//
// remember interrupt
// we don't want to interrupt instruction in the middle of execution
always @(posedge clk)
 if (int) int_ack <= #1 1'b1;
 else int_ack <= #1 1'b0;


//
// in some instructions we need pc instead byte 2
always @(op1_out or op2_tmp or pc)
begin
  casex (op1_out)
    `OC8051_CJNE_R : op2_out = pc;
    `OC8051_CJNE_I : op2_out = pc;
    `OC8051_CJNE_D : op2_out = pc;
    `OC8051_CJNE_C : op2_out = pc;
    `OC8051_DJNZ_R : op2_out = pc;
    `OC8051_DJNZ_D : op2_out = pc;
    `OC8051_JB : op2_out = pc;
    `OC8051_JBC: op2_out = pc;
    `OC8051_JC: op2_out = pc;
    `OC8051_JNC : op2_out = pc;
    `OC8051_JNB : op2_out = pc;
    `OC8051_JNZ : op2_out = pc;
    `OC8051_JZ : op2_out = pc;
    `OC8051_SJMP : op2_out = pc;
    `OC8051_MOVC_PC : op2_out = pc;
    default: op2_out = op2_tmp;
  endcase
end


//
// some instructions write to known addresses
always @(op1_out or op2_tmp)
begin
  if ((op1_out==`OC8051_MOV_DP) | (op1_out==`OC8051_INC_DP) | (op1_out==`OC8051_JMP) | (op1_out==`OC8051_MOVC_DP))
    op2_direct  = `OC8051_SFR_DPTR_LO;
  else if ((op1_out==`OC8051_MUL) | (op1_out == `OC8051_DIV))
    op2_direct  = `OC8051_SFR_B;
  else op2_direct  = op2_tmp;
end


endmodule

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲综合在线电影| 亚洲国产精品精华液网站| 亚洲欧美韩国综合色| 免费成人av在线| 91美女福利视频| 久久久亚洲国产美女国产盗摄 | 日韩三级av在线播放| 日韩一区欧美小说| 国产在线精品一区二区| 欧美精品乱人伦久久久久久| 国产精品无人区| 蜜桃精品在线观看| 欧美日韩精品一区二区天天拍小说| 久久久精品国产免费观看同学| 五月激情综合婷婷| 色综合久久天天综合网| 亚洲视频图片小说| 韩日精品视频一区| 日韩一区二区精品葵司在线| 亚洲一区二区三区美女| 99久久免费视频.com| 日本一区二区三区免费乱视频| 蜜桃久久精品一区二区| 欧美一区二区在线观看| 天天av天天翘天天综合网色鬼国产 | 日韩美女精品在线| 成人午夜激情在线| 中文字幕精品一区二区三区精品| 久久精品国产色蜜蜜麻豆| 7777精品伊人久久久大香线蕉完整版 | 国产91在线|亚洲| 国产亚洲欧美日韩在线一区| 久久99九九99精品| 精品999在线播放| 国产精品原创巨作av| 久久精品亚洲乱码伦伦中文| 国产精品91一区二区| 国产日韩欧美a| hitomi一区二区三区精品| ...av二区三区久久精品| 91免费观看在线| 精品国产一区二区精华| 一级女性全黄久久生活片免费| 成人高清免费观看| 国产精品人成在线观看免费| 成人av在线一区二区三区| 国产精品国产三级国产三级人妇| 成人激情免费视频| 亚洲欧美二区三区| 欧美视频中文一区二区三区在线观看| 亚洲精品免费在线播放| 99久久精品一区| 国产精品欧美一级免费| 国产成人在线免费观看| 国产欧美一区二区三区鸳鸯浴| 日本v片在线高清不卡在线观看| 精品福利二区三区| 成人动漫一区二区在线| 亚洲国产精品自拍| 日韩欧美你懂的| 成人免费视频视频| 国产尤物一区二区在线| 精品噜噜噜噜久久久久久久久试看| 国产乱淫av一区二区三区| 亚洲日本一区二区| 91精品国产福利| 成人福利在线看| 日韩国产精品久久| 亚洲欧洲国产日韩| 91精品国产一区二区人妖| 国产·精品毛片| 日韩专区欧美专区| 国产精品高潮呻吟| 91麻豆精品国产91久久久使用方法 | 国产成人精品www牛牛影视| 亚洲欧美偷拍三级| 精品人在线二区三区| 色婷婷av一区| 国产综合色在线| 亚洲成人资源网| 久久嫩草精品久久久久| 国产经典欧美精品| 自拍偷自拍亚洲精品播放| 欧美无人高清视频在线观看| 国产精品主播直播| 天天色图综合网| 亚洲免费高清视频在线| 精品国产凹凸成av人导航| 欧美日韩aaaaaa| 91小视频免费观看| 丰满亚洲少妇av| 蜜桃传媒麻豆第一区在线观看| 亚洲免费av在线| 欧美国产综合色视频| 精品久久国产字幕高潮| 欧美嫩在线观看| 色婷婷精品久久二区二区蜜臀av| 国产成人h网站| 国产乱码精品一区二区三区五月婷 | 久久99精品久久只有精品| 一级特黄大欧美久久久| 中文字幕在线一区| 26uuu久久天堂性欧美| 欧美一区二区三区在| 欧美三级日韩三级国产三级| 色诱亚洲精品久久久久久| 国产iv一区二区三区| 国产伦精品一区二区三区免费迷 | 国产一区二区导航在线播放| 蜜臀av性久久久久蜜臀aⅴ四虎| 亚洲电影视频在线| 亚洲国产日产av| 夜夜亚洲天天久久| 亚洲精品菠萝久久久久久久| 亚洲人成人一区二区在线观看 | 91精品国产入口在线| 欧美色窝79yyyycom| 欧美在线free| 欧美日韩一级片在线观看| 在线国产电影不卡| 欧美日韩中文字幕一区| 欧美人牲a欧美精品| 国产精品色眯眯| 精品日本一线二线三线不卡| 欧美日韩国产影片| 欧美人牲a欧美精品| 91精品国产免费| 欧美mv和日韩mv国产网站| 欧美tickling挠脚心丨vk| 久久久精品黄色| 国产精品国产三级国产三级人妇| 亚洲精品网站在线观看| 亚洲国产cao| 精品在线观看免费| 成人性生交大片免费看在线播放| 91小视频在线免费看| 欧美日韩美女一区二区| 欧美v国产在线一区二区三区| 精品三级在线看| 国产精品国产三级国产aⅴ中文| 亚洲欧美一区二区久久| 日本一区中文字幕 | 欧美电影免费观看高清完整版在| 亚洲精品一线二线三线无人区| 亚洲国产精品99久久久久久久久 | 成人av资源站| 99在线精品一区二区三区| 91视频你懂的| 日韩一区二区影院| 中文一区一区三区高中清不卡| 亚洲婷婷在线视频| 亚洲成av人片在线观看无码| 韩国一区二区三区| 在线影院国内精品| 欧美成人video| 亚洲欧美激情视频在线观看一区二区三区 | 亚洲丝袜另类动漫二区| 午夜精品免费在线观看| 国产呦萝稀缺另类资源| 欧美亚洲国产一区在线观看网站 | 国产精品视频看| 亚洲国产精品久久久男人的天堂| 久久99久久久久| 97久久精品人人爽人人爽蜜臀| 欧美电影在哪看比较好| 国产精品久久久久永久免费观看| 日韩专区在线视频| 91欧美一区二区| 久久综合资源网| 日韩精品电影在线| 一本一道综合狠狠老| 久久久久久毛片| 婷婷亚洲久悠悠色悠在线播放| 福利一区二区在线观看| 欧美乱熟臀69xxxxxx| 国产精品你懂的在线| 久久精品国产秦先生| 欧美三片在线视频观看| 成人欧美一区二区三区黑人麻豆 | 国产高清成人在线| 欧美一级黄色录像| 亚洲成在线观看| 色视频一区二区| 日韩理论片一区二区| 风间由美性色一区二区三区| 色婷婷综合久久久久中文一区二区| 在线播放91灌醉迷j高跟美女| 国产精品成人网| 国产成人自拍网| 日韩欧美一级二级三级| 天堂av在线一区| 91官网在线免费观看| 亚洲欧美日韩国产综合| 不卡的av在线| 国产精品久久久久精k8| av亚洲产国偷v产偷v自拍| 久久精子c满五个校花| 国产老妇另类xxxxx| 久久久久久久久久美女| 国产成人av电影在线|