Can we convert arbitrary or legacy programs to hardware ? Not very well.
Can we write new C programs that compile to good hardware ? Yes.
Can we use software-style constructs in new C-like languages ? Yes.
Baseline example » DJG C-To-V compiler from 1995. » Bubble Sorter Example
Commercial products available : SystemCrafter, Catapult, SimVision, CoCentric, ... others.
Try out an online demo on your own fragment of C at »C-to-Verilog.com
|22: (C) 2008-13, DJ Greaves, University of Cambridge, Computer Laboratory.|