Bonsoir,
je m'exerce un peu en VHDL et je suis tombé sur un exercice intéressant qui est la réalisation d'un demi additionneur 1 bit.
Voici le code que j'ai réalisé :
Et quand je compile il me dit "can't determine function of operator "&" -- 2 functions possible"Code:LIBRARY ieee; USE ieee.std_logic_1164.all; Entity Exo2 is Port(A,B : in std_logic; R,S : out std_logic); End Exo2; Architecture Mycircuit of Exo2 is Begin with (A&B) select R <= '1' when "11", '0' when others, S <= '1' when "01", '1' when "10", '0' when others; End Mycircuit;
Est ce que quelqu'un aurait une solution svp?
Merci à vous.
-----