Forum: FPGA, VHDL & Verilog Simply Stack VHDL

Author: Guru Med (guru_meditation)
Posted on:
Attached files:

Rate this post
0 useful
not useful
Hi friends!, well, I have VHDL code attach (so simply), and I'd like add 
two operations more, CALL and RETURN, so I need Stack Pointer (SP) 
[register], it must be point at the end of the memory and stack should 
start at high addresses and as it grows move to lower addresses, the SP 
in memory will be store programcounter where jump when return. I use 
this simple memory file (also attach).
How I can do it?, I dont know how save programcounter in memory pointed 
by sp.

Thanks in advance, and sorry, i'm newbie.


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.