EmbDev.net

Forum: FPGA, VHDL & Verilog delay for syntezing on FPGA?


Author: John Mayer (215)
Posted on:

Rate this post
0 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??

Author: Lothar Miller (lkmiller) (Moderator)
Posted on:

Rate this post
0 useful
not useful
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?

Author: John Mayer (215)
Posted on:

Rate this post
0 useful
not useful
My code is attached in my old thread.
Yes there  is a clock attached in my design??

Author: Lothar Miller (lkmiller) (Moderator)
Posted on:

Rate this post
0 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?

Author: John Mayer (215)
Posted on:

Rate this post
0 useful
not useful
yes... it is cappable of handling it.

: Edited by User

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.