1、嵌入式系统设计师-27 及答案解析(总分:10.01,做题时间:90 分钟)1.若某计算机采用 8 位整数补码表示数据,则运算_将产生溢出。(分数:1.00)A.-127+1B.-127-1C.127+1D.127-12.利用_可以对软件的技术信息、经营信息提供保护。(分数:1.00)A.著作权B.专利权C.商业秘密权D.商标权3.某磁盘磁头从一个磁道移至另一个磁道需要 10ms。文件在磁盘上非连续存放,逻辑上相邻数据块的平均移动距离为 10 个磁道,每块的旋转延迟时间及传输时间分别为 100ms 和 2ms,则读取一个 100 块的文件需要_ms 时间。(分数:1.00)A.10200B.1
2、1000C.11200D.202004.CPT 的分辨率为 10241024 像素,像素的颜色数为 256 色,则刷新存储器的容量是_。(分数:1.00)A.512KBB.1MBC.256KBD.2MB5.某流水线浮点加法器分为五级,若每一级所需要的时间分别是 6 ns、8 ns、5 ns、 7 ns 和 6 ns,则此流水线的最大加速比为_。(分数:1.00)A.2.0B.4.0C.4.5D.5.06.关于计算机性能的评价,下列说法中错误的是_。(分数:1.00)A.微处理器主频高的机器比主频低的机器速度快B.平均指令执行速度(MIPS)能正确反映计算机执行实际程序的速度C.基准程序测试法能
3、比较全面地反映实际运行情况,但各个基准程序测试的重点不一样D.EEMBC 测试基于每秒钟算法执行的次数和编译代码大小的统计结果Pharming is a scamming practice in which malicious code is installed on a personal computer or server, misdirecting users to 7 Web sites without their knowledge or consent. Pharming has been called “phishing without a lure.“ In phishing,
4、 the perpetrator sends out legitimate- 8 E-mails, appearing to come from some of the Web“s most popular sites, in ah effort to obtain personal and financial information from individual recipients. But in pharming, larger numbers of computer users can be 9 because it is not necessary to target indivi
5、duals one by one and no conscious action is required on the part of the victim. In one form of pharming attack, code sent in an E-mail modifies local host files on a personal computer. The host files convert URLs into the number strings that the computer uses to access Web sites. A computer with a c
6、ompromised host file will go to the fake Web site even if a user types in the correct Internet address or clicks on an affected 10 entry. Some spyware removal programs can correct the corruption, but it frequently recurs unless the user changes browsing 11 .(分数:5.00)A.fewB.fraudulentC.normalD.struct
7、uredA.connectingB.bindingC.lookingD.contenttaggingA.victimizedB.personateC.identityD.controlA.hypertextB.computationC.expectationD.bookmarkA.habits signatureB.siteC.tagesD.address阅读以下关于某嵌入式系统设计方案的叙述。 说明 某公司承接了开发周期为 6 个月的某机载嵌入式系统软件的研制任务。该机载嵌入式系统硬件由数据处理模块、大容量模块、信号处理模块、FC 网络交换模块和电源模块组成,如图所示。数据处理模块和大容量模
8、块的处理器为 PowerPC7447,数据处理模块主要对机载数据进行处理,完成数据融合;大容量模块主要存储系统数据,同时也有数据处理的能力;信号处理模块的处理器为专用的数字信号处理器 DSP,完成雷达数据处理,并将处理后的数据发送给数据处理模块;FC 网络交换模块为已开发的模块,本次不需要开发软件,主要负责系统的数据交换;电源模块主要负责给其他模块供电,电源模块上没有软件。 PowerPC7447 和 DSP 是 32 位处理器,内存按字节编址。PowerPC7447 以大端方式( big_endian)存储数据,DSP 以小端方式(little endian)存储数据。 (分数:-0.99)
9、(1).在数据处理模块 1 中,需要使用 A/D 变换器对外部电源模块的电压进行检测。当前数据处理模块中的A/p 变换器为 10 位,当 A/D 变换器的输入模拟电压最大为 5.115V 时,A/D 输出为 3FFH。 通过配置 A/D 变换器的中断寄存器及比较寄存器(比较寄存器的值是用来和 A/D 转换结果进行比较),可以将 A/D 变换器配置为输入电压大于一定值时产生中断,也可以配置为输入电压小于一定值时产生中断,通过此种方式向系统报警。 请回答以下三个问题。 (1)此 A/D 变换器的量化间隔为多少 mV?(量化间隔为 A/D 变换器最低有效位 1 位所代表的模拟电压值) (2)如果规定
10、下限阈值为 4.092V,要使用中断检测这个电压,此时 A/D 变换器的比较寄存器应配置为多少? (3)如果采用查询方式实现电源电压超限报警功能,程序如何判断 A/D 变换器完成了单次数据转换?(分数:-0.33)_(2).李工负责该系统软件的研发。在软件策划过程中,为了加快软件的开发,确保进度,李工将软件分解为若干软件配置项,每个软件配置项指定一人开发。每个配置项的开发过程包括:软件需求分析、软件概要设计、软件详细设计、软件编码、软件单元测试和部件级测试六个阶段。李工的做法符合软件工程的要求吗?为什么?(分数:-0.33)_(3).田工负责编写信号处理模块与数据处理模块的通信程序,约定好的数
11、据组织方式如表所示。 表 网络数据结构 数据域 A(1 字节) 数据域 B(4 字节) 数据域 C(2 字节) 数据域 D(16 字节) 以下是信号处理模块端的一段程序: unsigned int msgid=Ox01;/表示从信号处理模块发送到数据处理模块 2 的消息 ID typedef struct FCSNDData_struct unsigned char A; unsigned int B; unsigned short C; unsigned char D16; FCSND DATA; FCSND_DATA sendData; FillfcData( /接收到的消息 ID typ
12、edef struct FCRCV_Data _struct unsigned char A; unsigned int B; unsigned short C; unsigned char D16; FCRCV_DATA; FCRCV_DATA recvData; recvfc( (msgid,/表示从信号处理模块发送到数据处理模块 2 的消息 ID typedef struct FCSNDData_struct unsigned char A; unsigned int B; unsigned short C; unsigned char D16; FCSND DATA; FCSND_DA
13、TA sendData; FillfcData( /接收到的消息 ID typedef struct FCRCV_Data _struct unsigned char A; unsigned int B; unsigned short C; unsigned char D16; FCRCV_DATA; FCRCV_DATA recvData; recvfc( (msgid,&recvData,sizeof (FCRCV_DATA); /接收数据 请问以上程序是否存在问题?如果存在问题,请分析原因。(分数:-0.33)_正确答案:()解析:有问题。 (1)数据结构定义有边界对齐问题; (2)接收和发送端的处理程序没有对大小端转换进行处理。