1. Trang chủ
  2. » Luận Văn - Báo Cáo

VGA display based on FPGA

6 116 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 6
Dung lượng 424 KB

Nội dung

VGA display based on FPGA VGA (video graphics array), as a standard interface, has already been applications widely. There are a lot of FPGAbased VGA controller designs on which, however, there are still larger defects such as lowresolution display and the Chinese characters display modules occupying large resource. Therefore, we propose the use of VHDL as a logical means to describe the completion of highresolution VGA control module and a resourceconserving string display module design, and provide two main modules of designing ideas and logic diagrams. And experiments show that: while the Chinese characters ensure a highresolution display, the storage resources needed by the display decreased significantly.

VGA Display Based VHDL on FPGA         Abstract !" # $%&'("$$ #$(# )     % $  *   " #(#(   $ %+ $,$)(#  " -% $,. ..&'.*   !"  #$  %  !#&  "##'()*  +   +#  #$  +  #  , &&-+.!"/,.# #+&-## .  +  $  +  +  ##  +&     #&+  +&    0   &&-+.+# "  #  #  #  +  $    #&+ +&. !"!" #  &-,    +#  !"  #&+ +&1&!"#&+ +&2#.+#   !"  #&+  +&    "   3#+-#$#+#. +#!"#&++& .  445644789:  ;&  $##  + !#  ;#++#  .    #  !" #$    +&    ##    # +++    +  .  .  #  +   /.++##+ +.++.+,#3 -,+&.#& #3-,..&1 3#+- #,++ + ++ ++<1,##+# & .#++. ,# $#.#  +    ,+      =  #$#+  + .+#,>;!" 9?>!">"  !"  +      ++  +#  $   &#+&.+,#$#.#, @A  (B7    +  &#+ #+&#        1##  +& C&+  #      ++  !" #$#&+.+&#++ #&#., =#+  #+$#    ##  ++  %  ! @*#:/#-+#:- ++#D"+.+&#   .  =  ,  +      +& C&+."+& C&++ +&++ #+#/&#++# #/+&#.&# A. VGA Interface Signals # # . +!"#$++ +&++#+ #+#E++.,( ,(F+$!"#$G+ & "2#,  G  !# @ # G 9#: G#:- #-G#:- "  #  #  H#  $#C+  $   #:  +#:-  +    /#- +#:-  +  $#    , &#+-9#+,& #  $  $#C+  ##+&    + #+-+    #  E+  +.  ,8 Table2 List of Frequencies Corresponding to Common Resolutions [3] Resolution Horizontal Sync(KHz) Vertical Sync (Hz) Pixel Clock (MHz) 640×480 800×600 800×600 1024×768 1024×768 31.496 48.077 46.875 48.363 56.476 59.940 72.188 75.000 60.004 70.069 25.175 50.000 49.500 65.000 75.000 !"#,+>;!". +#  +  =/  ++  #: +#:-+/#-+#:- +#+# +  ,+"+=/++,+ !"#$$#>;!". #$!" B. VGA Interface Denion[4]  !"  #$  ++  ##+&  +& +++&#@3(#.+ #      ;  +&  #  F   , #,"##(&+. #  +#  /    I  +   #  #          9#  +  >#  ( +..+&+### C. VGA Color G+++>;!"#/+!"++ #  +  +#+  #++  /#  # ++#+++#, $  #  ++  #    &  $  !"J !"J!  !"J@F  /#  #++ +,#++$7 #    +      +#     /  $  #  ++  #  &  ,. 4K47.+#0!"J9+ !"J+#//++#FF# F AGID>#.,+$ ##  . / #!"J, !"J!  !"J@F  &    #  E+ +.,I Table 3. 3-Bit Code of Color Signal !"J !"J! !"J@F # 4 4 4 4 ( ( ( ( 4 4 ( ( 4 4 ( ( 4 ( 4 ( 4 ( 4 ( @ @ !#   ; ?. 0 D. VGA Timing Control ')$ !"++ ## ,G" 9#++##-,.>;!" #/!"+&.445644789:   +#  $  !"  +#    & $#C  $  &1  +  4444A9:     $#C+$#:+/#-+ #  L477  M9:    78(  9:  $  +& #/+  +  +#  $#C     #+-.,445644#$#+#+ 789:  >#  8  +.  +    &#++  $ #:/#-+$!" @+++###,:   =  ,  :  "    #:   #+  $  +#:-      & &1$!"#$+(4L45666. #+-  +  445644  "  #    - +$#:+#+, L.-&#++.>#I >#I9#:G -+$/#-+#+   ,    .  -  &#  +  +.   >#L >#L#-G   -  $  !"  ++  +  ,  1   ##    #  &      #   #+#&###++ $    -  +  ##    &  .  , ##'(4) Tutorial Goals: Resoluon: 640x480 pixels (307,200 total pixels) Field Refresh Rate: 60 Hz Line Refresh Rate: 31,476 Hz +,#+,$ #     +    +#    +  , /&+/#$##+ .  .    &  /  &#&#     #+  .  .    .  &&  + ,#+#/.#2 ;FN #+    ,/  &#  +  .# +$+ >$#+O649:OG#$#+ /#(666+ F$#+OI(L769:O/# I(77G I(77GPL4F+O(8LBG+G ,/$#+& 1#(L(G++$##-G (L(GQ(8LBGO(6666G >#6#$!"+ G####1+( +#-/#(G..&, ,#8+-+&+#++ +&+8G&#R+ S,#+R#$# ,+#&S++ /1&-$!"++ Key Concepts T/#+#8G+& T,- $ +  #+ -#&#+# TG#+#$#+/#(666G #.$#C$649: III. THE SOFTWARE [10] -#+U.#&#E+ :&=$#./=%/* +/&#+ .+&+++#+ #+. What It Takes +U.#$#+&#E+C+R /#+$#&#&#+ >#-.##-9F « Begin Code »  ENTITY VHDL_VGA IS PORT( Counter/VGA Timing clk: IN STD_LOGIC; -VGA Signals/Pins hsync, vsync, red, green, blue : OUT STD_LOGIC; Sync Counters row, column:OUT STD_LOGIC_VECTOR(9 DOWNTO 0)); end VHDL_VGA; « End Code »  "++-.&+     !"  #    &    +     #&.+.,& $#    8(7A9:    .  +  R&#$R  $# 6L41L4#+-S9F Specic Timing   $.    .  .  +    #   +&=-++#$#+ « Begin Code »  WAIT UNTIL(clk'EVENT) AND (clk = '1'); IF(cnt = 25175000) THEN cnt := 0; ELSE cnt := cnt + 1; END IF; « End Code »  =#++.+...+.( ,$#&#$##+$&#++ #+$++&#, ,##+$&#++,+ +#$#$#-++-+ >FFG  F@"?V GGJF! J((6L"FFV GGJF! J"9"FFV GGJF! JG!"FFV 33= #- ?9FJ!"G ;% 33 #D!"  GJF! V 33!"G+D;+%&+* + /+ # # , GJF! V 33G #+ #.  GJF! J %B 04**V 9FJ!"V 33="##$- " 9 ,/#$9FJ!"G 33GG+ G!"F J+/J+GJF! V 33,+ G!"F /J #:J /#-J GJF! V 33 #G+ G!"F #J+ #J+ ,J+ GJF! V 33G #+ G!"F J /JGJF! J %B04*V @! /JWO#:J"/#-JV ; GG /#,##48(7444V @! 0"F%R*"%OR(R*V >%O8(7444*9  O4V FG OQ(V >V  339#:G  33+9#: # >%JO7BB*9 JWOX4444444444XV FG JWOJQ(V >V 33!#9#: 33(64.+$ >%/JYO4*"%/JWO(B*9 #J+WOR(RV #J+WOR4RV ,J+WOR4RV >V 33(64.+$!# >%/JYO(64*"%/JWOI(B*9 #J+WOR4RV #J+WOR(RV ,J+WOR4RV >V 33(64.+$@ >%/JYOI84*"%/JWOL7B*9 #J+WOR4RV #J+WOR4RV ,J+WOR(RV >V 33!#9#:G >%JWO7*"%JYO6B*9 J+WOR4RV FG J+WOR(RV >V 33#-G 33+#- # >%/JYO8L*"%JYO6BB*9 /JWOX4444444444XV FG>%JO6BB*9 /JWO/JQ(V >V  33!##-G >%/JWOLBL*"%/JYOLBI*9 /J+WOR4RV  FG /J+WOR(RV >V  33!#9#: >%JWO6IB*9 #:JWOR(RV WOJV FG #:JWOR4RV >V  33!##- >%/JWOL7B*9 /#-JWOR(RV #.WO/JV FG /#-JWOR4RV >V  33"++;+G+!" #WO#J+"/JV #WO#J+"/JV ,WO,J+"/JV  +WOJ+V /+WO/J+V ; GGV ,/#V What To Do Now #  #    #-+        U# #+9F$##-+ +&!"&?1&#.# H#  #+  H#  +&+  ?  .  , +#&#+.&1,#+& +&+#+&+##+ IV. CONCLUSIONS +&##,/.+ +++.!".+ ,+>;!".#:#3-+. $+& #!"#>;!". +$.<1,.+ /  $  >;!"    .#    + .+++  +  +  <1,  $  &#++# +&3 +#+#/ #/++.#/ #+F +&#E#+#+& $#-.#&+.+ +#$+#+/ ##+,+$#!"#- REFERENCES '()   G  ;  Z  9  "      9F  'A)  @E : +  /#+ ;#++,8447:88386 '8) ?&[[:9+$!"+&A@+>;!"'Z) &# /&,84476,(7(6):8L838L 'I)G&#3IG##M@#+#!'@DF)2&DD 11 'L)=-$!"#$'@DF)2&DD #+-D/( ')!"-$#-'@DF)2&DD &#D+D&D/J- '6)@\[0:-+$!"!#&+ #@+>;!" 'Z)"&&G,8446(4,II((4):L83L '7) F0[F-:-+$ + ##+>;!"' )  G844,844683844687 ') ? :-+$!" #@#G@+>;!"'Z)# "&&-84488(7):L83L 'B);,0\[[0+$!"!#&+ #@+ >;!"'Z)Z#$#+ #;.#/#+8446,86(L):B3B8 '(4)2&DD &##D#+D/J/D1 . VGA Display Based VHDL on FPGA         Abstract.   #  E+  +.  ,8 Table2 List of Frequencies Corresponding to Common Resolutions [3] Resolution Horizontal Sync(KHz) Vertical Sync (Hz) Pixel Clock (MHz) 640×480 800×600 800×600 1024×768 1024×768 31.496 48.077 46.875 48.363 56.476 59.940 72.188 75.000 60.004 70.069 25.175 50.000 49.500 65.000 75.000 !"#,+>;!". +#. Takes +U.#$#+&#E+C+R /#+$#&#&#+ >#-.##-9F « Begin Code »  ENTITY VHDL _VGA IS PORT( Counter /VGA Timing clk: IN STD_LOGIC; -VGA Signals/Pins hsync, vsync, red, green, blue : OUT STD_LOGIC;

Ngày đăng: 11/08/2014, 19:47

TỪ KHÓA LIÊN QUAN

w