First commit
This commit is contained in:
21
IUT/Auto1/TP/depassement_niveau/depassement_niveau.vhd
Normal file
21
IUT/Auto1/TP/depassement_niveau/depassement_niveau.vhd
Normal file
@@ -0,0 +1,21 @@
|
||||
LIBRARY ieee;
|
||||
USE ieee.std_logic_1164.ALL;
|
||||
USE ieee.numeric_std.ALL;
|
||||
|
||||
ENTITY depassement_niveau is
|
||||
PORT (
|
||||
niveau_liquide : IN STD_LOGIC_VECTOR(3 DOWNTO 0);
|
||||
depassement : OUT STD_LOGIC
|
||||
);
|
||||
|
||||
END depassement_niveau;
|
||||
|
||||
ARCHITECTURE archi OF depassement_niveau is
|
||||
|
||||
SIGNAL result : STD_LOGIC;
|
||||
|
||||
BEGIN
|
||||
|
||||
depassement <= '1' WHEN niveau_liquide > "1010" ELSE '0';
|
||||
|
||||
end archi;
|
||||
Reference in New Issue
Block a user