In VHDL or Verilog, Can any one let me know how to implement 1) for loop , 2) nested for loop 3) RAM or ROM of desired size , thanking you in aticipation

2 views (last 30 days)
In VHDL/Verilog architecture how to implement 1) for loop , 2) nested for loop, 3) RAM or ROM of desired size
thanking you in advance

Answers (1)

Tim McBrayer
Tim McBrayer on 17 Oct 2013
It seems as if you are asking basic HDL language questions. if so, this is the wrong venue to look for such answers.
If you are referring to VHDL/Verilog code generation from MATLAB or Simulink, and how to generate the named constructs, the answers are all in the documentation. You write for loops directly in your MATLAB code. For a MATLAB based RAM, simply declare a persistent array of the suitable size. For a Simulink RAM, use a RAM block with the desired interface.

Categories

Find more on Loops and Conditional Statements 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!