Professional Documents
Culture Documents
5주차
(7-Segment)
KECE210 ( 07 )
목요일 6-8교시
▪ 7-Segment의 구조 이해
▪ Decoder를 이용한 Binary-to-BCD Converter 설계
▪ Verilog reg, always, case 사용법 숙지
▪ BCD-to-7 Segment Converter 설계
▪ 7 Segment calculator 설계
▪ wire vs reg
▪ wire
▪ wire는 물리적인 연결선으로, 특정 값을 저장할 수 없다.
▪ reg
▪ reg는 다음 값이 할당되기 전까지 현재 값을 유지한다.
▪ 절차적인 할당을 구현할 때 사용된다.
참고 링크 : https://dreamsailor.tistory.com/8
https://m.blog.naver.com/tlsrka649/221812697411
Reg 타입 변수
▪ Non blocking
– 나열된 할당문들이 동시에 실행되어 값을 할당
Reg 타입 변수
▪ Behavioral modeling
▪ Blocking, Non blocking 비교
module blk1; module non_blk1;
output out; output out;
reg a, b, clk; reg a, b, clk;
▪ case 조건문
case(expression)
case_item {, case_item} : statement_or_null;
| default [:] statement_or_null;
endcase
▪ Binary-to-7Segment 설계
▪ 강의자료에 포함된 아래의 파일들 사용.
▪ linedecoder.v
▪ binary_to_BCD.v
▪ SevenSeg_CTRL.v
▪ seven_seg.v