[Verilog]7-segment decoder

7세그먼트 디코더

16진수로 표시 0 1 2 3 4 5 6 7 8 9 a b c d E F

-----------------------
module m_7seg(input [3:0] control,
  output reg [6:0] HEX);
 always@(control[3:0]) begin 
  case(control[3:0])
   4'd0: HEX = 7'b1000000;
   4'd1: HEX = 7'b1111001;
   4'd2: HEX = 7'b0100100;
   4'd3: HEX = 7'b0110000;
   4'd4: HEX = 7'b0011001;
   4'd5: HEX = 7'b0010010;
   4'd6: HEX = 7'b0000010;
   4'd7: HEX = 7'b1011000;
   4'd8: HEX = 7'b0000000;
   4'd9: HEX = 7'b0011000;
   4'd10: HEX = 7'b0100000;
   4'd11: HEX = 7'b0000011;
   4'd12: HEX = 7'b0100111;
   4'd13: HEX = 7'b0100001;
   4'd14: HEX = 7'b0000110;
   4'd15: HEX = 7'b0001110;
   default: HEX = 7'b1111111;
  endcase
 end
endmodule

by 재동이 | 2009/06/14 13:36 | │ 베릴로그(Verilog) | 트랙백 | 덧글(10)

트랙백 주소 : http://rabe.egloos.com/tb/2345942
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]
Commented by 공대생2학년 at 2009/08/01 17:37
ㅠㅠ 이번엔 2학기 시간표 도우미는 만드실 생각 없으신가요 ㅠㅠ?
정말 너무너무 큰 도움 됬었는데 흑흑 ㅠ
Commented by 재동이 at 2009/08/02 01:32
업뎃 했습니다 ^^
Commented by 서린 at 2009/08/10 14:32
너무 친절한데..
Commented at 2009/08/10 17:58
비공개 덧글입니다.
Commented by 재동이 at 2009/08/10 18:00
자리에 있습니다.
Commented at 2009/08/10 18:05
비공개 덧글입니다.
Commented at 2009/08/10 18:12
비공개 덧글입니다.
Commented at 2009/08/10 18:25
비공개 덧글입니다.
Commented by 재동이 at 2009/08/10 19:33
없는번호입니다
Commented by 서린 at 2009/08/10 20:23
으음 -_-... ok.

:         :

:

비공개 덧글

◀ 이전 페이지          다음 페이지 ▶