Altera_Forum
Honored Contributor
12 years agoerror 10818 with simple VHDL construct under Quartus v 12.1 build 177
I've stumbled on a rather simplistic code, that is not synthesizable. I wonder why (VHDL 2008 mode):
library IEEE;
use IEEE.std_logic_1164.all;
entity reset_test is
port (
clk,rst,ena : in std_logic;
result : out std_logic
);
end entity;
architecture RTL of reset_test is
begin
D1: process (all)
begin
result <= '0';
if rst then
result <='0';
elsif rising_edge(clk) then
result <= ena;
end if;
end process;
end architecture; gives these error messages: Error (10818): Can't infer register for "result" at dff.vhd(17) because it does not hold its value outside the clock edge File: dff.vhd Line: 17
Error (10822): HDL error at dff.vhd(19): couldn't implement registers for assignments on this clock edge File: dff.vhd Line: 19 under Quartus v 12.1 build 177 on Linux 32 bit