Design and Implementation of a Lexical Analyzer for the System-Level Hardware Description Language SpecC
Chenghua Duan · Computer Engineering and Science · 2008
As the complexity of hardware systems increases,it is necessary to describe the hardware system at a higher level named system level to simplify the software-hardware codesign.The system-level hardware description language SpecC was proposed to describe the design of hardware systems.The SpecC lexical analyzer is the basic module of the SpecC synthesizer,and its efficiency is one of the most important factors that affect the efficiency of the SpecC synthesizer.In this paper,we present a SpecC lexical analyzer implemented under the Linux operating system.The lexical analyzer is called SpecC_Lexer.It can correctly preprocess and analyze the SpecC source file and produce error reports on lexical errors which exist in the source file.