【发布时间】:2020-04-04 14:46:40
【问题描述】:
1) std_logic_vector(data_width - 1 downto 0)
在这段代码中,我不明白(-1 到 0)。我知道这告诉我们它是 8 位的。但不明白怎么做?例如,(7 donwto 0) 是不言自明的,例如。 0,1,2,3,4,5,6,7。
2) A_reg(data_width - 1 downto 1) <= A_reg(data_width - 2 downto 0);
我知道我们正在左移。但是谁能解释一下如何?我想知道位的位置是如何变化或移动的。
【问题讨论】: