NTU-Exam 板


LINE

課程名稱︰ 數位系統與實驗 課程性質︰ 必修 課程教師︰ 歐陽明 開課學院: 開課系所︰ 資工系 考試日期(年月日)︰2014/04/23 考試時限(分鐘): 180 min 是否需發放獎勵金:是 (如未明確表示,則不予發放) 試題 : 1.(12%) Convert the following Boolean expressions or K-map into Sum of Products with the indicated number of literals. Recall that a literal is either a variable or its negation. (Hint: You may use K-map to speed up the computing) (1) F (A, B, C, D) = Σ(2, 3, 10, 11, 12, 13, 14, 15) (reduce to 4 literals) (2) A'C'+ ABC + AC' (reduce to 3 literals) (3) A'B(D' + C'D) + B(A + A'CD) (reduce to 1 literal) (4) (B' + A)‧(B + C) (5) A ┌─┬─┬─┬─┐ │ 0│ 0│ 0│ 0│ ├─┼─┼─┼─┤ │ 1│ 0│ 0│ 1│ ├─┼─┼─┼─┤D │ 1│ 0│ 0│ 1│ C├─┼─┼─┼─┤ │ 1│ 1│ 1│ 1│ └─┴─┴─┴─┘ B (reduce to 4 literals) (6) A ┌─┬─┬─┬─┐ │ X│ 0│ 0│ 1│ ├─┼─┼─┼─┤ │ 0│ X│ 0│ 1│ ├─┼─┼─┼─┤D │ 0│ 0│ X│ X│ C├─┼─┼─┼─┤ │ 1│ 0│ 0│ X│ └─┴─┴─┴─┘ B (reduce to 4 literals) 2.(10%) Consider the 5-bit binary equation "comparator" : The first 2-bit is input A, the third bit is operator bit C where 0 means "add" while 1 means "subtract", and the last 2-bit is input B. Both A and B are binary signed integer. If the equation occurs overflow (cannot be represented by 2-bit binary signed integer), the ouput K will be 1, otherwise, K will be 0. For example: 11 0 10 = -1 + (-2) = -3 (overflow), output = 1 00 1 11 = 0– (-1) = 1 (safe), output = 0 (1) Draw the K-map for K (2) Write the Boolen expressions for the output K 3.(3%) (1) Demonstrate that a 2-bit NOR gate is a universal logic element. You can do this by showing how they can be used to make: NOR, AND, OR, and XOR gates. (6%) (2) Is an XOR gate a universal logic element? Why or why not? (3%) (3) What about a 2-input NAND gate? Note that each input of the NOR gate must be used, it cannot be left unconnected. 4.(12%) You are a testing assistant in the bulb factory. The factory has just produced 256 new bulbs numbered from 0 to 255 in binary number and needs you to examine them. So you design a series of tests shown as below. If the bulb is checked in some round, the entry of the bulb should be set as 1, or 0 if unchecked. But this list is a waste of paper, the boss ask you to simplify the list to Boolean function. Please satisfy his requirement. ┌──┬─────────────┬─┬─┬──┬─┐ │ No.│Binary number [N7N6...N0] │R0│R1│....│Rn│ ├──┼─────────────┼─┼─┼──┼─┤ │ 0 │ 00000000 │1 │ │ │ │ ├──┼─────────────┼─┼─┼──┼─┤ │ 1 │ 00000001 │1 │ │ │ │ ├──┼─────────────┼─┼─┼──┼─┤ │ 2 │ 00000010 │1 │ │ │ │ ├──┼─────────────┼─┼─┼──┼─┤ │ 3 │ 00000011 │1 │ │ │ │ ├──┼─────────────┼─┼─┼──┼─┤ │ . │ . │. │. │ . │. │ │ . │ . │. │. │ . │. │ ├──┼─────────────┼─┼─┼──┼─┤ │254 │ 11111110 │0 │ │ │ │ ├──┼─────────────┼─┼─┼──┼─┤ │255 │ 11111111 │0 │ │ │ │ └──┴─────────────┴─┴─┴──┴─┘ For instance, you have tested the first 4 bulbs (No.0 ~ No.3) bulbs in Round 0, so you write down the Boolean function as ─ ─ ─ ─ ─ ─ R0 = N7‧N6‧N5‧N4‧N3‧N2 Please finish the rest (as simple as possible): (1) R1 = Test the even numbers (2) R2 = Test the multiples of 8 (3) R3 = Divide the bulbs into quarters. Test the 2nd and the 3rd quarter (4) R4 = Test all except for the last 32 bulbs (5) R5 = Test all except for the multiple of 16 (6) R6 = Test No.129 and No.219 only 5. For a circuit with an inverter and an exclusive or gate, suppose that the exclusive or gate has no time delay: (4%) (1) What the output signal Y will be like with the input signal X? (4%) (2) Why does Y have such relationship with X? (4%) (3) What can the circuit do in real life? http://i.imgur.com/mjyuxqK.png 6.(12%) The following figure shows how the hexadecimal 7-segment display decoder works. DCBA is a 4-bit binary number input, then the decoder will transfer the binary number into segment signal. Assume that 1 is for segment "on" while 0 is segment "off". http://i.imgur.com/0ZoJZRs.png http://i.imgur.com/K2ULjYW.png For instance, if DCBA represent the digit “0”, which means all the segment except for "g" should be on. So the decoder will send (1, 1, 1, 1, 1, 1, 0) to the 7-segment display. Answer the following questions: (1) If this decoder can only display decimal number (0 - 9), how many bits are needed for the input ? (2) If the output is unique, How many bits for the input of 7-segment are valid at most ? (3) Write the truth table for this hexadecimal 7-segment display system (4) Draw the PLA implementation of this decoder in the following template http://i.imgur.com/LizjC27.png 7.(10%) Find a function to detect an error in the representation of a decimal digit in BCD. In other words, write an equation with value 1 when the input are any one of the six unused bit combinations in the BCD code (10, 11, 12, 13, 14, 15), and value 0 otherwise. Please implement it with only NAND gates and inverters. 8.(20%) Optional problem, you can choose either problem A or B below to answer: Problem A: A sequential circuit has two JK flip-flops with state outputs A, B and two input X, Y (Note: inputs to flip-flop A are called JA, JB, while inputs to B are called Jb, KB, circuit output is called Z). The circuit is described by the following input equtions: JA = XA + XY , KA = X'Y, and JB = XA, KB = Y, Z = YB where X' is the compliment of X. (10%) (1) draw the above circuit and derive the state tables, (10%) (2) then draw the state diagram of this circuit. Problem B: (Verilog HDL – Code Debugging) Identify syntax errors and inappropriate code then correct them and explain: 2 pts for each error. ┌───────────────────────────┐ │module 16x16-MAC (out, rst, op1, op2) │ │ │ │input clk, rst; │ │ │ │input [15:0] op1, op2; │ │ │ │output [39:0] out; │ │ │ │reg [31:0] product; │ │ │ │assign product = op1 * op2; │ │ │ │//40-bit accumulator after 16x16 multiplier │ │ │ │always @(posedge clk || negedge rst) │ │ │ │ if(rst) out= 0; │ │ │ │ else out = out + product; │ │ │ │endmodules │ │ │ └───────────────────────────┘ --



※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.112.217.52
※ 文章網址: http://webptt.com/m.aspx?n=bbs/NTU-Exam/M.1402229558.A.49B.html
1F:→ irritum :gate實在是畫不出來,請見諒 (′;ω;‵) 06/08 20:15
※ 編輯: irritum (140.112.217.52), 06/08/2014 22:04:01
2F:→ rod24574575 :已收資訊系! 06/10 00:36







like.gif 您可能會有興趣的文章
icon.png[問題/行為] 貓晚上進房間會不會有憋尿問題
icon.pngRe: [閒聊] 選了錯誤的女孩成為魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一張
icon.png[心得] EMS高領長版毛衣.墨小樓MC1002
icon.png[分享] 丹龍隔熱紙GE55+33+22
icon.png[問題] 清洗洗衣機
icon.png[尋物] 窗台下的空間
icon.png[閒聊] 双極の女神1 木魔爵
icon.png[售車] 新竹 1997 march 1297cc 白色 四門
icon.png[討論] 能從照片感受到攝影者心情嗎
icon.png[狂賀] 賀賀賀賀 賀!島村卯月!總選舉NO.1
icon.png[難過] 羨慕白皮膚的女生
icon.png閱讀文章
icon.png[黑特]
icon.png[問題] SBK S1安裝於安全帽位置
icon.png[分享] 舊woo100絕版開箱!!
icon.pngRe: [無言] 關於小包衛生紙
icon.png[開箱] E5-2683V3 RX480Strix 快睿C1 簡單測試
icon.png[心得] 蒼の海賊龍 地獄 執行者16PT
icon.png[售車] 1999年Virage iO 1.8EXi
icon.png[心得] 挑戰33 LV10 獅子座pt solo
icon.png[閒聊] 手把手教你不被桶之新手主購教學
icon.png[分享] Civic Type R 量產版官方照無預警流出
icon.png[售車] Golf 4 2.0 銀色 自排
icon.png[出售] Graco提籃汽座(有底座)2000元誠可議
icon.png[問題] 請問補牙材質掉了還能再補嗎?(台中半年內
icon.png[問題] 44th 單曲 生寫竟然都給重複的啊啊!
icon.png[心得] 華南紅卡/icash 核卡
icon.png[問題] 拔牙矯正這樣正常嗎
icon.png[贈送] 老莫高業 初業 102年版
icon.png[情報] 三大行動支付 本季掀戰火
icon.png[寶寶] 博客來Amos水蠟筆5/1特價五折
icon.pngRe: [心得] 新鮮人一些面試分享
icon.png[心得] 蒼の海賊龍 地獄 麒麟25PT
icon.pngRe: [閒聊] (君の名は。雷慎入) 君名二創漫畫翻譯
icon.pngRe: [閒聊] OGN中場影片:失蹤人口局 (英文字幕)
icon.png[問題] 台灣大哥大4G訊號差
icon.png[出售] [全國]全新千尋侘草LED燈, 水草

請輸入看板名稱,例如:Soft_Job站內搜尋

TOP