一:需求分析 1. 問題描述 魔王總是使用自己的一種非常精練而抽象的語言講話,沒人能聽懂,但他的語言是可逐步解釋成人能聽懂的語言,因為他的語言是由以下兩種形式的規(guī)則由人的語言逐步抽象上去的: ----------------------------------------------------------- (1) a---> (B1)(B2)....(Bm) (2)[(op1)(p2)...(pn)]---->[o(pn)][o(p(n-1))].....[o(p1)o] ----------------------------------------------------------- 在這兩種形式中,從左到右均表示解釋.試寫一個魔王語言的解釋系統(tǒng),把 他的話解釋成人能聽得懂的話. 2. 基本要求: 用下述兩條具體規(guī)則和上述規(guī)則形式(2)實現(xiàn).設(shè)大寫字母表示魔王語言的詞匯 小寫字母表示人的語言的詞匯 希臘字母表示可以用大寫字母或小寫字母代換的變量.魔王語言可含人的詞匯. (1) B --> tAdA (2) A --> sae 3. 測試數(shù)據(jù): B(ehnxgz)B 解釋成 tsaedsaeezegexenehetsaedsae若將小寫字母與漢字建立下表所示的對應(yīng)關(guān)系,則魔王說的話是:"天上一只鵝地上一只鵝鵝追鵝趕鵝下鵝蛋鵝恨鵝天上一只鵝地上一只鵝". | t | d | s | a | e | z | g | x | n | h | | 天 | 地 | 上 | 一只| 鵝 | 追 | 趕 | 下 | 蛋 | 恨 |
上傳時間: 2014-12-02
上傳用戶:jkhjkh1982
我們做微機硬件綜合實驗做的一個交通信號燈實時控制系統(tǒng)設(shè)計,很好哦!還附有實驗報告.-A traffic lights real-time control system design of the micro computer hardware experiment.PS:contain the experiment report
上傳時間: 2015-11-17
上傳用戶:924484786
This book is a hands-on introduction to the principles and practice of embedded system design using the PIC microcontroller. Packed with helpful examples and illustrations, it gives an in-depth treatment of microcontroller design, programming in both assembly language and C, and features advanced topics such as networking and real-time operating systems. It is accompanied by a CD-ROM containing copies of all programs and software tools used in the text and a `student version of the C complier Designing Embedded Systems with PIC Microcontrollers: Principles and Applications is ideal for students of electronics, mechatronics and computer engineering. Engineers in industry and informed hobbyists will also find this book a valuable resource when designing and implementing both simple and sophisticated embedded systems using the PIC Microcontroller.
標(biāo)簽: introduction principles hands-on embedded
上傳時間: 2014-01-17
上傳用戶:wuyuying
從結(jié)構(gòu)上來說,實時多任務(wù)操作系統(tǒng)包括兩部分,一部分為操作系統(tǒng)內(nèi)核(kernel),即實時執(zhí)行程序(Real Time Executive:RTX),另一部分是輸入輸出部分(I/O)(注意開發(fā)系統(tǒng)不屬于操作系統(tǒng)的范疇);嵌入式系統(tǒng)對I/O的需求通常比較小(無文件系統(tǒng)需求),因此很多實時多任務(wù)操作系統(tǒng)本質(zhì)上就是一個實時執(zhí)行程序,如AMX(Kadak),VRTX(Microtec),iRMX(Intel)等(這里的X即:eXecutive),如果純粹從kernel的角度來考察目前流行的各種實時多任務(wù)操作系統(tǒng)的性能,它們的效率差別都不大。 在市面上可以得到一些RTX的源代碼(有用C實現(xiàn)的,有用匯編實現(xiàn)的,還有用PL/M語言實現(xiàn)的),從internet上也可以蕩一些下來(我介紹一個站點www.eg3.com,堪稱世界電子工程師資源寶庫),下面我要介紹的一個RTX版本(我命名為SRTX:short RTX),可以說是RTX中的元老級產(chǎn)品了,來自某研究所,九十年代初他們到美國考察,從美國某公司購得。五年以前,SRTX在國內(nèi)有售,許多搞工控的研究所利用SRTX開發(fā)了一些大型或小型的產(chǎn)品,這里介紹的SRTX我作了一些簡化和改動.
標(biāo)簽:
上傳時間: 2015-12-09
上傳用戶:wang5829
In a preemptive priority based RTOS, priority inversion problem is among the major sources of deadline violations. Priority inheritance protocol is one of the approaches to reduce priority inversion. Unfortunately, RTOS like uC/OS can’t support priority inheritance protocol since it does not allow kernel to have multiple tasks at the same priority. Although it has different ways to avoid priority inversion such as priority ceiling protocol, developers still have some difficulties in programming real time applications with it. In this paper, we redesign the uC/OS kernel to provide the ability to support round robin scheduling and implement priority inheritance semaphore on the modified kernel. As result, we port new kernel with priority inheritance semaphore to evaluation board, and evaluate the execution time of each of the kernel service as well as verify the operations of our implementation.
標(biāo)簽: priority preemptive inversion problem
上傳時間: 2015-12-14
上傳用戶:氣溫達(dá)上千萬的
This application report describes the use of Timer_A3 to decode RC5 and SIRC TV IR remote control signals. The decoder described in this report is interrupt-driven and operates a background function using specific features the Timer_A3. Only a small portion of the MSP430 CPU?s nonreal-time resources is used. Specific hardware bit-latching capabilities of the Timer_A3 module are used for real-time decoding of the IR data signal, independent and asynchronous to the CPU. CPU activity and power consumption are kept to an absolute minimum level. The Timer_A3 decoder implementation also allows other tasks to occur simultaneously if required. The solutions provided are written specifically for MSP430x11x(1) and MSP430x12x derivatives, but can be adapted to any other MSP430 incorporating Timer_A3. 電視遙控器設(shè)計基於MSP430
標(biāo)簽: application describes Timer_A control
上傳時間: 2014-01-01
上傳用戶:qq21508895
celestia源代碼,Celestia, a real-time 3D space simulation featuring a database of over 100000 stars, nearly a hundred solar system, objects, and a complete catalog of extrasolar planets.
上傳時間: 2013-12-26
上傳用戶:縹緲
Rao-Blackwellised Particle Filters (RBPFs) are a class of Particle Filters (PFs) that exploit conditional dependencies between parts of the state to estimate. By doing so, RBPFs can improve the estimation quality while also reducing the overall computational load in comparison to original PFs. However, the computational complexity is still too high for many real-time applications. In this paper, we propose a modified RBPF that requires a single Kalman Filter (KF) iteration per input sample. Comparative experiments show that while good convergence can still be obtained, computational efficiency is always drastically increased, making this algorithm an option to consider for real-time implementations.
標(biāo)簽: Particle Filters Rao-Blackwellised exploit
上傳時間: 2016-01-02
上傳用戶:refent
With this foundation, you explore a development model that addresses the complete range of issues in the design of embedded communications software, including real-time operating systems, hardware and software partitioning, layering, and protocol stacks.
標(biāo)簽: development foundation addresses complete
上傳時間: 2016-01-16
上傳用戶:zyt
We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.
標(biāo)簽: represented integers group items
上傳時間: 2016-01-17
上傳用戶:jeffery
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1