vhdl - 是否可以创建 VHDL 别名以包含几个不同的串联 std_logic_vector?
问题描述
别名基本上是某事的替代名称。现在假设我想为一堆这样的东西创建替代名称:
alias myalias : std_logic_vector(7 downto 0) is a(3 downto 0) & b(1 downto 0) & c & d;
这在 VHDL 中是否允许?据我了解,并非如此。
解决方案
这不就是一根电线吗?
entity Whatever is port (
a : in std_logic_vector(32 downto 0);
b : in std_logic_vector(32 downto 0);
c : in std_logic,
d : in std_logic);
end Whatever;
architecture x of Whatever is
signal myalias : std_logic_vector(7 downto 0);
begin
myalias <= a(3 downto 0) & b(1 downto 0) & c & d;
end x;
推荐阅读
- python - 如何在不被拒绝许可的情况下通过无头驱动程序访问站点
- mysql - AWS RDS MySQL 错误。恢复数据时的场景会生成错误 ERROR 1227(42000)?
- python - 表 X 没有名为 Y 的列 - SQLAlchemy
- excel - Google 表格:使用 ARRAYFORMULA + VLOOKUP 覆盖错误
- wordpress - 如何或在何处放置 Fluid Player 的代码
- java - 换行符不会在浏览器中呈现
- css - transform-style:preserve-3d 在 Safari 中不起作用?
- sql - Laravel Query Builder if else OR case to sum
- java - java.lang.NoClassDefFoundError: gradle JUNIT 测试的 scala/Product$class
- livecode - 按钮名称不变