How to manually convert MATLAB code into Verilog code?
Show older comments
I read on forums but all the answers mention conversion using HDL Coder. Can anyone please tell me how to do the conversions manually or some reference book for the same. Thanks in advance.
Accepted Answer
More Answers (1)
Walter Roberson
on 11 Feb 2017
1 vote
You rewrite the MATLAB into C by hand, and then you use a C to HDL conversion tool; https://en.wikipedia.org/wiki/C_to_HDL
2 Comments
Aniket Jangam
on 11 Feb 2017
Walter Roberson
on 12 Feb 2017
Although ARM was quite successful with hand design in the mid 1980s, you need to know a lot about synthesis and programming in order to do better than optimizing compilers.
Humans find it difficult to plan for concurrency. There is a field of study for concurrency planning with multiple resources (of possibly different classes) to find the best order to execute several tasks simultaneously. But you need to be thinking of that all of the time when you are planning HDL -- need to be worrying about doing as much as possible at the same time without exceeding heat or power budgets and making sure that any data transport lines are not in contention. Compilers do all of that automatically.
You can find some of the scheduling programs at https://www.mathworks.com/matlabcentral/fileexchange/?term=job+scheduling
Categories
Find more on Code Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!