NTU-Exam 板


LINE

课程名称︰数位系统与实验 课程性质︰必修 课程教师︰廖世伟 开课学院:电机资讯学院 开课系所︰资讯工程学系 考试日期(年月日)︰104/5/11 考试时限(分钟):180分钟 试题 : NTU CSIE Digital System and Labs 2015 MIDTERM May 11, 2015 1. (14%) Plot the following functions on a Karnaugh map and convert them into minimum sum of products. a. (4%) f(a,b,c) = Σm(0,1,3,6) b. (4%) g(w,x,y,z) = Σm(3,4,7,10,11,14) + Σd(2,13,15) c. (6%) Find all minimum sum of products expressions F(a,b,c,d) = Σm(0,2,3,7,8,9,13,15) + Σd(1,12) 2. (21%) For the three functions of four variables shown on the maps below a. (7%) Find a minimum cost two-level NAND circuit (where minimum cost is minimum number of gates, and among those with the same number of gates, minimum number of gates inputs). Assume all inputs are available both complemented and uncomplemented (minimum is 10 gates). b. (7%) Implement it with the ROM c. (7%) Implement it with the PLA with eight product terms available (You may use fewer.) http://imgur.com/SaeboLZ 3. the identity of each of the following Boolean equations, using algebraic manipulatoin. a. (3%) (x+y)(x'+y) = y b. (3%) x+y(x+z)+xz = x+yz c. (3%) (xy+z'(s+t'))' = (x'+y)(z+s't) 4. (6%) Simplify the logic diagram below. http://imgur.com/jJsVchZ 5. (12%) In crptography, the term "plaintext" is information a sender wishes to pass to receivers. while the term "ciphertext" is the result of encrypted plaintext. Here we introduce the "XOR cipher" where the ciphertext is generated by plaintext XOR the key: plaintext: 1011 1110 1110 1111 the key: 0110 0110 0110 0110 ──────────────── ciphertext: 1101 1000 1000 1001 Now we define that the 4-bit codes indicate the hexadecimal numbers, from 0000 = 0 to 1111 = F. So the example above encrypts the "BEEF" to "D889" with the key "0110". And if the key were "1101 0011", the ciphertext would be "6D3C". Answer the questions: i) What is the ciphertext if the plaintext is "BABEFACE" with the key "3D"? ii) We have just intercepted the enemy's ciphertext "3310AE86", and we have known that they encrypt the text "C" as "6". Please decrypt the intercepted message. iii) The intelligence agency just indicates that our enemy just changed their encryption method. They ANDand OR plaintext with key, respectively, then XOR these 2 results to generate the ciphertext. According to this rule, what is the plaintext for the question (ii)? 6. (12%) Given the Venn's Diagram as below, each number represents a set, use sum of sets to answer the following questions. For examples: A.B = 4 + 7, A + B = 1 + 2 + 4 + 5 + 6 + 7: http://imgur.com/lwaSsyA i) (ABC)' ii) (A NAND B) NOR C iii) F(A, B, C) = Σm(2, 3, 5, 7) iv) Minterm m_3 of F(A, B, C) v) A ⊕ B ⊕ C vi) A NXOR B NXOR C 7. (10%) Consider a 6-bit division checker D as the following: the first 4-bit indicates dividend, and the rest represents divisor. D returns True (= l) if the dividend is divisible by the divisor; otherwise it returns False 0). By the way, D returns X (don't care) if the divisor is zero. For example: 101010 means "Is 10 divisible by 2?" the answer is true, so D = l. 011000 means "Is 6 divisible by 0?" in this example, D = X due to zero divisor. i) Draw the K-map for D (6%) ii) Write the Boolean expression for D, your answer should include a 1-literal term and a 2-literal term at least (4%) 8. (16%) The following left figure shows 4 to 5 magnitude comparator, which takes 2 binary numbers as input and determine whether the first number is greater than (G), less than (L) the other number by 1 (X), by 2 (Y), orby 3 (Z). We regard inputs as A1A0 and B1B0 in unsigned integers, and assume that 1 means true in output, while 0 means false. For example, if the input is 0110, this comparator should output (0, l, l, 0, 0) since 1 is less than 2 by l. Answer the following questions: http://imgur.com/6iqlgwi i) Under condition the output would be (0, 0, 0, 0, 0), and how many possibilities are there. (2%) ii) Draw the K-maps for G and X (2%) iii) Draw the PLA implementation of this magnitude comparator (4%) iv) Now we combine two magnitude comparators to implement a bigger comparator as the right figure above. Let the function F means A - B = 5. Write the Boolean expression for F using ten outputs above (G2, L2, ..., Z1) only. (4%) http://imgur.com/8DypaKS 9. (Optional A, choose either A or B only) (10%) What is the function of the following circuit diagram? Explain your answer. http://imgur.com/xwwOD6C 9. (Optional B, choose either A or B only) (10%) (Verilog HDL) Take a look at the following Verilog program. a. (3%) Can a Verilog module name start with a number? b. (4%) Does "clk" below need to be declared in the parameter list? c. (3%) Should the module end with "endmodule" or "endmodules"? ┌───────────────────────────────┐ │module 16x16-MAC (out, rst, opl, op2) │ │ │ │input clk, rst; │ │ │ │input [15:0] op1, op2; │ │ │ │output [39:0] out; │ │ │ │reg [31:0] product; op1 * op2; │ │ │ │assign product │ │ │ │//40-bit accumulator after 16x16 multiplier │ │ │ │always @(posedge clk || negedge rst) │ │ │ │ if(rst) out 0; │ │ │ │ else out = out + product; │ │ │ │endmodules │ └───────────────────────────────┘ --



※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 140.112.73.166
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/NTU-Exam/M.1432303310.A.6BC.html ※ 编辑: NTUkobe (140.112.73.166), 05/22/2015 22:11:28
1F:推 rod24574575 : 已收资讯系! 05/22 23:52







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灯, 水草

请输入看板名称,例如:e-shopping站内搜寻

TOP