ArticleslgStudy

science

C to HDL

C to HDL is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand C to HDL rather than just read about it. In short: C to HDL tools convert C language or C-like source code into a hardware description language (HDL) such as VHDL or Verilog. The converted code can then be synthesized and translated into a hardware device such as a field-programmable gate array.

Key takeaways

  • C to HDL belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect C to HDL to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of C to HDL from memory before moving on to harder problems.

Reference excerpt

C to HDL tools convert C language or C-like source code into a hardware description language (HDL) such as VHDL or Verilog. The converted code can then be synthesized and translated into a hardware device such as a field-programmable gate array. Compared to software, equivalent designs in hardware consume less power (yielding higher performance per watt) and execute faster with lower latency, more parallelism and higher throughput. However, system design and functional verification in a hardware description language can be tedious and time-consuming, so systems engineers often write critical modules in HDL and other modules in a high-level language and synthesize these into HDL through C to HDL or high-level synthesis tools. C to RTL is another name for this methodology. RTL refers to the register transfer level representation of a program necessary to implement it in logic.

History Early development on C to HDL was done by Ian Page, Charles Sweeney and colleagues at Oxford University in the 1990s who developed the Handel-C language. They commercialized their research by forming Embedded Solutions Limited (ESL) in 1999 which was renamed Celoxica in September 2000. In 2008, the embedded systems departments of Celoxica was sold to Catalytic for $3 million and which later merged to become Agility Computing. In January 2009, Mentor Graphics acquired Agility's C synthesis assets. Celoxica continues to trade concentrating on hardware acceleration to process transactions in the financial sector and other industries.

Applications C to HDL techniques are most commonly applied to applications that have unacceptably high execution times on existing general-purpose supercomputer architectures. Examples include bioinformatics, computational fluid dynamics (CFD), financial processing, and oil and gas survey data analysis. Embedded applications requiring high performance or real-time data processing are also an area of use. System-on-chip (SoC) design may also take advantage of C to HDL techniques. C-to-VHDL compilers are very useful for large designs or for implementing code that might change in the future. Designing a large application entirely in HDL may be very difficult and time-consuming; the abstraction of a high level language for such a large application will often reduce total development time. Furthermore, an application coded in HDL will almost certainly be more difficult to modify than one coded in a higher level language. If the designer needs to add new functionality to the application, adding a few lines of C code will almost always be easier than remodeling the equivalent HDL code. Flow to HDL tools have a similar aim, but with flow rather than C-based design.

Example tools SmartHLS (originally LegUp), ANSI C to Verilog tool developed by Microchip Technology, based on LLVM compiler. CBG CtoV A tool developed 1995–99 by DJ Greaves (University of Cambridge) that instantiated RAMs and interpreted various SystemC constructs and datatypes. C-to-Verilog tool (NISC) from University of California, Irvine Altium Designer 6.9 and 7.0 (a.k.a. Summer 08) from Altium Nios II C-to-Hardware Acceleration Compiler from Altera Catapult C tool from Mentor Graphics Cynthesizer from Forte Design Systems SystemC from Celoxica (defunct) Handel-C from Celoxica (defunct) DIME-C from Nallatech Impulse C from Impulse Accelerated Technologies Instant-SoC from FPGA-Cores FpgaC which is an open source initiative SA-C programming language Mitrion-C from Mitrionics SPARK (a C-to-VHDL) from University of California, San Diego VLSI/VHDL CAD Group Index of Useful Tools from Case Western Reserve University MyHDL is a Python-subset compiler and simulator to VHDL and Verilog

See also Comparison of EDA Software Electronic design automation (EDA) High-level synthesis Silicon compiler Hardware acceleration

References

External links A good article on Dr Dobbs Journal about ImpulseC. An overview of flows by Daresbury Labs. An Overview of Hardware Compilation and the Handel-C language. Xilinx's ESL initiative, some products listed and C to VHDL tools. Altium's C-to-Hardware Compiler overview. Altera's Nios II C2H Acceleration Compiler White Paper.

Worked examples

Example 1 — a first encounter with C to HDL

Start with the simplest possible case. Write down what C to HDL claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to C to HDL before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about C to HDL ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of C to HDL

In research
C to HDL appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses C to HDL in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
C to HDL is common in secondary-school and first-year university syllabi. It links to neighbouring topics Hardware acceleration, Hardware description languages, Program transformation, so understanding it makes those chapters shorter.
In everyday life
Look for C to HDL outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “C to HDL” →

How to study C to HDL in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what C to HDL means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain C to HDL out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is C to HDL in simple terms?

C to HDL tools convert C language or C-like source code into a hardware description language (HDL) such as VHDL or Verilog. The converted code can then be synthesized and translated into a hardware device such as a field-programmable gate array.

Why does C to HDL matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study C to HDL?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on C to HDL.

Tags

  • Hardware acceleration
  • Hardware description languages
  • Program transformation

Keep exploring