Font Size: a A A

Design And Verification Of I2C Bus Controller Based On MCU

Posted on:2021-10-20Degree:MasterType:Thesis
Country:ChinaCandidate:L B LiuFull Text:PDF
GTID:2518306050970289Subject:Master of Engineering
Abstract/Summary:PDF Full Text Request
With the development of the large scale integrated circuit(LSI),a chip level computer called MCU has come into being,on which the central controller,memory module,counter and other interface modules are integrated into a single chip.In fact,the MCU is the computer that boasts of the largest number in the world.Among the electronics in the market,most of them are the ones which have integrated with MCU chips.In recent years,due to the rapid development of the Io T(Internet of things),there has been further development with MCUs in terms of market demand and technical requirements.The I2 C bus is a simple,dual way two-line synchronous serial bus which has been developed by Philips.For the devices which are connected to the bus,only two wires are required for carrying out transmission of information between them.This simple two-wire interface uses a less number of pins.The wide applications in I2 C bus interface in the controllers makes it easy to carry out communications between chips,and therefore the basis for its wide applications has been ensured.The topic of this thesis comes from a project related to MCU of the company where the author has accomplished internship.The main content of this thesis concerns the studies on the I2 C bus controller module in the chip of STM32L0 MCU.In the thesis,firstly the design of the I2 C bus controller was carried out.A detailed study on the content of I2 C protocol was analyzed.Based on the requirements of the project,some new features have been added to the I2 C protocol,including the automatic end mode,the byte reload mode as well as the multi-slave arbitration.According to the function characteristic of the controller,the concrete design frame of the bus controller was designed and the function of each module of the bus controller was studied in detail,and the implementation methods were given.The framework of the whole design was divided into the master clock generation module,the slave clock extension module,the transmit data shift register module,the receive data shift register module,the digital filter module,the register module,the address comparison module and the state machine control module.The generating circuit or realization method of interrupt events in the controller were given in the thesis.The design of I2 C bus controller was accomplished by means of the hardware language Verilog HDL.Then,a verification platform based on the Universal Verification Methodology(UVM)was adopted on the basis of the I2 C bus controller.First,the working mechanism of UVM and the components of the verification platform were introduced.According to the verification plan,the verification function points were extracted and the establishment of the verification platform was completed.On this basis,the test cases were produced and the coverage was analyzed.By checking the simulation waveform of the test cases,and the collected code coverage reached 99.73%.The results showed that the design has implemented the target functions.
Keywords/Search Tags:MCU, I2C, controller, Universal Verification Methodology
PDF Full Text Request
Related items