| HOME | PREVIOUS | NEXT |
Open the VHDL file and insert the following code to the architecture body.
architecture Hex2LED_arch of Hex2LED is
begin
with HEX select LED <=
"1111001" when "0001", --1
"0100100" when "0010", --2
"0110000" when "0011", --3
"0011001" when "0100", --4
"0010010" when "0101", --5
"0000010" when "0110", --6
"1111000" when "0111", --7
"0000000" when "1000", --8
"0010000" when "1001", --9
"0001000" when "1010", --A
"0000011" when "1011", --B
"1000110" when "1100", --C
"0100001" when "1101", --D
"0000110" when "1110", --E
"0001110" when "1111", --F
"1000000" when others; --0
end Hex2LED_arch;
|
After inserting the code, save and close the VHDL file. At the design hierarchy
explorer, you should see a
mark at the left of the
Hex2LED module icon. It means the VHDL file is modified outside the tool and need to be analyzed. Invoke
Module -- Analyzed Module
(F4) to analyze the VHDL file. The
mark should be changed to
mark as before.
| HOME | PREVIOUS | NEXT |