Forum Discussion
Altera_Forum
Honored Contributor
13 years agoHi there,
at least this are the syntax errors - while it compiles now, no guarantee it does what you intended... entity sensor is port ( neededtemperature, realtemperature : IN integer range 0 to 100; heater: out bit); end entity sensor; architecture behave of sensor is begin controlsystem: process (realtemperature , neededtemperature) begin if realtemperature < neededtemperature then heater <= '1'; elsif realtemperature > neededtemperature then heater <= '0'; end if; end process controlsystem; end behave; regards