SlideShare a Scribd company logo
1 of 5
Source Code Error Detection in High-Level Synthesis
Functional Verification
Abstract:
A dynamic functional verification method that compares untimed simulations versus timed
simulations for synthesizable [high-level synthesis (HLS)] behavioral descriptions (ANSI-C) is
presented in this paper. This paper proposes a method that automatically inserts a set of probes
into the untimed behavioral description. These probes record the status of internal signals of the
behavioral description during an initial untimed simulation. These simulation results are
subsequently used as golden outputs for the verification of the internal signals during a timed
simulation once the behavioral description has been synthesized using HLS. Our proposed
method reports any simulation mismatches and accurately pinpoints any discrepancies between
the functional Software (SW) simulation and the timed simulation at the original behavioral
description (source code). Our method does not only determine where to place the probes, but is
also able to insert different type of probes based on the specified HLS synthesis options in order
not to interfere with the HLS process, minimizing the total number of probes and the size of the
data to be stored in the trace file in order to minimize the running time. Results show that our
proposed method is very effective and extremely simple to use as it is fully automated using
Xilinx 14.2.
Enhancement of the project:
Existing System:
RAISING the level of abstraction in VLSI design has some distinct advantages over traditional
register-transfer level (RTL) design methods. First, most of the designs start with a high-level
model in order to validate the application to be implemented. High-level synthesis (HLS)
provides a direct path between these models and RTL. It has been shown [1] that one line of C-
code translates into 7โ€“10ร— more gates than RTL. This further implies that behavioral descriptions
are easier to maintain and debug, and that fewer bugs will be introduced by designers. Second, in
many cases, the design specifications are unstable and any changes in them can lead to major
architectural changes (e.g., the use of on-die memory or external memory). At the RTL, this
requires major redesigns, while at the behavioral level; these changes can be tackled easier.
Third, raising the level of abstraction allows software and hardware designers to speak the same
language. Applications to be implemented in custom hardware are getting extremely complex
and are based on complex mathematical models that in many cases are difficult to understand by
the hardware designer. Using the same behavioral description language allows both hardware
and software designers to communicate at the same level of abstraction using the same language.
Some examples of complex applications include dedicated hardware security engines based on
complex encryption and decryption algorithms.
Disadvantages:
๏‚ท Performance is low
Proposed System:
Our proposed verification method takes as inputs a behavioral description in ANSI-C and the
untimed test vectors used for the SW verification. Fig. 1 shows an overview of the complete
flow. It comprises of four main steps. An alternative initial preprocessing step is also part of the
flow. This preprocessing step parses the given behavioral description and performs typical
compiler optimizations (e.g., dead code elimination and constant propagations). The output of
this preprocessing step is the optimized behavioral description called ANSI-C optimized (ANSI-
CO). The advantages of executing this initial step are obvious. Our method cannot automatically,
e.g., detect dead code, which means that it would insert probes to visualize parts of the code,
which are not needed. The drawback of executing this preprocessing step is that the optimized C
code is automatically generated by the HLS tool parser and is, therefore, not as readable as the
original C code written by the designer. Moreover, the errors detected by our method will
consequently point to the ANSI-CO code and not to the original code (ANSI-C).
Fig. 1. Proposed verification flowchart.
Probe Insertion
One of the main contributions of this paper is to determine how and where to insert the probes
shown in Fig. 2 and also the type of probe. A naรฏve method inserts a probe whenever an internal
signal is being written to. This approach guarantees that the EDL is minimized at the expense of
having to record and compare a very large number or probes. The number of probes inserted is
important in order to exactly locate where the mismatch between the original behavioral
descriptionโ€™s behavior and the synthesized descriptions happen. In order to determine the quality
of the error detection mechanism, we define the term SCED.
Fig. 2. Probes insertion overview
Observations
At this point, some observations should be made. First, most HLS tools perform automatic
bitwidth optimization. This means that the final bitwidth of the internal signals is not known
when the probes are inserted and hence the probesโ€™ bitwidth will be larger or equal to the internal
signalsโ€™ bitwidth after HLS. Two cases should be considered.
1) The HLS tool also adjusts the output port bitwidth automatically and hence there is
nothing to be done.
2) Our method checks if the internal signal is signed or unsigned and inserts a type cast at
the assignment, e.g., probe = (signed) internal_signal or probe = (unsigned)
internal_signal.
FIR filter:
HLS tools can very easily create these signals because they know in which particular state the
inputs are read and in which states the outputs are generated. Fig. 3 shows an example of valid
signals. Fig. 3(a) shows the block diagram of a finite-impulse response (FIR) filter with its data
and coefficient ports and the data out port. Fig. 3(b) shows the valid signals generated
automatically by the HLS tool in order to assert when an input signal is needed and when a valid
output is generated. This simple, but extremely effective method combined with testbenches,
which monitor these signals to apply and to compare test vectors, allows a very effective way to
reuse untimed input and output test vectors for timing verification. The last step in the HLS
verification flow is the verification of the final RTL generated by the HLS. For this purpose, an
RTL testbench generator that can again reuse the untimed original input test patterns and
compare the generated outputs with the original untimed golden outputs is normally provided in
commercial HLS flows. These different models generators combined with the RTL testbench
generator allow designs to be effectively verified at different HLS design stages.
Fig. 3. (a) Regular FIR filter. (b) FIR filter with valid signals for DEC.
Fig. 3 shows an example of this effect. The figure shows a FIR filter described in ANSI-C and a
probe inserted after the sum-of-products (SoPs) computation. In this case, the SoP result is
written to the output port SoP_out in order to make this internal signal visible to the outside. Fig.
4(a) and (b) shows two of the most common ways to synthesize the FIR. Fig. 4(a) shows part of
the synthesis result if the loop is fully unrolled, whereas Fig. 4(b) shows the result if the loop is
not unrolled.
Fig. 4. Motivational FIR example. Synthesis scheduling results. (a) Loop fully unrolled. (b) Loop
not unrolled.
Advantages:
๏‚ท Performance is high
Software implementation:
๏‚ท Modelsim
๏‚ท Xilinx ISE

More Related Content

Viewers also liked

Letter_Of_Recommendation
Letter_Of_RecommendationLetter_Of_Recommendation
Letter_Of_Recommendation
Patrick Montayre
ย 
Diapositivas
DiapositivasDiapositivas
Diapositivas
aytara
ย 
InovaรงรตEs AgrรญColas E Aumento Da Produtividade
InovaรงรตEs AgrรญColas E Aumento Da ProdutividadeInovaรงรตEs AgrรญColas E Aumento Da Produtividade
InovaรงรตEs AgrรญColas E Aumento Da Produtividade
crie_historia8
ย 
Impรฉrio romano blogue
Impรฉrio romano blogueImpรฉrio romano blogue
Impรฉrio romano blogue
Vรญtor Santos
ย 
FILOSOFIA DAS LUZES
FILOSOFIA DAS LUZESFILOSOFIA DAS LUZES
FILOSOFIA DAS LUZES
cattonia
ย 
Revoluรงรฃo francesa mรณdulo 7
Revoluรงรฃo francesa  mรณdulo 7Revoluรงรฃo francesa  mรณdulo 7
Revoluรงรฃo francesa mรณdulo 7
Carla Teixeira
ย 
Renascimento cultural 3
Renascimento cultural 3Renascimento cultural 3
Renascimento cultural 3
Carla Teixeira
ย 
O maneirismo1
O maneirismo1O maneirismo1
O maneirismo1
Carla Teixeira
ย 

Viewers also liked (14)

Material de conteo para niรฑos sordos
Material de conteo para niรฑos sordosMaterial de conteo para niรฑos sordos
Material de conteo para niรฑos sordos
ย 
Letter_Of_Recommendation
Letter_Of_RecommendationLetter_Of_Recommendation
Letter_Of_Recommendation
ย 
Diapositivas
DiapositivasDiapositivas
Diapositivas
ย 
Revista Fundaรงรฃo Cascais - Julho 2001
Revista Fundaรงรฃo Cascais - Julho 2001Revista Fundaรงรฃo Cascais - Julho 2001
Revista Fundaรงรฃo Cascais - Julho 2001
ย 
SIOR MICHIGAN - LUNCHEON PRESENTATIOn
SIOR MICHIGAN - LUNCHEON PRESENTATIOnSIOR MICHIGAN - LUNCHEON PRESENTATIOn
SIOR MICHIGAN - LUNCHEON PRESENTATIOn
ย 
Barroco slides
Barroco slidesBarroco slides
Barroco slides
ย 
InovaรงรตEs AgrรญColas E Aumento Da Produtividade
InovaรงรตEs AgrรญColas E Aumento Da ProdutividadeInovaรงรตEs AgrรญColas E Aumento Da Produtividade
InovaรงรตEs AgrรญColas E Aumento Da Produtividade
ย 
Oracle EPM Cloud for Midsize Customers
Oracle EPM Cloud for Midsize CustomersOracle EPM Cloud for Midsize Customers
Oracle EPM Cloud for Midsize Customers
ย 
Impรฉrio romano blogue
Impรฉrio romano blogueImpรฉrio romano blogue
Impรฉrio romano blogue
ย 
FILOSOFIA DAS LUZES
FILOSOFIA DAS LUZESFILOSOFIA DAS LUZES
FILOSOFIA DAS LUZES
ย 
Revoluรงรฃo francesa mรณdulo 7
Revoluรงรฃo francesa  mรณdulo 7Revoluรงรฃo francesa  mรณdulo 7
Revoluรงรฃo francesa mรณdulo 7
ย 
Renascimento cultural 3
Renascimento cultural 3Renascimento cultural 3
Renascimento cultural 3
ย 
O maneirismo1
O maneirismo1O maneirismo1
O maneirismo1
ย 
Os Lusรญadas - Reflexรตes do Poeta
Os Lusรญadas - Reflexรตes do PoetaOs Lusรญadas - Reflexรตes do Poeta
Os Lusรญadas - Reflexรตes do Poeta
ย 

More from Nexgen Technology

More from Nexgen Technology (20)

MECHANICAL PROJECTS IN PONDICHERRY, 2020-21 MECHANICAL PROJECTS IN CHE...
    MECHANICAL PROJECTS IN PONDICHERRY,   2020-21  MECHANICAL PROJECTS IN CHE...    MECHANICAL PROJECTS IN PONDICHERRY,   2020-21  MECHANICAL PROJECTS IN CHE...
MECHANICAL PROJECTS IN PONDICHERRY, 2020-21 MECHANICAL PROJECTS IN CHE...
ย 
MECHANICAL PROJECTS IN PONDICHERRY, 2020-21 MECHANICAL PROJECTS IN CHE...
    MECHANICAL PROJECTS IN PONDICHERRY,   2020-21  MECHANICAL PROJECTS IN CHE...    MECHANICAL PROJECTS IN PONDICHERRY,   2020-21  MECHANICAL PROJECTS IN CHE...
MECHANICAL PROJECTS IN PONDICHERRY, 2020-21 MECHANICAL PROJECTS IN CHE...
ย 
MECHANICAL PROJECTS IN PONDICHERRY, 2020-21 MECHANICAL PROJECTS IN CHE...
    MECHANICAL PROJECTS IN PONDICHERRY,   2020-21  MECHANICAL PROJECTS IN CHE...    MECHANICAL PROJECTS IN PONDICHERRY,   2020-21  MECHANICAL PROJECTS IN CHE...
MECHANICAL PROJECTS IN PONDICHERRY, 2020-21 MECHANICAL PROJECTS IN CHE...
ย 
MECHANICAL PROJECTS IN PONDICHERRY, 2020-21 MECHANICAL PROJECTS IN CHE...
    MECHANICAL PROJECTS IN PONDICHERRY,   2020-21  MECHANICAL PROJECTS IN CHE...    MECHANICAL PROJECTS IN PONDICHERRY,   2020-21  MECHANICAL PROJECTS IN CHE...
MECHANICAL PROJECTS IN PONDICHERRY, 2020-21 MECHANICAL PROJECTS IN CHE...
ย 
MECHANICAL PROJECTS IN PONDICHERRY, 2020-21 MECHANICAL PROJECTS IN CHE...
    MECHANICAL PROJECTS IN PONDICHERRY,   2020-21  MECHANICAL PROJECTS IN CHE...    MECHANICAL PROJECTS IN PONDICHERRY,   2020-21  MECHANICAL PROJECTS IN CHE...
MECHANICAL PROJECTS IN PONDICHERRY, 2020-21 MECHANICAL PROJECTS IN CHE...
ย 
MECHANICAL PROJECTS IN PONDICHERRY, 2020-21 MECHANICAL PROJECTS IN CHE...
    MECHANICAL PROJECTS IN PONDICHERRY,   2020-21  MECHANICAL PROJECTS IN CHE...    MECHANICAL PROJECTS IN PONDICHERRY,   2020-21  MECHANICAL PROJECTS IN CHE...
MECHANICAL PROJECTS IN PONDICHERRY, 2020-21 MECHANICAL PROJECTS IN CHE...
ย 
MECHANICAL PROJECTS IN PONDICHERRY, 2020-21 MECHANICAL PROJECTS IN CH...
     MECHANICAL PROJECTS IN PONDICHERRY,   2020-21  MECHANICAL PROJECTS IN CH...     MECHANICAL PROJECTS IN PONDICHERRY,   2020-21  MECHANICAL PROJECTS IN CH...
MECHANICAL PROJECTS IN PONDICHERRY, 2020-21 MECHANICAL PROJECTS IN CH...
ย 
MECHANICAL PROJECTS IN PONDICHERRY, 2020-21 MECHANICAL PROJECTS IN CHENN...
  MECHANICAL PROJECTS IN PONDICHERRY,   2020-21  MECHANICAL PROJECTS IN CHENN...  MECHANICAL PROJECTS IN PONDICHERRY,   2020-21  MECHANICAL PROJECTS IN CHENN...
MECHANICAL PROJECTS IN PONDICHERRY, 2020-21 MECHANICAL PROJECTS IN CHENN...
ย 
MECHANICAL PROJECTS IN PONDICHERRY, 2020-21 MECHANICAL PROJECTS IN CHE...
    MECHANICAL PROJECTS IN PONDICHERRY,   2020-21  MECHANICAL PROJECTS IN CHE...    MECHANICAL PROJECTS IN PONDICHERRY,   2020-21  MECHANICAL PROJECTS IN CHE...
MECHANICAL PROJECTS IN PONDICHERRY, 2020-21 MECHANICAL PROJECTS IN CHE...
ย 
MECHANICAL PROJECTS IN PONDICHERRY, 2020-21 MECHANICAL PROJECTS IN CHE...
    MECHANICAL PROJECTS IN PONDICHERRY,   2020-21  MECHANICAL PROJECTS IN CHE...    MECHANICAL PROJECTS IN PONDICHERRY,   2020-21  MECHANICAL PROJECTS IN CHE...
MECHANICAL PROJECTS IN PONDICHERRY, 2020-21 MECHANICAL PROJECTS IN CHE...
ย 
MECHANICAL PROJECTS IN PONDICHERRY, 2020-21 MECHANICAL PROJECTS IN CHENNA...
 MECHANICAL PROJECTS IN PONDICHERRY,   2020-21  MECHANICAL PROJECTS IN CHENNA... MECHANICAL PROJECTS IN PONDICHERRY,   2020-21  MECHANICAL PROJECTS IN CHENNA...
MECHANICAL PROJECTS IN PONDICHERRY, 2020-21 MECHANICAL PROJECTS IN CHENNA...
ย 
Ieee 2020 21 vlsi projects in pondicherry,ieee vlsi projects in chennai
Ieee 2020 21 vlsi projects in pondicherry,ieee  vlsi projects  in chennaiIeee 2020 21 vlsi projects in pondicherry,ieee  vlsi projects  in chennai
Ieee 2020 21 vlsi projects in pondicherry,ieee vlsi projects in chennai
ย 
Ieee 2020 21 power electronics in pondicherry,Ieee 2020 21 power electronics
Ieee 2020 21 power electronics in pondicherry,Ieee 2020 21 power electronics Ieee 2020 21 power electronics in pondicherry,Ieee 2020 21 power electronics
Ieee 2020 21 power electronics in pondicherry,Ieee 2020 21 power electronics
ย 
Ieee 2020 -21 ns2 in pondicherry, Ieee 2020 -21 ns2 projects,best project cen...
Ieee 2020 -21 ns2 in pondicherry, Ieee 2020 -21 ns2 projects,best project cen...Ieee 2020 -21 ns2 in pondicherry, Ieee 2020 -21 ns2 projects,best project cen...
Ieee 2020 -21 ns2 in pondicherry, Ieee 2020 -21 ns2 projects,best project cen...
ย 
Ieee 2020 21 ns2 in pondicherry,best project center in pondicherry,final year...
Ieee 2020 21 ns2 in pondicherry,best project center in pondicherry,final year...Ieee 2020 21 ns2 in pondicherry,best project center in pondicherry,final year...
Ieee 2020 21 ns2 in pondicherry,best project center in pondicherry,final year...
ย 
Ieee 2020 21 java dotnet in pondicherry,final year projects in pondicherry,pr...
Ieee 2020 21 java dotnet in pondicherry,final year projects in pondicherry,pr...Ieee 2020 21 java dotnet in pondicherry,final year projects in pondicherry,pr...
Ieee 2020 21 java dotnet in pondicherry,final year projects in pondicherry,pr...
ย 
Ieee 2020 21 iot in pondicherry,final year projects in pondicherry,project ce...
Ieee 2020 21 iot in pondicherry,final year projects in pondicherry,project ce...Ieee 2020 21 iot in pondicherry,final year projects in pondicherry,project ce...
Ieee 2020 21 iot in pondicherry,final year projects in pondicherry,project ce...
ย 
Ieee 2020 21 blockchain in pondicherry,final year projects in pondicherry,bes...
Ieee 2020 21 blockchain in pondicherry,final year projects in pondicherry,bes...Ieee 2020 21 blockchain in pondicherry,final year projects in pondicherry,bes...
Ieee 2020 21 blockchain in pondicherry,final year projects in pondicherry,bes...
ย 
Ieee 2020 -21 bigdata in pondicherry,project center in pondicherry,best proje...
Ieee 2020 -21 bigdata in pondicherry,project center in pondicherry,best proje...Ieee 2020 -21 bigdata in pondicherry,project center in pondicherry,best proje...
Ieee 2020 -21 bigdata in pondicherry,project center in pondicherry,best proje...
ย 
Ieee 2020 21 embedded in pondicherry,final year projects in pondicherry,best...
Ieee 2020 21  embedded in pondicherry,final year projects in pondicherry,best...Ieee 2020 21  embedded in pondicherry,final year projects in pondicherry,best...
Ieee 2020 21 embedded in pondicherry,final year projects in pondicherry,best...
ย 

Recently uploaded

VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
SUHANI PANDEY
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
ย 
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 

Recently uploaded (20)

Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
ย 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
ย 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
ย 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
ย 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
ย 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
ย 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
ย 
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar  โ‰ผ๐Ÿ” Delhi door step de...
Call Now โ‰ฝ 9953056974 โ‰ผ๐Ÿ” Call Girls In New Ashok Nagar โ‰ผ๐Ÿ” Delhi door step de...
ย 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
ย 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
ย 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
ย 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
ย 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
ย 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
ย 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
ย 
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
ย 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
ย 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
ย 
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
ย 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
ย 

Source code error detection in high level synthesis functional verification

  • 1. Source Code Error Detection in High-Level Synthesis Functional Verification Abstract: A dynamic functional verification method that compares untimed simulations versus timed simulations for synthesizable [high-level synthesis (HLS)] behavioral descriptions (ANSI-C) is presented in this paper. This paper proposes a method that automatically inserts a set of probes into the untimed behavioral description. These probes record the status of internal signals of the behavioral description during an initial untimed simulation. These simulation results are subsequently used as golden outputs for the verification of the internal signals during a timed simulation once the behavioral description has been synthesized using HLS. Our proposed method reports any simulation mismatches and accurately pinpoints any discrepancies between the functional Software (SW) simulation and the timed simulation at the original behavioral description (source code). Our method does not only determine where to place the probes, but is also able to insert different type of probes based on the specified HLS synthesis options in order not to interfere with the HLS process, minimizing the total number of probes and the size of the data to be stored in the trace file in order to minimize the running time. Results show that our proposed method is very effective and extremely simple to use as it is fully automated using Xilinx 14.2. Enhancement of the project: Existing System: RAISING the level of abstraction in VLSI design has some distinct advantages over traditional register-transfer level (RTL) design methods. First, most of the designs start with a high-level model in order to validate the application to be implemented. High-level synthesis (HLS) provides a direct path between these models and RTL. It has been shown [1] that one line of C- code translates into 7โ€“10ร— more gates than RTL. This further implies that behavioral descriptions are easier to maintain and debug, and that fewer bugs will be introduced by designers. Second, in many cases, the design specifications are unstable and any changes in them can lead to major architectural changes (e.g., the use of on-die memory or external memory). At the RTL, this requires major redesigns, while at the behavioral level; these changes can be tackled easier. Third, raising the level of abstraction allows software and hardware designers to speak the same language. Applications to be implemented in custom hardware are getting extremely complex and are based on complex mathematical models that in many cases are difficult to understand by the hardware designer. Using the same behavioral description language allows both hardware and software designers to communicate at the same level of abstraction using the same language.
  • 2. Some examples of complex applications include dedicated hardware security engines based on complex encryption and decryption algorithms. Disadvantages: ๏‚ท Performance is low Proposed System: Our proposed verification method takes as inputs a behavioral description in ANSI-C and the untimed test vectors used for the SW verification. Fig. 1 shows an overview of the complete flow. It comprises of four main steps. An alternative initial preprocessing step is also part of the flow. This preprocessing step parses the given behavioral description and performs typical compiler optimizations (e.g., dead code elimination and constant propagations). The output of this preprocessing step is the optimized behavioral description called ANSI-C optimized (ANSI- CO). The advantages of executing this initial step are obvious. Our method cannot automatically, e.g., detect dead code, which means that it would insert probes to visualize parts of the code, which are not needed. The drawback of executing this preprocessing step is that the optimized C code is automatically generated by the HLS tool parser and is, therefore, not as readable as the original C code written by the designer. Moreover, the errors detected by our method will consequently point to the ANSI-CO code and not to the original code (ANSI-C). Fig. 1. Proposed verification flowchart.
  • 3. Probe Insertion One of the main contributions of this paper is to determine how and where to insert the probes shown in Fig. 2 and also the type of probe. A naรฏve method inserts a probe whenever an internal signal is being written to. This approach guarantees that the EDL is minimized at the expense of having to record and compare a very large number or probes. The number of probes inserted is important in order to exactly locate where the mismatch between the original behavioral descriptionโ€™s behavior and the synthesized descriptions happen. In order to determine the quality of the error detection mechanism, we define the term SCED. Fig. 2. Probes insertion overview Observations At this point, some observations should be made. First, most HLS tools perform automatic bitwidth optimization. This means that the final bitwidth of the internal signals is not known when the probes are inserted and hence the probesโ€™ bitwidth will be larger or equal to the internal signalsโ€™ bitwidth after HLS. Two cases should be considered. 1) The HLS tool also adjusts the output port bitwidth automatically and hence there is nothing to be done. 2) Our method checks if the internal signal is signed or unsigned and inserts a type cast at the assignment, e.g., probe = (signed) internal_signal or probe = (unsigned) internal_signal.
  • 4. FIR filter: HLS tools can very easily create these signals because they know in which particular state the inputs are read and in which states the outputs are generated. Fig. 3 shows an example of valid signals. Fig. 3(a) shows the block diagram of a finite-impulse response (FIR) filter with its data and coefficient ports and the data out port. Fig. 3(b) shows the valid signals generated automatically by the HLS tool in order to assert when an input signal is needed and when a valid output is generated. This simple, but extremely effective method combined with testbenches, which monitor these signals to apply and to compare test vectors, allows a very effective way to reuse untimed input and output test vectors for timing verification. The last step in the HLS verification flow is the verification of the final RTL generated by the HLS. For this purpose, an RTL testbench generator that can again reuse the untimed original input test patterns and compare the generated outputs with the original untimed golden outputs is normally provided in commercial HLS flows. These different models generators combined with the RTL testbench generator allow designs to be effectively verified at different HLS design stages. Fig. 3. (a) Regular FIR filter. (b) FIR filter with valid signals for DEC. Fig. 3 shows an example of this effect. The figure shows a FIR filter described in ANSI-C and a probe inserted after the sum-of-products (SoPs) computation. In this case, the SoP result is written to the output port SoP_out in order to make this internal signal visible to the outside. Fig. 4(a) and (b) shows two of the most common ways to synthesize the FIR. Fig. 4(a) shows part of the synthesis result if the loop is fully unrolled, whereas Fig. 4(b) shows the result if the loop is not unrolled.
  • 5. Fig. 4. Motivational FIR example. Synthesis scheduling results. (a) Loop fully unrolled. (b) Loop not unrolled. Advantages: ๏‚ท Performance is high Software implementation: ๏‚ท Modelsim ๏‚ท Xilinx ISE