So please read related document such as:SOPC Builder Component Development Walkthrough SOPC Builder Component Development Walkthrough can download from:http://www.altera.com/literature/hb/qts/qts_qii54007.pdf An SOPC Builder component is usually composed of the following four types of files: ■ HDL files—define the component’s functionality as hardware. HDL files—define the component’s functionality as hardware.■ _hw.tcl file—describes the SOPC Builder related characteristics,such as interface behaviors. This file is created by the component editor. _hw.tcl file—describes the SOPC Builder related characteristics,such as interface behaviors. This file is created by the component editor. ■ C-language files—define the component register map and driversoftware to allow programs to control the component. C-language files—define the component register map and driversoftware to allow programs to control the component. ■ _sw.tcl file—used by the software build tools to use and compile thecomponent driver code. The component editor guides you through the creation of your component. You can then instantiate the component in an SOPC Builder system and make connections in the same manner as other SOPC Builder components. You can also share your component with other designers. _sw.tcl file—used by the software build tools to use and compile thecomponent driver code. The component editor guides you through the creation of your component. You can then instantiate the component in an SOPC Builder system and make connections in the same manner as other SOPC Builder components. You can also share your component with other designers. Software drivers abstract hardware details of the component so that software can access the component at a high level. The driver functions provide the software an API to access the hardware. The software requirements vary according to the needs of the component. The most common types of routines initialize the hardware, read data, and write data. When developing software drivers, you should review the software files provided for other ready-made components. The IP installer provides many components you can use as reference. You can also view the <Nios II EDS install path>/components/ directory for examples. Nios II EDS install path>/components/ directory for examples. |