Oct
12
VHDL component configuration
如果写了一个component有两个architecture,要选择结构体,那么需要用configuration语句:
在声明好Component后,加一句for语句在所有的声明后面(包括signal的声明),begin的前面(Architecture对应的那个Begin)
For Instance_name : component_name USE Entity WORK.entity_name(architecture_name);
其中entity_name其实就是前面对应的component_name
更详细的,可以参考XST User Guide,在文档中查找"component configuration"
在声明好Component后,加一句for语句在所有的声明后面(包括signal的声明),begin的前面(Architecture对应的那个Begin)
For Instance_name : component_name USE Entity WORK.entity_name(architecture_name);
其中entity_name其实就是前面对应的component_name
更详细的,可以参考XST User Guide,在文档中查找"component configuration"
Spartan3E Starter Kit DAC 程序
Implementing Logic Functions Using Block RAM





请问
1存在这种写法符合语法吗
if()then configuration p1;else configuration p2;
使用条件判断进行配置
2configuration是否在综合的时候只生成配置的函数或者元件,没有进行配置的就不生成硬件电路了
谢谢!希望有机会交流交流
我的邮箱:brandnewliangyh@gmail.com
关于第二个问题,好像是默认情况下用的是最后的一个configuration。未经查证。