firstcommit
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
|
||||
# IN_OUT
|
||||
|
||||
실습키트의 LED 16비트를 ONOFF하는 과정을 실습니다.
|
||||
|
||||
해당 값에 대한 비트에 LED 가 ON OFF되는지 확인한다.
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
## PIN 테이블
|
||||
|
||||
|
||||
| 핀 번호 | 신호 |
|
||||
|---------|------|
|
||||
| PIN_P21 | din[7] |
|
||||
| PIN_N21 | din[6] |
|
||||
| PIN_M21 | din[5] |
|
||||
| PIN_L21 | din[4] |
|
||||
| PIN_K21 | din[3] |
|
||||
| PIN_J21 | din[2] |
|
||||
| PIN_H21 | din[1] |
|
||||
| PIN_F21 | din[0] |
|
||||
| PIN_B3 | dout[7] |
|
||||
| PIN_B4 | dout[6] |
|
||||
| PIN_B5 | dout[5] |
|
||||
| PIN_B6 | dout[4] |
|
||||
| PIN_B7 | dout[3] |
|
||||
| PIN_B8 | dout[2] |
|
||||
| PIN_B9 | dout[1] |
|
||||
| PIN_B10 | dout[0] |
|
||||
|
||||
|
||||
## VHDL 코드
|
||||
|
||||
```vhdl
|
||||
|
||||
library ieee;
|
||||
use ieee.std_logic_1164.all;
|
||||
|
||||
entity in_out is
|
||||
port(
|
||||
din : in std_logic_vector(7 downto 0); -- 8비트 입력
|
||||
dout : out std_logic_vector(7 downto 0) -- 8비트 출력
|
||||
);
|
||||
end entity;
|
||||
|
||||
architecture rtl of in_out is
|
||||
begin
|
||||
|
||||
-- 입력을 그대로 출력으로 전달
|
||||
dout <= din;
|
||||
|
||||
end architecture;
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user