Heating-cooling system

Design a circuit that controls a heating-cooling system. The system has
two sensors that indicate when the temperature is too high (hot=1) or
too cold (cold=1). The sensors will never be at 1 simultaneously.

If the temperature is too hot, the cooler must be activated (cooler=1).
If the temperautre is too cold, the heater must be activated (heater=1).

Specification

    module heater_cooler (hot, cold, heater, cooler);
       input hot, cold;
       output heater, cooler;

Input

- hot is the input that indicates when the temperature is too hot.

- cold is the input that indicates when the temperature is too cold.

Output

- heater is the output that activates the heater.

- cooler is the output that activates the cooler.

Problem information

Author: Jordi Cortadella

Generation: 2026-02-03T12:15:36.326Z

© Jutge.org, 2006–2026.
https://jutge.org
