Jump to content


Abou generic map in vhdl code


  • You cannot reply to this topic
1 reply to this topic

#1 bizertino

    Member

  • Members
  • PipPip
  • 14 posts

Posted 11 May 2009 - 12:08 PM

Hi,

thanks for all your answers and informations, i still have other question and this time about generics in vhdl, i wanna know if there is any possibility to make a constant in c as a generic map in vhdl code just to be able to modify it in ise or edk,



eg:


#define count 10
....
....

for (i=0;i<count;i++)
...
...




how can i make "count" constant as a generic in vhdl, what i must write in hardware prcess in C to make it generic in vhdl and preferably in projet_top. If there's other suggestions, it will be very welcome.

thanks again.

#2 RalphBodenner

    Advanced Member

  • Admin
  • PipPipPip
  • 348 posts

Posted 18 May 2009 - 03:29 PM

You can use the co_parameter object to cause generics to be generated. The values for these generics will be specified in the top-level file (*_top.vhd) when an Impulse C process that uses them is instantiated. See the attached example project.

Regards,
Ralph

Attached File(s)


Ralph Bodenner
Impulse Accelerated Technologies, Inc.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users