ECE9047编程设计 写作、 辅导C++语言程序

” ECE9047编程设计 写作、 辅导C++语言程序ECE9047/9407Final ExaminationInstructions: Final examination is take-home and open-book. You may use any printed or electronic resources to completethis exam. There are 5 questions, each is worth 20 marks. Answer every question. This exam paper has 4 pages. You should not collaborate with other students in this class or ask for help from other people. You should upload a digital copy of your completed exam paper to OWL. If OWL fails for some reason, youcan email it to me (jmcleod7@uwo.ca). It is each students responsibility to ensure they Can submit a complete and legible copy of their completedexam paper within the time limit provided. Late submission is accepted, with a penalty of 25% per hour after the deadline. The exam is available on OWL from 9:00 AM on Friday, April 17th until 9:00 PM on Monday, April 20th. Once you access the exam paper, You have 6 hours to complete the examination. If you experience serious technical difficulties, you need to let me know as soon as possible, but there is noguarantee accommodations can, or will, be made. If you have questions during the exam, you should send them to me by email. I will do my best to answerthem quickly, but I cannot make any guarantees (I cant be instantly available for the entire period theexam is open). If I do not answer your question quickly enough, just use your judgment. Always stateyour assumptions in your answer.The exam is available between9:00 AM on Friday, April 17th until 9:00 PM onMonday, April 20thSubmit your exam on OWL 6 hours after accessing it.Exam must be submitted before 9:00 PM Monday11 Short Answer QuestionsAnswer the following question in paragraph form.(a). Describe the differences between a programmable logic controller (PLC), an embedded system, and acomputer. [5 marks](b). Explain the differences between the following lines of assembly code. [5 marks]str r1, [r0], #4str r1, [r0, #4]str r1, [r0, #4]!(c). Describe the difference between a homogeneous and a heterogeneous wireless sensor network (WSN). [5marks](d). Implement the following in one rung of relay ladder logic (RLL). Assume A, B, C, and D are inputs that arenormally open. [5 marks](A and (B or C)) or ((A and B) or D)2 Memory MappingConsider an microprocessor with 64 k of memory space and a 8 bit cell size. We need to design a memory mapwith 192 kb of ROM and 128 kb of RAM. Due to a supply shortage (probably related to the pandemic?), we haveonly the following chips available: One (1) 8 k8 RAM chip, priced at $4.50 each. Two (2) 8 k4 RAM chips, priced at $2.00 each. Six (3) 4 k8 RAM chips, Priced at $3.00 each. Two (2) 8 k8 ROM chips, priced at $2.50 each. Ten (10) 4 k8 ROM chips, priced at $1.50 each.Note that despite the shortage, there are still significantly more chips than needed.(a). [8 marks] Design a suitable memory map for this system. Show the boundaries (in terms of the hexadecimalmemory address) of memory covered by each individual chip. Your drawing does not need to be toscale if you are writing your exam on a computer it may be convenient to use a table or a spreadsheet fordrawing the memory map.(b). [8 marks] Determine the minterms for accessing each individual memory chip required by the microcontrollerscontrol logic.(c). [4 marks] In solving this problem, you made decisions about which chips to use, and where in memoryspace to arrange the RAM and ROM. Briefly explain your choices in regards to typical design considerationslike efficiency, simplicity, cost effectiveness, robustness, user friendliness, etc. (Keep it short, you canuse point form if you wish.)3 Assembly LanguageConsider an ARM CortexA9 on a DE1 SoC. Assume we have a sequence of 100 numbers already stored in memory. The numbers are 10 bits or less, but they are all stored as 32 bit words (i.e., with lots of leading zeros).2 The numbers are stored starting at address 0x00001000. This means that the first number is at 0x00001000,the second is at 0x00001004, etc.(a). Write a program in ARMv7 assembly language to read these values from memory and display them inbinary on the set of 10 LEDs memory mapped to 0xFF200000. You do not need to worry about timing howlong the numbers are displayed. [10 marks](b). Explain how your program works to someone who doesnt know how to read assembly. You may do thisby adding comments to the code, using a flow chart, or writing pseudocode or a paragraph of text. Yourexplanation should include a description of what is stored in the registers at various points in the program(you may use a table for this). If you cant figure out how to actually write the assembly language code forpart (a), then use this section to explain how your program should work. [10 marks]4 Wireless Sensor NetworksThe global pandemic has subsided, And the world breathes a sigh of relief. But Western students returning tocampus realize the nightmare is not yet over: the campus is overrun with hordes of ferocious Canada geese. Adesperate battle to reclaim the university is fought and lost. Most students and faculty have fled, the few thatremain control only a portion of the campus around the engineering buildings.The situation is grim, and morale is low. Students are having difficulty balancing a full load of engineeringcourses with constant battles against deadly bands of Canada geese. To help the situation, you propose to builda WSN to keep track of the geese. The sensor network area is shown in the attached map, the drawing is to scale.Only the area inside the heavy dotted line needs to be monitored outside the boundary the geese have fullcontrol. It may not be possible to monitor the entire area, so the priorities are: A well-monitored path (or paths) between the student residences (Ontario Hall, Perth Hall, Essex Hall,and London Hall) and the engineering buildings. Monitoring the bridge across the river for supply drops and reinforcements. A well-monitored path to nursing and health science for medical treatment.You may assume that all areas inside buildings are always geese free.(a). Design a WSN to monitor for geese and fulfill the above priorities. You have access to the following types ofnodes:Name Cost Sensing Radius Communication Radius LimitationsNode A $125 100 m 150 m Requires external powerNode B $75 50 m 100 m NoneNode C $25 50 m 50 m Requires hubHub $200 none 200 m Requires external powerBecause they require power, type A nodes and hubs must be mounted on the roof of a building. Type Cnodes have no storage, they only work if they can directly communicate with a hub. You have a budget of$2000. This is a public project, so naturally you can overspend the budget if necessary.Draw your WSN as accurately as possible on the provided map. Copies of this map in PNG, PDF, and SVGformats are included as separate files. You may use any one of these to draw the WSN. I do recommend using a vectorgraphics program to digitally draw the WSN, but it is ok to use other methods if you want, including printing it outand drawing by hand. [5 marks](b). Write a paragraph (or two) justifying your design choices in the WSN. You should explain the networktopology and level of homogeneity in the WSN, and discuss reliability, ease of deployment, cost, etc. [10marks](c). Use your best judgment to Estimate the path of maximal breach distance that a goose might follow to gofrom one side of the sensor area to the other. You do not need to make any calculations here, but draw thepath on the provided map (you may draw it on the WSN map yu completed in (a), or use an extra copy ofthe map). Discuss in writing whether or not you think your WSN has a low maximal breach distance, andwhether or not the maximal breach distance is an important parameter for this type of WSN. [5 marks]35 Relay Ladder LogicYou have been hired to program an airport X-ray baggage scanner using PLCs. Here are the design requirements: The baggage conveyor belt can move forwards and backwards, and can be stopped. You need to includeboth the state of the conveyor belt, and the forwards, backwards, and stop buttons. The X-ray scanner can be on or off. Again, you need to include the state of the scanner as well as the on andoff buttons. The X-ray scanner can only be turned on when the belt is moving forwards.(a). Implement this design using relay ladder logic. Either use the notation discussed in class, or provide adescription of your notation. Arbitrary nesting is supported, but vertical contacts are not. [15 marks](b). Discuss whether a PLC, an embedded system, or a full computer is most appropriate for operating anairport X-ray baggage scanner. [5 Marks]请加QQ:99515681 或邮箱:99515681@qq.com WX:codehelp

添加老师微信回复‘’官网 辅导‘’获取专业老师帮助,或点击联系老师1对1在线指导