Re: Finding the execution time



a_Conan wrote:

Ok, Patric can you tell me how can I do
for i in 1 to M loop--start from the second row
for k in 0 to (N - i) loop
Matrix_out(i, k) := Matrix_in(i, i + k);
end loop;
for k in 0 to (i - 1) loop
Matrix_out(i, N - k) := Matrix_in(i, i - k - 1);
end loop; end loop;


in RAM to make it synthesizable ?

1st of all: Get knowledge about flipflops, combinational logic and latches. Make yourself familiar with the concept of a state machine - especially a synthesizable state machine in VHDL.


2nd: Think about a data path, on which such an algorithm may be implemented. You need a state machine and inside some states you connect some blocks (registers, arithmetic units...) together. Everything step-by-step, controlled by a state machine.


VHDL may be used like a programming language, but only for simulation purpose. If you want to model real hardware you have to think hardware.


Ralf
.



Relevant Pages

  • Re: microcontroller programming -- how to begin
    ... Do they have a main loop and a state machine? ... to stringing a bunch of switches in series/parallel strings. ... seems to be similar to putting together a bunch of relays. ... I would write a big event loop and make a case statement based on my ...
    (sci.electronics.design)
  • Re: Independently controlling four random AI-triggered output
    ... Ron, ... state machine architecture.  A state machine uses a while loop on ... need to constantly start and stop and recreate tasks.  ... You'll notice in this example that there is a while loop that simply ...
    (comp.lang.labview)
  • Re: finite state machine
    ... state machine to code that no longer looks like a finite state machine ... The switch statement will switch on the state and ... Then you have loop just like in the first ... function pointers, and you call the function you get out of the table. ...
    (comp.programming)
  • Re: How to implement State Machine
    ... you put two kind of state machine one inside of the other. ... you will be able to controle the elapsed time for one loop. ... For the user interface, use anothe loop with local variable that is read from the state machine. ...
    (comp.lang.labview)
  • Re: "continue/next" for "loop"
    ... It's not a state machine. ... Does it have to be at that low language level, ... connotations for other people, for example Perl programmers ... end loop; ...
    (comp.lang.ada)