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

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.