Altera_Forum
Honored Contributor
13 years agoErrors in runing my codes in Quartus2
Dear all. I really appreciate your time in advance. It is the first time I am using this Quartus v2 software. I wrote the following codes in it but it gives me some errors when I run it. Could you please help me? here is my codes:
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 2 then heater <= '1'; elsif realtemperature > neededtemperature 2 then heater <= '0'; end if; end process controlsystem; end architecture behave;