假设我有2个std_logic_vectors:
inputA : std_logic_vector(31 downto 0)
inputB: std_logic_vector(31 downto 0)
Run Code Online (Sandbox Code Playgroud)
如何转向inputA通过inputB使用串联?
我知道如何向左或向右移动1个位置,但无法弄清楚如何将N个位置向右(或左)移动.注意:这是一个无时钟电路,不能使用标准的vhdl移位运算符.
除了连接之外的其他技术或想法也将被理解.
我怎样才能检查是否...(...)然后...结束if; 构造如果std_logic_vector变量保存负数的位?如果是负数,我必须为其赋值为零.我有 :
signal sum : std_logic_vector (15 downto 0);
sum<= (...);
if (...) then
sum<=x"00";
end if;
Run Code Online (Sandbox Code Playgroud)
谢谢!
我需要检查嵌入式系统中的内存泄漏。
IDE是HEW,我们正在使用uCOSIII RTOS。
Valgrind不支持以上配置。您能否建议使用一种工具或方法来检查内存泄漏?
在FPGA编程中,在XDC(或UCF)文件中使用create_clock命令有什么意义?假设我有一个时钟端口CLK,它被分配给XDC(或UCF)文件中的物理引脚(我的时钟).为什么我不能继续在我的顶级HDL中使用这个CLK引脚?为什么我需要添加这样的东西:
create_clock -name sys_clk_pin -period "XXX" [get_ports "CLK"]
Run Code Online (Sandbox Code Playgroud)
另外,假设我有一个主时钟"CLK"以及我用HDL生成的其他一些时钟.我是否必须对XDC中的所有次要时钟使用"create_clock"?
我没有得到这整个"create_clock"的东西.任何帮助或方向都非常感谢.
谢谢
我用VHDL做D触发器这是代码:
LIBRARY STD,WORK;
USE STD.standard.all;
entity FlipFlopD is
port(
input, clock :in bit;
output :out bit
);
end FlipFlopD;
--Architecture of the entity
Architecture FlipFlopDfunc of FlipFlopD is
begin
PROCESS (clock)
BEGIN
IF (clock’EVENT AND clock=‘1’) THEN
output <= input;
END IF;
END PROCESS;
end FlipFlopDfunc;
Run Code Online (Sandbox Code Playgroud)
这些是我尝试合成时得到的错误:
Line 16. Unexpected symbol read: ?.
Line 16. Unexpected symbol read: ?.
Line 16. parse error, unexpected IDENTIFIER, expecting COMMA or CLOSEPAR
Run Code Online (Sandbox Code Playgroud)
第16行的错误对我来说是因为我看不到任何'?' 这一行中的符号:
IF (clock’EVENT AND clock=‘1’) THEN
Run Code Online (Sandbox Code Playgroud)
有谁知道如何纠正它?有谁知道如何处理这个错误parse error, unexpected …
您好我正在尝试在xilinx ISE环境中学习VHDL,我无法使用此代码,我不知道为什么.我尝试使用/不使用ands的单引号,但没有任何作用.有人可以帮帮我吗?
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
---- Uncomment the following library declaration if instantiating
---- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;
entity teh_3 is
Port ( thermo_input : in STD_LOGIC_VECTOR(3 DOWNTO 0);
too_hot : out STD_LOGIC;
too_cold : out STD_LOGIC;
just_right : out STD_LOGIC);
end teh_3;
architecture Behavioral of teh_3 is
begin
IF thermo_input < "1000" THEN
too_cold <='1' and
too_hot <='0' and
just_right <='0';
ELSIF thermo_input > "1011" THEN
too_hot <='1' …Run Code Online (Sandbox Code Playgroud)