delay for syntezing on FPGA?

OP #3637883
Rate this post
useful
not useful
I have this problem with my VHDL code.

if pointer <= (top_pointer) and test = '0' then
       LED <= LISTEN(pointer);
       pointer := pointer + 1;
end if;

The Idea with this piece of code is that as i've tried to state is as 
long pointer is less than top pointer, LED has to display what inside 
the array listen and then increment the pointer.

the problem is that it isn't showing what the array contain.

My theory I am missing a prescaler, so i tried adding one,

if pointer <= (top_pointer) and test = '0' then
  if(prescaler < 49999999/1) then
    prescaler := prescaler + 1;
  else
    prescaler := 0;
LED <= LISTEN(pointer)
pointer := pointer + 1;
  end if;
end if;

but still same result..What am I doing wrong here??
Moderator (Company: Titel) #3638091
Rate this post
useful
not useful
John Mayer wrote:
> My code is attached in my old thread.
It isn't attached, you only added a link to some external site.
> my old thread.
For all the others:
http://embdev.net/topic/332350

> Yes there  is a clock attached in my design??
It is, but up to now I did what I said: not reading an external link to 
your code.

John Mayer wrote:
> the problem is that it isn't showing what the array contain.
What does it show instead? And how did you find that out? Did you 
simulate your design? What do you exptect to happen?


BTW:
You are playing a high league with this here:
shared variable top_pointer: integer range 0 to 4 := 0;
I rarely need a shared variable. And if so it is only for simulation. 
Can your synthesizer handle shared variables?

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now