firstcommit
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
|
||||
# MODE SWITCH
|
||||
|
||||
슬라이드 스위치를 이용한 모드 설정에 사용한다.
|
||||
|
||||
해당 슬라이드를 입력으로 설정하여 입력되는 값들을 사용한다.
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
---
|
||||
## PIN 테이블
|
||||
|
||||
| 핀 번호 | 신호 |
|
||||
|---------|------|
|
||||
| PIN_B3 | dout[1] |
|
||||
| PIN_B4 | dout[0] |
|
||||
| PIN_M2 | din[1] |
|
||||
| PIN_J2 | din[0] |
|
||||
|
||||
---
|
||||
|
||||
## VHDL 코드
|
||||
|
||||
```vhdl
|
||||
library ieee;
|
||||
use ieee.std_logic_1164.all;
|
||||
|
||||
entity modsw is
|
||||
port (
|
||||
din : in std_logic_vector(1 downto 0); -- 8bit 입력
|
||||
dout : out std_logic_vector(1 downto 0) -- 8bit 출력
|
||||
);
|
||||
end modsw;
|
||||
|
||||
architecture rtl of modsw is
|
||||
begin
|
||||
|
||||
dout <= din; -- 입력을 그대로 출력
|
||||
|
||||
|
||||
end rtl;
|
||||
|
||||
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user