0
  • 聊天消息
  • 系統(tǒng)消息
  • 評論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

北美ASIC經(jīng)典面試試題

數(shù)字前端ic芯片設(shè)計(jì) ? 來源:未知 ? 作者:鄧佳佳 ? 2018-03-21 15:09 ? 次閱讀

Question:

Come up with logic that counts number of ‘1’s in a 7 bit wide vector.You can only use combinational logic.

Answer:

Following is one of the ways to come up with such logic.

Input vector is 7 bit wide. To sum up 7 bits we need 3 bits of binary encoded output.We’ve full adders available. A single full adder can add 3 input bits and generate 2 bitsof binary encoded output.E.g. a full adder can add 3 bit wide input vector ‘111’ and generate ‘11’ output.We can pick two full adders and add up 6 bits of the input vector and will end up withtwo sets of two bit wide binary encoded data.E.g. if input vector is ‘1100111’, we can assume two full adders adding up first 6bits ‘110011’ where first three bits ‘110’ are input to first adder and ‘011’ are inputto second adder. First adder will output ‘10’ (decimal 2) and second adder will alsooutput ‘10’ (decimal 2), and we need to add up two two bit binary vectors. We canagain employ full adders to do this as we still have to account for the 7th input bit ofthe input vector. That can go into the least significant full adder carry-input.

For the above example :

Input vector ‘1100111’

input ‘110’ => full adder => ‘10’ output

input ‘011’ => full adder => ‘10’ output

10

+10

------

100 => output (4)

Now accounting for the seventh input bit ‘1’ as carry into the least significant adder.

1 <= Carry in.

10

+10

-----

101 => Binary encoded decimal 5 which is the input of 1s in inputvector ‘1100111’.

Full adders can be used to add-up 3 input bits at a time. Outputs of first level of fulladders represent the two bit encoded version of the total ‘1’s count, which we need toadd up get the final two digit encoded version of total ‘1’s. Since we need to add up7 bit inputvector, 7th input vector can be used as ‘Carry In’ in the second level of fulladders.

聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點(diǎn)僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問題,請聯(lián)系本站處理。 舉報(bào)投訴
  • asic
    +關(guān)注

    關(guān)注

    34

    文章

    1175

    瀏覽量

    119988

原文標(biāo)題:北美ASIC經(jīng)典面試試題(2)

文章出處:【微信號:ic_frontend,微信公眾號:數(shù)字前端ic芯片設(shè)計(jì)】歡迎添加關(guān)注!文章轉(zhuǎn)載請注明出處。

收藏 人收藏

    評論

    相關(guān)推薦

    產(chǎn)品申請北美運(yùn)營商AT T認(rèn)證的優(yōu)勢有哪些

    產(chǎn)品進(jìn)入北美市場為什么需要申請AT&T認(rèn)證?產(chǎn)品申請北美運(yùn)營商AT&T認(rèn)證的優(yōu)勢主要體現(xiàn)在哪些方面呢?接下來請看英利檢測的分享,幫助大家了解申請AT&T認(rèn)證的優(yōu)勢。市場準(zhǔn)入
    的頭像 發(fā)表于 09-09 17:11 ?121次閱讀
    產(chǎn)品申請<b class='flag-5'>北美</b>運(yùn)營商AT T認(rèn)證的優(yōu)勢有哪些

    走進(jìn)北美運(yùn)營商認(rèn)證:解讀PTCRB與北美三大運(yùn)營商的關(guān)系

    北美三大運(yùn)營商(AT&T、Verizon、T-Mobile)與PTCRB(PCSTypeCertificationReviewBoard)機(jī)構(gòu)之間存在著緊密的合作關(guān)系和相互依賴關(guān)系。一
    的頭像 發(fā)表于 08-08 17:41 ?304次閱讀
    走進(jìn)<b class='flag-5'>北美</b>運(yùn)營商認(rèn)證:解讀PTCRB與<b class='flag-5'>北美</b>三大運(yùn)營商的關(guān)系

    面試嵌入式工作,會被問什么問題?

    面試嵌入式工作時(shí),面試官可能會從多個(gè)方面考察應(yīng)聘者的知識、技能和經(jīng)驗(yàn)。以下是一些常見的嵌入式工作面試問題,這些問題涵蓋了基礎(chǔ)知識、專業(yè)技能、項(xiàng)目經(jīng)驗(yàn)和個(gè)人能力等方面
    的頭像 發(fā)表于 07-17 09:26 ?1181次閱讀
    <b class='flag-5'>面試</b>嵌入式工作,會被問什么問題?

    產(chǎn)品如何進(jìn)軍北美市場?北美FCC認(rèn)證指南

    在全球化日益深入的今天,企業(yè)若想在國際市場上嶄露頭角,產(chǎn)品認(rèn)證無疑是一道必須邁過的門檻。特別是在北美市場,F(xiàn)CC(FederalCommunicationsCommission,美國聯(lián)邦通信委員會
    的頭像 發(fā)表于 05-24 16:47 ?511次閱讀
    產(chǎn)品如何進(jìn)軍<b class='flag-5'>北美</b>市場?<b class='flag-5'>北美</b>FCC認(rèn)證指南

    平板電腦申請北美FCC認(rèn)證的流程有哪些?

    平板電腦的使用隨著人們的生活習(xí)慣改變逐漸得到普及,在這樣的環(huán)境下也越來越多功能強(qiáng)大的平板電腦不斷免試。那么平板電腦平板電腦申請北美FCC認(rèn)證的流程有哪些?為了使平板電腦在北美地區(qū)銷售,需要通過北美
    的頭像 發(fā)表于 03-06 18:05 ?716次閱讀
    平板電腦申請<b class='flag-5'>北美</b>FCC認(rèn)證的流程有哪些?

    到底什么是ASIC和FPGA?

    ASIC(專用集成電路) GPU的并行算力能力很強(qiáng),但是它也有缺點(diǎn),就是功耗高,體積大,價(jià)格貴。 進(jìn)入21世紀(jì)后,算力需求呈現(xiàn)兩個(gè)顯著趨勢: 一,算力的使用場景,開始細(xì)分; 二,用戶對算力性能
    發(fā)表于 01-23 19:08

    經(jīng)典Linux面試題總結(jié)

    絕對路徑用什么符號表示?當(dāng)前目錄、上層目錄用什么表示?主目錄用什么表示? 切換目錄用什么命令?
    的頭像 發(fā)表于 01-04 11:01 ?298次閱讀

    硬件工程師經(jīng)典面試題詳解

    硬件工程師經(jīng)典面試題詳解
    的頭像 發(fā)表于 11-20 15:08 ?1168次閱讀
    硬件工程師<b class='flag-5'>經(jīng)典</b><b class='flag-5'>面試題</b>詳解

    Feign的超時(shí)時(shí)間如何設(shè)置呢?

    今天來聊一聊前段時(shí)間看到的一個(gè)面試題,也是在實(shí)際項(xiàng)目中需要考慮的一個(gè)問題,F(xiàn)eign 的超時(shí)時(shí)間如何設(shè)置?
    的頭像 發(fā)表于 11-15 10:22 ?1030次閱讀
    Feign的超時(shí)時(shí)間如何設(shè)置呢?

    30道Linux面試題總結(jié)

    如果你是一名開發(fā)人員、系統(tǒng)管理員,或是僅僅對 Linux 感興趣,那么這個(gè)列表是為你準(zhǔn)備的。它包含了類 Unix 系統(tǒng)管理或編程職位面試中涉及 Linux 相關(guān)的所有常見問題。
    發(fā)表于 10-27 15:29 ?1911次閱讀
    30道Linux<b class='flag-5'>面試題</b>總結(jié)

    c語言面試題集(完整版)

    電子發(fā)燒友網(wǎng)站提供《c語言面試題集(完整版).pdf》資料免費(fèi)下載
    發(fā)表于 10-20 11:20 ?2次下載
    c語言<b class='flag-5'>面試題</b>集(完整版)

    mysql經(jīng)典面試題及答案

    char、varchar的區(qū)別是什么? varchar是變長而char的長度是固定的。如果你的內(nèi)容是固定大小的,你會得到更好的性能。
    的頭像 發(fā)表于 10-20 09:47 ?914次閱讀
    mysql<b class='flag-5'>經(jīng)典</b><b class='flag-5'>面試題</b>及答案

    PCB面積總是不夠用?試試這個(gè)方案唄~

    PCB面積總是不夠用?試試這個(gè)方案唄~
    的頭像 發(fā)表于 10-17 15:14 ?818次閱讀
    PCB面積總是不夠用?<b class='flag-5'>試試</b>這個(gè)方案唄~

    異步FIFO相關(guān)面試問題

    又到了一年一度的招聘季節(jié),有粉絲私信問了一個(gè)問題,一個(gè)關(guān)于以前流傳出來的大廠面試的題目,個(gè)人覺得算是比較經(jīng)典的題目,也是工作中經(jīng)常遇到的一個(gè)問題,所以準(zhǔn)備寫一篇回答下。
    的頭像 發(fā)表于 10-01 10:11 ?524次閱讀
    異步FIFO相關(guān)<b class='flag-5'>面試</b>問題

    硬件經(jīng)典面試100題分享

    學(xué)電人員必備;硬件經(jīng)典面試100題;面向電子行業(yè)的面試基礎(chǔ)問題,提前進(jìn)入職業(yè)的大門
    發(fā)表于 09-27 06:23