SpecCharts: A VHDL Front-End for Embedded Systems - PowerPoint PPT Presentation

1 / 15
About This Presentation
Title:

SpecCharts: A VHDL Front-End for Embedded Systems

Description:

Supported with powerful synthesis and verification tools. Embedded Systems ... possess a construct to immediately deactivate a process or procedure upon the ... – PowerPoint PPT presentation

Number of Views:21
Avg rating:3.0/5.0
Slides: 16
Provided by: yeo9
Category:

less

Transcript and Presenter's Notes

Title: SpecCharts: A VHDL Front-End for Embedded Systems


1
SpecCharts A VHDL Front-End for Embedded Systems
2
Motivation
  • VHDL
  • Widely used for hardware description
  • Supported with powerful synthesis and
    verification tools
  • Embedded Systems
  • Functional specification is preferred
  • Specifying embedded systems in VHDL
  • tedious, time-consuming, and error-prone
  • SpecCharts a VHDL front-end for embedded systems

3
Specifying Embedded Systems
  • Derive implementation from an informal
    specification
  • English to gate-level netlist/C code
  • Benefits of a functional specification
  • Functional errors can be identified early in the
    process
  • Facilitates integration with concurrently-designed
    systems
  • Automated estimation and synthesis tools
  • Reduce design time
  • Evaluate alternative implementations
  • Can redesign for another application without
    reverse engr.
  • Isnt VHDL code a functional specification?

4
Embedded Systems
  • yes, but not a good one.
  • Characteristics common to embedded systems
  • Sequential and concurrent behavior decomposition
  • State transitions
  • Exceptions
  • Sequential Algorithms
  • Behavior Completion
  • Support A description language supports a
    characteristic if there is a simple, direct
    mapping of the characteristic to a language
    construct
  • VHDL fully supports sequential decomposition and
    sequential algorithms, but not the rest

5
VHDL Limitations for Embedded Systems
  • Sequential and Concurrent Behavior Decomposition
  • VHDL supports concurrent decomposition of
    top-level functionality using processes, but not
    concurrent decomposition of a process
  • Q and R and forked sub-behaviors of process Main
  • Q, R are not concurrently executed with P, S

6
VHDL Limitations for Embedded Systems
  • State Transitions
  • Loop and case statements
  • Difficult to discern state transitions without
    mentally executing VHDL code

7
VHDL Limitations for Embedded Systems
  • Exceptions
  • VHDL does not possess a construct to immediately
    deactivate a process or procedure upon the
    occurrence of an event
  • Coerce exception handling by polling for the
    exception throughout the behaviors sequential
    statements

8
VHDL Limitations for Embedded Systems
  • Sequential Algorithms
  • Fully supported
  • Behavior Completion
  • Procedure completion supported (return statement)
  • Process completion is not
  • Add a signal which is asserted at the end of a
    process
  • Monitored by other processes
  • Could we do better with another language?

9
Functional Specification Language Comparison
  • Verilog, Esterel support fork/join, behavior
    disable, but not state transitions
  • Communicating Sequential Processes (CSP)
    fork/join, but not state transitions or
    exceptions
  • Statecharts, Argos permits hierarchical/concurren
    t FSM, but not sequential algorithms
  • Specification and Description Language (SDL)
    state transitions inside processes and behavior
    completion, but no exceptions or sequential
    algorithms

10
SpecCharts
  • We can coerce embedded system behavior out of
    VHDL, but
  • May be extremely tedious, time-consuming, and
    error prone
  • Resulting description may be difficult to
    comprehend
  • SpecCharts
  • Introduce Programming State Machines (PSM)
  • Hierarchical/concurrent FSM with programming
    language paradigm
  • Program state is a three-tuple ltdecls, status,
    compgt

11
SpecCharts
  • Compact description in SpecCharts

12
Translation into VHDL
  • Isnt this still just VHDL?
  • VHDL simulators are widely used, fast, and
    reliable
  • VHDL is required documentation for many projects
  • Synthesis and verification tools take VHDL as
    input
  • VHDL translation algorithm is focused on
    readability, simulation efficiency, and
    synthesizability
  • SpecCharts behavior -gt VHDL process
  • Hierarchy is maintained
  • PSM program states each represented by its own
    process
  • Synthesis of SpecCharts
  • Tools assume 1 controller, 1 datapath per process
  • Sequential behaviors should be flattened in
    translation

13
Measuring the Utility of SpecCharts
  • Human Test Subjects
  • Specification Capture
  • Specification Comprehension
  • Specification Quantification
  • Design Quality
  • Translation
  • E.g. Six subjects (three using VHDL, three using
    SpecCharts) given documentation for an existing
    aircraft traffic-alert and collision-avoidance
    system. Subjects took 2.5x time more time to
    specify the system in VHDL, 2/3 VHDL
    specifications contained a major control error,
    and only 1/2 was able to correct that error in
    the allotted time.

14
Measuring the Utility of SpecCharts
  • Specification Comprehension
  • Modelers given VHDL specification took 3x longer
    to understand the general behavior, e.g. What
    happens when the Enable signal goes low, average
    2/14 wrong answers.
  • Specification Quantification
  • SpecCharts specification uses 4x less words than
    even hierarchical VHDL, and 1/2 as many states as
    Statecharts
  • Design Quality
  • Design derived from English/SpecCharts
    specification show little difference in final
    transistor count
  • Translation
  • Simulation of translated SpecCharts code is
    slower than handwritten VHDL, but by less than an
    order of magnitude (550s as compared to 220 and
    250s)

15
Conclusion
  • Existing languages dont support direct
    specification of common embedded system
    characteristics
  • New conceptual computation model, PSM
  • Language based on that model, SpecCharts
  • Built on a popular standard language, VHDL
  • Fits well with current methodologies
  • Can lead to fewer functional errors and easier
    integration of system models
  • Fewer design iterations, fast time-to-market,
    improved product support
Write a Comment
User Comments (0)
About PowerShow.com