Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.NUMERIC_STD.ALL;
entity MaxProgram is
Port (
a : in INTEGER;
b : in INTEGER;
max_out : out INTEGER
);
end MaxProgram;
architecture Behavioral of MaxProgram is
begin
process(a, b)
begin
if a > b then
max_out <= a;
else
max_out <= b;
end if;
end process;
end Behavioral;Coding works best on desktop or with an external keyboard.