University of Cincinnati
Methods for Reverse Engineering of RTL Controllers from Look-Up Table Netlists
Abstract
dc:descriptionThe significant growth in the usage of modern Field Programmable Gate Arrays (FPGAs) can be ascribed to several significant attributes. First, FPGA designs have become simpler and the time-to-market has decreased, thanks to the accessibility of complete development tools, libraries, and IP cores. The expanding FPGA ecosystem and the ability to reprogram FPGAs have made them more accessible and adaptable to the changing industry needs. Second, compared to earlier generations, current FPGAs provide better performance, energy efficiency, and higher degrees of integration. Finally, fresh developments in the fields of Artificial Intelligence, Machine Learning, and IoT (Internet of Things) have boosted the need for adaptable and customized digital circuitry. Thus, it is necessary to enhance the security mechanisms on FPGA designs to combat the compromised FPGA bitstreams/malicious third-party IP blocks or to retrieve the golden designs. To counteract these threats, and to retrieve the lost legacy designs, Reverse engineering (RE) becomes a useful tool. FPGA reverse engineering is a complex process that takes bitstream from the memory of a device as input and outputs a human-readable description of that device. The steps involved in between these endpoints are Bitstream extraction, netlist recovery, and high-level netlist representation. The first step, Bitstream extraction involves retrieving the configuration data from an FPGA. The obtained configured bitstream file is then decoded to re-construct FPGA primitives like Look-Up-Tables (LUTs), Flip-Flops, etc. along with the logical routing connections between them. And this extraction describes the second step, netlist recovery and will be called LUT-level netlist in the rest of the thesis. Finally, high-level netlist representation is the process of understanding the overall functionality of the netlist representing it using Hardware Description Language at a higher abstraction level than the LUT-level netlist. This thesis presents a tool flow to extract Finite State Controllers (high-level netlist representation) by identifying control registers and progressively improving the accuracy of register classification in flattened LUT-level FPGA designs. The name of the tool is coined as CRET (Controller Reverse Engineering Tool) A controller consists of one or more Finite State Machines (FSMs) which manage the execution of datapath units. The proposed tool (CRET) flow has two phases. Phase 1 extracts the potential state registers. Phase 2 identifies the state registers and groups FSMs if there is more than one. The main goal of the proposed work is to improve the accuracy of control register identification. Three types of controllers used for experimental evaluation are standalone FSM designs with no datapath units, datapaths with a single FSM, and datapaths with multiple FSMs. Accuracy is observed to be in the range of 96% to 100% in controllers with multiple FSMs, 100% in controllers with a single FSM, and in standalone FSM controller designs. The average accuracy of control register detection over all the real-world designs considered is 98%. To verify the correctness a Verilog writer is used, and a high-level representation of FSM is obtained for the resultant registers after Phase-2. Equivalence Checking is performed on the extracted Verilog with the original design.
Degree
thesis:*- Name thesis:degree_name
- MS
- Level thesis:degree_level
- masters
- Discipline thesis:degree_discipline
- Engineering and Applied Science: Computer Engineering
- Grantor dc:publisher
- University of Cincinnati
- Year dc:date
- 2023
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Muthukumaran, Sundarakumar
- Chair dc:contributor.committeechair
-
- Vemuri, Ranganadha
Subjects
dc:subject × 7Rights
dc:rights- Statement dc:rights
-
- unrestricted
- This thesis or dissertation is protected by copyright: some rights reserved. It is licensed for use under a Creative Commons license. Specific terms and permissions are available from this document's record in the OhioLINK ETD Center.
- Language dc:language
- English
Identifiers
dc:identifier.*- Repository record dc:identifier
- http://rave.ohiolink.edu/etdc/view?acc_num=ucin1692291113586542