delay for syntezing on FPGA?

OP #3637883
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)
You do not attach the questionable VHDL code. So no one is able to see 
the definition of the types...

Why do you open a new thread for an old question?

John Mayer wrote:
> My theory I am missing a prescaler, so i tried adding one,
Did you read and try to understand my recent answers?
Is there any clock in your design?
Moderator (Company: Titel)
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

A question of your own? This thread is over 12 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

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.