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

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

?? dw8051_alu.v

?? DW8051單片機的設計
?? V
?? 第 1 頁 / 共 2 頁
字號:
// $Id: DW8051_alu.v,v 1.1 1996/07/25 17:42:24 gina Exp $//------------------------------------------------------------------------------////        This confidential and proprietary software may be used only//     as authorized by a licensing agreement from Synopsys Inc.//     In the event of publication, the following notice is applicable:////                    (C) COPYRIGHT 1996   SYNOPSYS INC.//                          ALL RIGHTS RESERVED////        The entire notice above must be reproduced on all authorized//        copies.//// FILE: DW8051_alu.v//// AUTHOR: Ludwig Rieder//// ABSTRACT: DW8051 arithmetic logic unit (Verilog version)//// MODIFICATION HISTORY://	L.Rieder	28.05.96	Verilog version created////      Gina Ngo        11.20.96        Fixed star 38722: added header//	Bala Needamangalam//			May 20,98	Converted GTECH instantiations to HDL.//                      July 20,1999    Removed all DesignWare-Foundation //                                      license checkout commands.//------------------------------------------------------------------------------`include "./DW8051/DW8051_package.inc"`include "./DW8051/DW8051_parameter.v"module DW8051_alu (clk,                   a,			// a input                   b,			// b input                   c,			// c input                   ci,			// carry in (CY)                   aci,			// aux carry in (AC)                   ovi,			// overflow in (CY)                   res,			// result                   c_res,		// result from input c                   co,			// carry out (CY)                   aco,			// aux carry out(AC)                   ovo,			// overflow out (OV)                   zero,		// result zero                   equal,		// a=b                   bit_sts,		// status of sel. bit                   bit_pos,		// bit position (bit op)                   alu_op               // alu operation		   );		 input clk; input [7:0] a; input [7:0] b; input [7:0] c; input ci; input aci; input ovi; output [7:0] res; output [7:0] c_res; output co; output aco; output ovo; output zero; output equal; output bit_sts; input [2:0] bit_pos; input [5:0] alu_op;//------------------------------------------------------------------------------//                             DESCRIPTION//------------------------------------------------------------------------------//// alu_op codes://// bit 5 4 3 2 1 0      Operation// ------------------------------------------------//     0 0 0 0 0 0      Transparent//     0 0 0 0 0 1//     0 0 0 0 1 0      CPL//     0 0 0 0 1 1//     0 0 0 1 0 0      DA//     0 0 0 1 0 1//     0 0 0 1 1 0      SWAP//     0 0 0 1 1 1//     0 0 1 0 0 0      CLR//     0 0 1 0 0 1//     0 0 1 0 1 0      ANL//     0 0 1 0 1 1//     0 0 1 1 0 0      ORL//     0 0 1 1 0 1//     0 0 1 1 1 0      XRL//     0 0 1 1 1 1//     0 1 0 0 0 0      INC//     0 1 0 0 0 1      DEC//     0 1 0 0 1 0      CMP//     0 1 0 0 1 1//     0 1 0 1 0 0      ADD//     0 1 0 1 0 1      ADDC//     0 1 0 1 1 0      SUB//     0 1 0 1 1 1      SUBB//     0 1 1 0 0 0      RL//     0 1 1 0 0 1      RLC//     0 1 1 0 1 0      RR//     0 1 1 0 1 1      RRC//     0 1 1 1 0 0      MUL (based on ADD)//     0 1 1 1 0 1//     0 1 1 1 1 0      DIV (based on SUB)//     0 1 1 1 1 1      DIV shift right//     --------------------//     1 x 0 0 0 0      CLR C//     1 x 0 0 0 1      CLR bit//     1 x 0 0 1 0      SETB C//     1 x 0 0 1 1      SETB bit//     1 x 0 1 0 0      CPL C//     1 x 0 1 0 1      CPL bit//     1 x 0 1 1 0      ANL C,bit//     1 x 0 1 1 1      ANL C,/bit//     1 x 1 x 0 0      ORL C,bit//     1 x 1 x 0 1      ORL C,/bit//     1 x 1 x 1 0      MOV C,bit//     1 x 1 x 1 1      MOV bit,C////------------------------------------------------------------------------------wire clk;wire [7:0] a;wire [7:0] b;wire [7:0] c;wire ci;wire aci;wire ovi;wire [2:0] bit_pos;wire [5:0] alu_op;wire [7:0] res;reg [7:0] c_res;wire co;wire aco;wire ovo;wire zero;wire equal;wire bit_sts;//---------------// local signals://---------------wire alu_op0_n; wire [7:0] cpl_res;wire cpl_ac;wire cpl_co;wire cpl_ov; wire [7:0] da_res;wire da_ac;wire da_co;wire da_ov;wire da_greater9_l;wire da_add_06;wire da_add_60;wire da_greater9_h;wire da_12,da_56;wire [7:0] da_add_0;wire [3:0] da_add_1;wire [8:0] da_carry_0;wire [4:0] da_carry_1;wire [7:0] da_add_res_0;wire [3:0] da_add_res_1; wire [7:0] swap_res;wire swap_ac;wire swap_co;wire swap_ov; wire [7:0] clr_res;wire clr_ac;wire clr_co;wire clr_ov; wire [7:0] anl_res;wire anl_ac;wire anl_co;wire anl_ov; wire [7:0] orl_res;wire orl_ac;wire orl_co;wire orl_ov; wire [7:0] xrl_res;wire xrl_ac;wire xrl_co;wire xrl_ov; // wire for adder/subtractor (ADD,ADDC,SUBB):wire as_ci;wire as_carry0;wire [8:0] asid_carry;wire [7:0] as_a;			// a for add, not a for subwire [7:0] as_b;			// B for add, not B for subwire [7:0] asid_a;wire [7:0] asid_b;wire [7:0] asid_res;wire as_ac;wire as_co;wire as_ov; wire [7:0] aeqb;wire [7:0] lt1;wire [7:0] lt2;wire [8:0] lt;wire cmp_ac;wire cmp_co;wire cmp_ov; wire [7:0] mul_res;wire [7:0] mul_c_res;wire mul_ac;wire mul_co;wire mul_ov_l;wire mul_ov_h;wire mul_ov; wire [8:0] div_t_res;wire [7:0] div_res;reg div_res8;wire div_res8_n;wire [7:0] div_c_res;wire div_ac;wire div_co;wire div_ov_l;wire div_ov_h;wire div_ov; wire [7:0] rl_res;wire rl_ac;wire rl_co;wire rl_ov; wire [7:0] rr_res;wire rr_ac;wire rr_co;wire rr_ov; reg [7:0] lo_res;reg [7:0] hi_res;reg lo_ac;reg hi_ac;reg lo_co;reg hi_co;reg lo_ov;reg hi_ov;wire [7:0] arith_res;wire arith_ac;wire arith_ov;wire arith_co; wire bit_pos_0n;wire bit_pos_1n;wire bit_pos_2n;wire [7:0] bit_mask;reg sel_bit;				// selected bitwire mod_bit;				// modified bitreg mod_bit_l;reg mod_bit_h;wire bit_co;reg bit_co_l;reg bit_co_h;wire [7:0] bit_res;			// result of bit op wire clrc_co;wire clrc_bit;wire clrb_co;wire clrb_bit;wire setbc_co;wire setbc_bit;wire setbb_co;wire setbb_bit;wire cplc_co;wire cplc_bit;wire cplb_co;wire cplb_bit;wire anlcb_co;wire anlcb_bit;wire anlcbn_co;wire anlcbn_bit;wire orlcb_co;wire orlcb_bit;wire orlcbn_co;wire orlcbn_bit;wire movcb_co;wire movcb_bit;wire movbc_co;wire movbc_bit; wire [7:0] tmp_res; wire [7:0] bit_co_vector_l;wire [3:0] bit_co_vector_h;wire [7:0] mod_bit_vector_l;wire [3:0] mod_bit_vector_h;wire [7:0] ac_vector_l;wire [7:0] ac_vector_h;wire [7:0] co_vector_l;wire [7:0] co_vector_h;wire [7:0] ov_vector_l;wire [7:0] ov_vector_h;//------------------------------------------------------------------------------// alu_op inversions needed later:assign alu_op0_n = ~alu_op[0];//-----// CPL://-----  assign cpl_res = ~a;  assign  cpl_ac  = aci; // no flags affected:  assign  cpl_co  = ci;  assign  cpl_ov  = ovi;//----// DA://----		// Straight implementation of the DA instruction description		// in the Intel 8051 User's Manual.  assign  {da_carry_0[8],da_add_res_0[7:0]} = 	     ((a[3:0] > 9) || (aci == 1)) ? (a[7:0] + 8'h06) :			                     a[7:0];  assign {da_carry_1[4],da_add_res_1[3:0]} =   	     ((ci == 1) || 	      (da_add_res_0[7:4] > 9) ||	      (da_carry_0[8] == 1)) ? (da_add_res_0[7:4] + 4'h6): 				       da_add_res_0[7:4];  assign  da_res  = {da_add_res_1[3:0], da_add_res_0[3:0]};  // flags: co affected, ac,ov not affected:  assign  da_ac  = aci;  assign da_co = ci | da_carry_0[8] | da_carry_1[4] ;  assign  da_ov  = ovi;//------// SWAP://------  assign swap_res[3:0] = a[7:4];  assign swap_res[7:4] = a[3:0];  // no flags affected:  assign  swap_ac  = aci;  assign  swap_co  = ci;  assign  swap_ov  = ovi;//-----// CLR://-----  assign  clr_res  = 'b0;  // no flags affected:  assign  clr_ac  = aci;  assign  clr_co  = ci;  assign  clr_ov  = ovi;//-----------// ANL (AND)://-----------  assign anl_res = a & b;  // no flags affected:  assign  anl_ac  = aci;  assign  anl_co  = ci;  assign  anl_ov  = ovi;//----------// ORL (OR)://---------- assign orl_res = a | b;  // no flags affected:  assign  orl_ac  = aci;  assign  orl_co  = ci;  assign  orl_ov  = ovi;//-----------// XRL (XOR)://-----------  assign xrl_res = a ^ b;  // no flags affected:  assign  xrl_ac  = aci;  assign  xrl_co  = ci;  assign  xrl_ov  = ovi;//-----------------------------------------// ADD,ADDC,SUBB,INC and DEC is implemented// as a mix of DW01_addsub(rpl) and// DW01_incdec(rpl)://-----------------------------------------  // alu_op(0) determines if addition with/without carry:  assign as_ci = ci & alu_op[0];  // alu_op(1) determines if addition/subtraction:  assign as_carry0 = as_ci ^ alu_op[1];  // if (inc/dec) then asid_carry=1(inc), asid_carry=0(dec)  // else asid_carry=as_carry  assign asid_carry[0] = (alu_op[2]) ? as_carry0 : alu_op0_n;   // ci is active high  // asid_carry is active low  inside carry chain for subtraction  // asid_carry is active high inside carry chain for addition  assign as_a = {alu_op[1],alu_op[1],alu_op[1],alu_op[1],		 alu_op[1],alu_op[1],alu_op[1],alu_op[1]} ^ a ;  assign asid_a = (alu_op[2]) ? as_a : a;  assign asid_b = (alu_op[2] )? b : ({alu_op[0],alu_op[0], 				      alu_op[0],alu_op[0], 				      alu_op[0],alu_op[0], 				      alu_op[0],alu_op[0]});  assign {asid_carry[4],asid_res[3:0]} = asid_a[3:0] + asid_b[3:0] + 					{3'b000,asid_carry[0]};  assign {asid_carry[7],asid_res[6:4]} = asid_a[6:4] + asid_b[6:4] + 					{2'b00,asid_carry[4]};  assign {asid_carry[8],asid_res[7]} = asid_a[7] + asid_b[7] + asid_carry[7];  // flags: ac, co and ov affected  // carry out is always active high:  assign as_ac = asid_carry[4] ^ alu_op[1];  assign as_co = asid_carry[8] ^ alu_op[1];  assign as_ov = asid_carry[7] ^ asid_carry[8];//-----// CMP://-----//  assign lt[0] = 0;  assign aeqb = ~(a ^ b);//  assign lt1 = a | ~b ;//  assign lt2 = ~(aeqb & lt);//  assign lt[8:1] = ~(lt1[7:0] & lt2[7:0]);  // flags: carry affected, ac,ov unchanged  assign  cmp_ac  = aci;//  assign  cmp_co  = lt [8];

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av在线不卡免费看| 日韩一区二区三区免费观看| 国产精品伦一区二区三级视频| 国产精品一级二级三级| 有码一区二区三区| 欧美日韩在线播放三区四区| 成人高清在线视频| 欧美亚洲综合色| 在线播放国产精品二区一二区四区| 成人听书哪个软件好| 亚洲欧美综合另类在线卡通| 日韩欧美电影一二三| 日产精品久久久久久久性色| 亚洲天堂久久久久久久| 51午夜精品国产| 欧美日韩一区二区欧美激情 | 精品国产一区二区三区忘忧草 | 国产自产2019最新不卡| 亚洲一区二区三区四区中文字幕| 亚洲在线一区二区三区| 中文字幕日本不卡| 日韩国产欧美视频| 天天色天天操综合| 精品在线免费观看| 国产激情一区二区三区| 亚洲三级电影全部在线观看高清| 国产精品一区在线观看乱码| 日韩国产在线一| 久久午夜羞羞影院免费观看| av在线不卡网| 欧美最猛黑人xxxxx猛交| 亚洲另类春色国产| 亚洲男人都懂的| 欧美国产一区在线| 欧美日韩一区二区不卡| 欧美日本免费一区二区三区| 国产精品沙发午睡系列990531| 亚洲黄色在线视频| 国产成人在线色| 国产精品女同一区二区三区| 不卡的电视剧免费网站有什么| 成人性生交大合| 色综合色综合色综合| 欧美一二三四在线| 日本韩国精品在线| 国产尤物一区二区在线| 亚洲影院久久精品| www.爱久久.com| 成人免费黄色在线| 337p亚洲精品色噜噜狠狠| 成人午夜视频免费看| 久久99国产精品尤物| 91精品1区2区| 国产精品午夜春色av| 2017欧美狠狠色| 亚洲.国产.中文慕字在线| 久久不见久久见免费视频1| 欧美三级视频在线播放| 中文字幕一区免费在线观看| 久久国产精品色婷婷| 欧美伦理视频网站| 国产精品久久久久aaaa樱花 | 欧美精品v国产精品v日韩精品| 久久精品日产第一区二区三区高清版| 亚洲国产wwwccc36天堂| 欧美亚洲动漫精品| 国产精品你懂的| 99r精品视频| 亚洲一区二区三区视频在线| 国产激情精品久久久第一区二区| 欧美午夜不卡在线观看免费| 欧美国产日韩精品免费观看| 福利一区二区在线| 精品福利在线导航| 国产精品国产三级国产aⅴ中文| 国产91对白在线观看九色| 久久久久久毛片| 国产一区二区在线视频| 欧美日韩亚洲综合一区二区三区| 蜜臀av性久久久久蜜臀aⅴ流畅 | 天天av天天翘天天综合网色鬼国产| 欧美色图在线观看| 99re8在线精品视频免费播放| 美女脱光内衣内裤视频久久网站| 亚洲欧美偷拍三级| 欧美一区二区三区四区高清| jiyouzz国产精品久久| 久久精品国产99| 日韩中文字幕区一区有砖一区| 国产精品私人自拍| 久久久精品中文字幕麻豆发布| 欧美日韩精品是欧美日韩精品| 成人网页在线观看| 成人精品视频一区二区三区尤物| 老鸭窝一区二区久久精品| 国产欧美精品日韩区二区麻豆天美| 91豆麻精品91久久久久久| 欧美三级在线播放| 7777精品伊人久久久大香线蕉| 国产精品自拍三区| 亚洲综合免费观看高清完整版在线| 国产v综合v亚洲欧| 日韩国产在线一| 日本女人一区二区三区| 久久 天天综合| 91精品国产一区二区三区| 美女爽到高潮91| 狠狠色综合日日| 亚洲成人av中文| 久久99精品国产麻豆婷婷| 国产成人av电影在线播放| 99久久精品国产一区| 欧美日本一道本| 国产无人区一区二区三区| 亚洲欧美一区二区久久| 美女精品自拍一二三四| hitomi一区二区三区精品| 欧美精品色综合| 91精品国产欧美一区二区成人| 欧美日本免费一区二区三区| 精品少妇一区二区三区免费观看| 国产亚洲精品bt天堂精选| 亚洲激情中文1区| 国产一区二区视频在线播放| 国产精品99久久久久久久女警| 国产黄色91视频| 欧美日韩日日夜夜| 国产精品久久久久影院老司| 亚洲免费观看高清| 国产一本一道久久香蕉| 欧美久久高跟鞋激| 亚洲免费在线视频| 国产成人免费视| 3atv在线一区二区三区| 亚洲欧洲99久久| 国产成人在线视频网址| 欧美精品一级二级| 一区二区三区高清在线| 高清国产一区二区| 国产欧美日韩视频在线观看| 亚洲国产精品一区二区www在线| 国产精品1024久久| 久久九九影视网| 成人aa视频在线观看| 国产午夜精品一区二区三区视频 | 欧美日韩国产系列| 日韩一级大片在线| 亚洲综合色网站| 精品国产免费久久| 精品国产91久久久久久久妲己 | 日韩欧美另类在线| 一区二区三区四区激情| 国产精品亚洲а∨天堂免在线| 555www色欧美视频| 偷拍与自拍一区| 欧美性感一类影片在线播放| 亚洲欧美一区二区不卡| a级精品国产片在线观看| 欧美极品少妇xxxxⅹ高跟鞋 | 欧美一区二区三区在线观看视频| 亚洲伦理在线免费看| 91蝌蚪porny| 久久99热这里只有精品| 国产视频一区在线观看| 色婷婷综合久久久中文字幕| 亚洲免费观看高清完整版在线| 欧美精品粉嫩高潮一区二区| 青娱乐精品在线视频| 久久久久久久久99精品| 本田岬高潮一区二区三区| 亚洲精品中文在线| 7777精品伊人久久久大香线蕉 | 日韩一区二区三区精品视频| 国内成人精品2018免费看| 国产精品成人网| 日韩亚洲电影在线| 91浏览器入口在线观看| 日本免费在线视频不卡一不卡二| 久久精品免费在线观看| 51精品久久久久久久蜜臀| 成人一区在线看| 久久超碰97人人做人人爱| 日本不卡免费在线视频| 亚洲欧美视频在线观看视频| 亚洲国产另类av| 精品一区二区影视| 日本成人在线视频网站| 日韩欧美中文字幕精品| 99久久精品免费看国产免费软件| 亚洲第一福利一区| 亚洲同性同志一二三专区| 大胆亚洲人体视频| 日韩伦理电影网| 五月天激情小说综合| 国内精品在线播放| 国产精品国产三级国产专播品爱网| 91麻豆产精品久久久久久 | 国产精品一区免费在线观看| 欧美激情一区二区三区在线| 在线观看日韩精品|