Microsemi UG0388 SoC FPGA Demo
Introduction
This demo demonstrates the error detection and correction (EDAC) capabilities of the SmartFusion®2 system-on-chip (SoC) field programmable gate array (FPGA) on the embedded static random-access memory (eSRAM). The EDAC controllers implemented in the SmartFusion2 SoC FPGAs support single error correction and double error detection (SECDED). All memories within the microcontroller subsystem (MSS) of the SmartFusion2 SoC FPGA are protected by SECDED. The eSRAM memory can be eSRAM_0 or eSRAM_1. The address range of eSRAM_0 is 0x20000000 to 0x20007FFF and the address range of eSRAM_1 is 0x20008000 to 0x2000FFFF.
When SECDED is enabled, a write operation computes and adds 8 bits of SECDED code to every 32 bits of data, and a read operation reads and checks the data against the stored SECDED code to support 1-bit error correction and 2-bit error detection.
In this demo, the error detection and corrections can be identified by the blinking light-emitting diode (LED) on the board and by graphical user interface (GUI).
Figure 1. Top Level Block Diagram
The EDAC of eSRAM supports the following features:
- SECDED mechanism
- Provides interrupts to the ARM® Cortex®-M3 processor and FPGA fabric upon the detection of a 1- bit error or 2-bit error.
- Stores the number of 1-bit and 2-bit errors to the error counter registers.
- Stores the address of the last 1-bit or 2-bit error affected memory location.
- Stores 1-bit or 2-bit error data into the SECDED registers.
- Provides error bus signals to the FPGA fabric
Refer to the EDAC chapter of the SmartFusion2 Reliability and Security User Guide and the eSRAM chapter of the SmartFusion2 Cortex-M3 User Guide.
Demo Requirements
Hardware and Software Requirements
The hardware and software required to run the demo are listed in Table 1. Table 1. Demo Requirements
Hardware | Version |
SmartFusion2 Security Evaluation Kit:
|
Rev D or later |
Desktop or Laptop | Windows XP SP2 – 32-bit/64-bit Operating System Windows 7 – 32-bit/64-bit Operating System |
Software | |
Libero® System-on-Chip (SoC) | v11.5 |
FlashPro Programming Software | v11.5 |
Host PC Drivers | USB to UART drivers |
For launching demo GUI | Microsoft .NET Framework 4 client |
Design Files
The design files for this demo can be downloaded from the Microsemi website: http://soc.microsemi.com/download/rsc/?f=m2s_ug0388_liberov11p5_df
Design files include:
- Libero SoC project
- Programming files
- GUI executable
- Readme file
Refer to the readme.txt file provided in the design files for the complete directory structure.
Demo Design Description
Each eSRAM within the MSS is protected by a dedicated EDAC controller. EDAC detects a 1-bit error or 2-bit error when data is read from the memory. If EDAC detects the 1-bit error, the EDAC controller correctsthe same error bit. If EDAC is enabled for all the 1-bit and 2-bit errors, corresponding error counters in thesystem registers are incremented and corresponding interrupts and error bus signals to the FPGA fabric aregenerated.
In a single event upset (SEU) susceptible environment, random access memory (RAM) is prone to transient errors caused by heavy ions. This happens in real-time scenario. To demonstrate this, the error is introduced manually and detection and correction is observed.
This demo design involves the implementation of following tasks:
- Enable EDAC
- Write data to eSRAM
- Read data from eSRAM
- Disable EDAC
- Corrupt one or two bits
- Write data to eSRAM
- Enable EDAC
- Read the data
- In the case of a 1-bit error, the EDAC controller corrects the error, updates the corresponding status registers, and gives the data written in step 2 at the read operation done at step 8.
- In the case of a 2-bit error, a corresponding interrupt is generated and the application must correct thedata or take the appropriate action in the interrupt handler. These two methods are demonstrated in thisdemo.
Two tests are implemented in this demo: loop test and manual test and they are applicable to both 1-bit and 2-bit errors.
Loop Test
This method is executed when the SmartFusion2 SoC FPGA receives a loop test command from the GUI. Initially all the error counters and EDAC related registers are placed in the RESET state.
The following steps are executed for each iteration:
- Enable the EDAC controller.
- Write the data to the specific eSRAM memory location.
- Disable the EDAC controller.
- Write the 1-bit or 2-bit error induced data to the same eSRAM memory location.
- Enable the EDAC controller.
- Read the data from the same eSRAM memory location.
- Send the 1-bit or 2-bit error detection and 1-bit error correction data in case of 1-bit error to the GUI.
Manual Test
This method allows manual testing for enabling/disabling EDAC and write/read operations. Using this method, 1-bit or 2-bit errors can be introduced to any location within the eSRAM. Enable the EDAC and write data to the specified address using the GUI fields. Disable the EDAC and write 1-bit or 2-bit corrupted data to the same address location. Enable the EDAC and read the data from the same address location then the LED on the board must toggle to notify the detection and correction of errors. The corresponding error counter is displayed on to the GUI. The GUI Serial Console will log all the actions performed in the SmartFusion2 SoC FPGA.
Figure 2. shows the eSRAM EDAC demo operations
Running the Demo
This section describes the SmartFusion2 Security Evaluation Kit Board setup, the GUI options, and how to execute the demo design.
Demo Setup
The following steps describe how to setup the demo:
- Connect the FlashPro4 programmer to the J5 connector of SmartFusion2 Security Evaluation Kit
- Connect one end of the USB mini-B cable to the J18 connector provided in the SmartFusion2 Security Evaluation Kit. Connect the other end of the USB cable to the host PC. Ensure that the USB to UART Bridge drivers are automatically detected (can be verified in the Device Manager), as shown in Figure 3.
Note: Copy the COM port number for serial port configuration. Ensure that the COM port Location is specified as ‘on USB Serial Converter D’ as shown in Figure 3. - If USB to UART bridge drivers are not installed, download and install the drivers from www.microsemi.com/soc/documents/CDM_2.08.24_WHQL_Certified.zip
Connect the jumpers on the SmartFusion2 Security Evaluation Kit, as shown in Table 2. The power supply switch SW7 must be switched OFF, while making the jumper connections.
Table 2. SmartFusion2 Security Evaluation Kit Jumper Settings
Jumper | Pin (from) | Pin (to) | Comments |
J22, J23, J24, J8, J3 | 1 (default) | 2 | These are the default jumper settings of the SmartFusion2 Security Evaluation Kit board. Ensure that these jumpers are set accordingly. |
Graphical User Interface
The GUI supports the following features:
- Selection of COM port and Baud Rate.
- Selection of 1-bit error correction tab or 2-bit error detection tab.
- Selection of eSRAM0 or eSRAM1.
- Address field to write or read data to or from specified eSRAM address.
- Data field to write or read data to or from specified eSRAM address.
- Serial Console section to print the status information received from the application.
- EDAC ON/OFF – enables or disables the EDAC.
- Write – allows writing data to the specified address.
- Read – allows reading data from the specified address.
- LOOP test ON/OFF – allows testing the EDAC mechanism in a loop method.
Running the Design
The following steps describe how to run the design:
- Switch ON the supply switch, SW7.
- Program the SmarFusion2 device with the programming file provided in the design files (\ProgrammingFiles\eSRAM_0\EDAC_Demo_eSRAM0.stp or \ProgrammingFiles\eSRAM_1\EDAC_Demo_eSRAM1.stp) using FlashPro design software, as shown in Figure 6.
- Press SW6 switch to reset the board after successful programming.
- Launch the EDAC_eSRAM Demo GUI executable file available in the design files (\GUI Executable\ EDAC_eSRAM.exe). The GUI window is displayed, as shown in Figure 5.
- Select the appropriate COM port (to which USB to UART Bridge drivers are pointed) from the COM Port drop-down list.
- Select the Baud Rate as 57600 and click Connect. After establishing the connection, Connect changes to Disconnect.
- Select eSRAM 0 or eSRAM 1 depending upon the programming file selected in step 2.
- Select the 1-bit Error Correction tab or 2-bit Error Detection tab, as shown in Figure 7. and Figure 8.
- Two types of tests can be performed: Manual and Loop.
Performing Loop Test
Click Loop Test ON. It runs in loop mode where continuous correction and detection of errors is done. The loop runs for 200 iterations. All actions performed in the SmartFusion2 SoC FPGA are logged in the Serial Console section of the GUI. The 2-bit Error Detection loop test prints the error affected eSRAM address offset in Serial Console. Click Loop Test OFF after 200 iterations completed.
Table 3. eSRAM Memory Addresses Used in Loop Test
Memory | 1-bit error correction | 2-bit error detection |
eSRAM0 | 0x20000000 | 0x20002000 |
eSRAM1 | 0x20008000 | 0x2000A000 |
Performing Manual Test
In this method, errors are introduced manually using GUI. Use the following steps to execute 1-bit error correction or 2-bit error detection.
- Input Address and Data fields (use 32-bit Hexadecimal values).
- Click EDAC ON.
- Click Write.
- Click EDAC OFF.
- Just change one bit (in case of 1-bit error correction) or two bits (in case of 2-bit error detection) in Data field (introducing error).
- Click Write.
- Click EDAC ON.
- Click Read.
- Observe Error Count Display and Data field in the GUI. The error count value increases by 1.
All the actions performed in SmartFusion2 SoC FPGA are logged in Serial Console section of GUI.
Note: To switch from 1-bit Error Correction tab to 2-bit Error Detection or vice versa in EDAC_eSRAM Demo GUI, Reset the Hardware Board.
Conclusion
This demo shows SmartFusion2 SECDED capabilities of the eSRAM. The following table shows important changes made in this document for each revision
Revision | Changes | Page |
Revision 6
(February 2015) |
Updated the document for Libero SoC v11.5 software release (SAR 64979). | NA |
Revision 5
(September 2014) |
Updated the document for Libero SoC v11.4 software release (SAR 60476). | NA |
Revision 4
(May 2014) |
Updated the document for Libero SoC v11.3 software release (SAR 56852). | NA |
Revision 3
(November 2013) |
Updated the document for Libero SoC v11.2 software release (SAR 52960). | NA |
Revision 2
(May 2013) |
Updated the document for Libero SoC v11.0 software release (SAR 47858). | NA |
Revision 1
(March 2013) |
Updated the document for Libero SoC v11.0 Beta SP1 (SAR 45586). | NA |
Note: The revision number is located in the part number after the hyphen. The part number is displayed at the bottom of the last page of the document. The digits following the slash indicate the month and year of publication. |
Product Support
Microsemi SoC Products Group backs its products with various support services, including Customer Service, Customer Technical Support Center, a website, electronic mail, and worldwide sales offices. This appendix contains information about contacting Microsemi SoC Products Group and using these support services.
Customer Service
Contact Customer Service for non-technical product support, such as product pricing, product upgrades, update information, order status, and authorization.
From North America, call 800.262.1060 From the rest of the world, call 650.318.4460 Fax, from anywhere in the world 408.643.6913
Customer Technical Support Center
Microsemi SoC Products Group staffs its Customer Technical Support Center with highly skilled engineers who can help answer your hardware, software, and design questions about Microsemi SoC Products. The Customer Technical Support Center spends a great deal of time creating application notes, answers to common design cycle questions, documentation of known issues and various FAQs. So, before you contact us, please visit our online resources. It is very likely we have already answered your questions.
- Technical Support
For Microsemi SoC Products Support, visit http://www.microsemi.com/products/fpga-soc/designsupport/fpga-soc-support - Website
You can browse a variety of technical and non-technical information on the Microsemi SoC Products Group home page, at http://www.microsemi.com/soc/ - Contacting the Customer Technical Support Center
Highly skilled engineers staff the Technical Support Center. The Technical Support Center can be contacted by email or through the Microsemi SoC Products Group website. - Email
You can communicate your technical questions to our email address and receive answers back by email, fax, or phone. Also, if you have design problems, you can email your design files to receive assistance. We constantly monitor the email account throughout the day. When sending your request to us, please be sure to include your full name, company name, and your contact information for efficient processing of your request.
The technical support email address is soc_tech@microsemi.com - My Cases
Microsemi SoC Products Group customers may submit and track technical cases online by going to My Cases.
Outside the U.S.
Customers needing assistance outside the US time zones can either contact technical support via email soc_tech@microsemi.com or contact a local sales office. Sales office listings can be found at www.microsemi.com/soc/company/contact/default.aspx
ITAR Technical Support
For technical support on RH and RT FPGAs that are regulated by International Traffic in Arms Regulations (ITAR), contact us via soc_tech_itar@microsemi.com Alternatively, within My Cases, select Yes in the ITAR drop-down list. For a complete list of ITAR-regulated Microsemi FPGAs, visit the ITAR web page
- Microsemi Corporation (Nasdaq: MSCC) offers a comprehensive portfolio of semiconductor and system solutions for communications, defense & security, aerospace and industrial markets. Products include high-performance and radiation-hardened analog mixed-signal integrated circuits, FPGAs, SoCs and ASICs; power management products; timing and synchronization devices and precise time solutions, setting the world’s standard for time; voice processing devices; RF solutions; discrete components; security technologies and scalable anti-tamper products; Power-over-Ethernet ICs and midspans; as well as custom design capabilities and services. Microsemi is headquartered in Aliso Viejo, Calif., and has approximately 3,400 employees globally. Learn more at www.microsemi.com
- Microsemi makes no warranty, representation, or guarantee regarding the information contained herein or the suitability of its products and services for any particular purpose, nor does Microsemi assume any liability whatsoever arising out of the application or use of any product or circuit. The products sold hereunder and any other products sold by Microsemi have been subject to limited testing and should not be used in conjunction with mission-critical equipment or applications. Any performance specifications are believed to be reliable but are not verified, and Buyer must conduct and complete all performance and other testing of the products, alone and together with, or installed in, any end-products. Buyer shall not rely on any data and performance specifications or parameters provided by Microsemi. It is the Buyer’s responsibility to independently determine suitability of any products and to test and verify the same. The information provided by Microsemi hereunder is provided “as is, where is” and with all faults, and the entire risk associated with such information is entirely with the Buyer. Microsemi does not grant, explicitly or implicitly, to any party any patent rights, licenses, or any other IP rights, whether with regard to such information itself or anything described by such information. Information provided in this document is proprietary to Microsemi, and Microsemi reserves the right to make any changes to the information in this document or to any products and services at any time without notice.
Microsemi Corporate Headquarters One Enterprise, Aliso Viejo,
CA 92656 USA
Within the USA: +1 800-713-4113 Outside the USA: +1 949-380-6100 Sales: +1 949-380-6136
Fax: +1 949-215-4996
E-mail: sales.support@microsemi.com
© 2015 Microsemi Corporation. All rights reserved. Microsemi and the Microsemi logo are trademarks of Microsemi Corporation. All other trademarks and service marks are the property of their respective owners.
Documents / Resources
![]() |
Microsemi UG0388 SoC FPGA Demo [pdf] User Guide UG0388 SoC FPGA Demo, UG0388, SoC FPGA Demo, FPGA Demo |