Passing a generic value from a tcl script to a generic package file in VHDL

Guest #6207297
Rate this post
• ▲ useful
▼ not useful
Hello Guys



Simple question, yet I cannot find an answer anywhere for it. I even 
read book chapters on the subject, and still cannot figure it out.

So here it is, I can pass a generic value from a tcl script to the top 
layer in an a certain hierarchy using the "-g" flag when simulating, and 
then I pass down this generic to the sub-modules within it.

However, my problem is this. I am trying to make a generic package file, 
and I want pass the generics from a tcl script into the package file,

Then after this is done, I will instantiate the generic package file in 
each module and they can all read what was passed to the package 
instead.

So I want this: Genrics in tcl => pass to Generic_PKG => instantiate 
package in submodules => parametrize all modules.

This is my current case: Genrics in tcl => pass to Generic_Top_module => 
pass down to sub-modules => parametrize all modules.



Thanks in advance!

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.