Forum Discussion
Altera_Forum
Honored Contributor
10 years agoAvalon Interface data bits per symbol as component parameter
A Qsys component I created uses an Avalon-ST interface. I'm trying to set the data bits per symbol property of the streaming source as a parameter of my component so that it can be set from an Instance Parameter from my top-level Qsys system.
I need this because this component is connected to an IP Core (NCO) that changes its data bits per symbol when you change its resolution parameters. So of course, I need the source and the sink data bits per symbol to match. If the above isn't possible, are there any other workarounds? Thanks.3 Replies
- Altera_Forum
Honored Contributor
do you need that at runtime or at compiletime?
- Altera_Forum
Honored Contributor
Compiletime. I'm able to set the Avalon signal widths through parameters, but I don't know how to achieve this with bits per symbol.
- Altera_Forum
Honored Contributor
you want to write some tcl code and give the value of some variable to the parameter. You also may want to read [1] and [2] for that purpose.
[1] https://www.altera.com.cn/zh_cn/pdfs/literature/hb/qts/qsys_tcl.pdf [2] https://www.altera.com.cn/zh_cn/pdfs/literature/hb/qts/qsys_intro.pdf