Please read carefully. The following must be done in Matlab. if you do not know
ID: 3887677 • Letter: P
Question
Please read carefully.
The following must be done in Matlab.
if you do not know the code, do not answer
Problem 4: Estimate the slope or the first order derivative, i.e. f(x) of the function f(x) = 25x3-6x2 + 7-88 at x = 2.0 using the following: (i) Forward difference approximation with a step size h = 0.25. (ii) Backward difference approximation with a step size h 0.25. (iii) Centered difference approximation with a step size h 0.25. For each estimated slope, provide the true percent relative error.e. Which approximation is the most accurate? (iv) Now repeat the central difference approximation, but with a step size of h -0.1. Comparing the results of (ii) and (iv), what do you conclude on the dependence of the step size on accuracy? Box your answers in the printout.Explanation / Answer
2 Design and Verification of Serial Peripheral Interface M.Sandya1 , K.Rajasekhar2 1. Department of E.C.E, Akula Sree Ramulu Engineering College, Tetali 2. H.O.D, Department of E.C.E, Akula Sree Ramulu Engineering College, Tetali Abstract— The objective of this project is to design SPI Master Core using Verilog and verify the code using system verilog. Serial Peripheral Interface (SPI) is an interface that facilitates the transfer of synchronous serial data.SPI (Serial Peripheral Interface) is a synchronous serial data link that operates in full duplex mode. It communicates in master/slave mode where the master device initiates the data frame. Multiple slave devices are allowed with individual slave select line .Serial Peripheral Interface of symmetrical structure can be synthesized using Xilinx 12.3, and then can be simulated using Questa 10.0b. It is a popular interface used for connecting peripherals to each other and to microprocessors. The verification of the project is done using system verilog. Keywords— SPI interface; serial; Verilog HDL; system Verilog I. INTRODUCTION In our days microcontroller embedded systems are widespread in a large area of products from industrial, medical, educational to domestic domains, there are often many modules in the designs. For example, nearly every system includes: some intelligent control, usually a microcontroller core; General-purpose circuits like LCD drivers, remote I/0 ports, RAM, EEPROM, or data converters; Applicationoriented circuits for communication interfaces and/or computation intensive task. So the communication between these modules is very important, in many applications the interface is still the bottleneck of system performance .In such scenario the reuse of intellectual property (IP) macrocells is becoming the center of gravity for design productivity and the key for being able to produce chips that really work. All the integrated components must be connected each other and every SoC must be linked each other in an efficient way that allows a fast and error-free communication .The communication among SoC is the key to grant high performances: the most used solution for interconnecting SoC is a serial bus which presents great advantage in terms of costs .Using few wires to link different devices means few occupied area and consequently minor costs for the producer. A large number of serial protocols are actually used, so if a designer wants to create a SoC that can communicate using various protocols he must equip his system with a large number of interfaces, despite the fact that when the SoC is on the field usually only few of the supported protocols will be used. In this work the design and verification of SPI interface is presented. II. SPI BUS PRINCIPLE SPI is a synchronous serial bus protocol developed by Motorola and integrated in many of their microcontrollers. SPI bus consists of four signals: master out slave in (MOSI), master in slave out (MISO), serial clock (SCLK), and activelow chip select (CS). As a multi-master/slave protocol, communications between the master and selected slave use the unidirectional MISO and MOSI lines, to achieve data rates in full duplex mode. With SPI we can connect as many devices as many pins we have on the main microcontroller. The speed of the communication between ICs is much faster. Full Duplex communication is done using SPI. Figure 1.SPI Block diagram III. DESIGN PRINCIPLES V
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.