여기에 무슨 일이 일어나고 있습니까? 왜 '연산자 인수 형식 불일치'가 발생하며이를 수정하려면 어떻게해야합니까? 당신이 STD_LOGIC를 증가 할 수왜이 'std_logic_vector'를 증가시킬 수 없습니까
--
-- 32-bit counter with enable and async reset
--
architecture synthesis1 of counter_32bit is
signal nextvalue : std_logic_vector (31 downto 0);
begin
--
-- combo
--
nextvalue <= value + 1; -- here
--
-- sequential
--
ff:process(clk, rst)
begin
if(rst = '1') then
value <= 0; -- and here...
elsif(clk'event and (clk ='1')) then
if(ena = '1') then
value <= nextvalue;
end if;
end if;
end process ff;
end synthesis1;
감사
시뮬레이터의 -v93 스위치가 깜빡이면'value'의 초기화를 위해'to_stdlogicvector (bit_vector '(X "0"))'또는'X "0"'만 사용하십시오. – Marty