音影先锋亚洲天堂网|电影世界尽头的爱完整版播放|国产 熟女 91|高清无码免费观看欧美日韩|韩国一区二区三区黄色录像|美女亚洲加勒比在线|亚洲综合网 开心五月|7x成人在线入口|成人网站免费日韩毛片区|国产黄片?一级?二级?三级

登錄 免費(fèi)注冊 首頁 | 行業(yè)黑名單 | 幫助
維庫電子市場網(wǎng)
技術(shù)交流 | 電路欣賞 | 工控天地 | 數(shù)字廣電 | 通信技術(shù) | 電源技術(shù) | 測控之家 | EMC技術(shù) | ARM技術(shù) | EDA技術(shù) | PCB技術(shù) | 嵌入式系統(tǒng)
驅(qū)動編程 | 集成電路 | 器件替換 | 模擬技術(shù) | 新手園地 | 單 片 機(jī) | DSP技術(shù) | MCU技術(shù) | IC 設(shè)計 | IC 產(chǎn)業(yè) | CAN-bus/DeviceNe

幫我看看這個程序是什么語言寫的?

作者:ivorguo 欄目:EDA技術(shù)
幫我看看這個程序是什么語言寫的?
NAME      Adder;
PARTNO    CA0016;
Date      10/08/85;
Rev       01;
Designer  Woolhiser;
Company   Assisted TECHNOLOGY;
Assembly  None;
Location  None;
DEVICE    G16V8;

/****************************************************************/
/*                                                              */
/* Four bit adder using the CUPL function statement.            */
/*                                                              */
/* 4-bit asynchronous adder implemented as a ripple-carry       */
/* through four adder-slice CIRCUITs.  Each adder-slice         */
/* takes a pair of 1-bit NUMBERs (Xi, Yi) and the carry from    */
/* a previous slice (Cin) and produces their 1-bit sum (Zi)     */
/* and carry (Cout).  Each adder-slice CIRCUIT is defined       */
/* using the CUPL function adder_slice(), which returns         */
/* the PRODUCT directly and the carry as Cout.                  */
/****************************************************************/

/** Inputs **/

Pin [1..4] = [X1..4];           /* First 4-bit NUMBER   */
Pin [5..8] = [Y1..4];           /* Second 4-bit NUMBER  */

/** Outputs **/

Pin [12..15] = [Z1..4];         /* 4-bit sum                    */
Pin [16..18] = [C1..3];         /* Intermediate carry vaules    */
Pin 19 = Carry;                 /* Carry for 4-bit sum          */

/* Adder-slice CIRCUIT - add 2, 1-bit, NUMBERs with carry */

function adder_slice(X, Y, Cin, Cout) {
        Cout    = Cin & X               /* Compute carry */
                # Cin & Y
                # X & Y;
        adder_slice = Cin $ (X $ Y);    /* Compute sum */
}

/* Perform 4, 1-bit, additions and KEEP the final carry */

Z1 = adder_slice(X1, Y1, 'h'0, C1);     /* Initial carry = 'h'0         */
Z2 = adder_slice(X2, Y2,   C1, C2);
Z3 = adder_slice(X3, Y3,   C2, C3);
Z4 = adder_slice(X4, Y4,   C3, Carry);  /* Get final carry VALUE        */


2樓: >>參與討論
whjwhjwhj
細(xì)心點(diǎn)
白癡:
一有問題就問人,看下面這句話,在你程序的前面。
Four bit adder using the CUPL function statement. 

3樓: >>參與討論
whjwhjwhj
你就不知道從網(wǎng)上找找,就知道發(fā)帖子,不勞而或
賭東道

4樓: >>參與討論
wsjc1999
Protel 99SE 自帶的
 
參與討論
昵稱:
討論內(nèi)容:
 
 
相關(guān)帖子
請大人推薦一個50萬門左右的FPGA
這是不是QuartusII5.0的BUG?的圖片2
這是不是QuartusII5.0的BUG?
兩個always之中分別對同一個變量賦值
用Verilog在QuartusII上的仿真問題。
免費(fèi)注冊為維庫電子開發(fā)網(wǎng)會員,參與電子工程師社區(qū)討論,點(diǎn)此進(jìn)入


Copyright © 1998-2006 m.58mhw.cn 浙ICP證030469號