dritter slot
[dide_16.git] / bsp2 / Designflow / ppr / download / vga_driver.bsf
diff --git a/bsp2/Designflow/ppr/download/vga_driver.bsf b/bsp2/Designflow/ppr/download/vga_driver.bsf
new file mode 100644 (file)
index 0000000..dc02afb
--- /dev/null
@@ -0,0 +1,477 @@
+/*
+WARNING: Do NOT edit the input and output ports in this file in a text
+editor if you plan to continue editing the block that represents it in
+the Block Editor! File corruption is VERY likely to occur.
+*/
+/*
+Copyright (C) 1991-2009 Altera Corporation
+Your use of Altera Corporation's design tools, logic functions 
+and other software and tools, and its AMPP partner logic 
+functions, and any output files from any of the foregoing 
+(including device programming or simulation files), and any 
+associated documentation or information are expressly subject 
+to the terms and conditions of the Altera Program License 
+Subscription Agreement, Altera MegaCore Function License 
+Agreement, or other applicable license agreement, including, 
+without limitation, that your use is for the sole purpose of 
+programming logic devices manufactured by Altera and sold by 
+Altera or its authorized distributors.  Please refer to the 
+applicable agreement for further details.
+*/
+(header "symbol" (version "1.1"))
+(symbol
+       (rect 16 16 304 1040)
+       (text "vga_driver" (rect 5 0 75 12)(font "Arial" ))
+       (text "inst" (rect 8 1008 36 1020)(font "Arial" ))
+       (port
+               (pt 0 32)
+               (input)
+               (text "dly_counter_1" (rect 0 0 92 12)(font "Arial" ))
+               (text "dly_counter_1" (rect 21 27 113 39)(font "Arial" ))
+               (line (pt 0 32)(pt 16 32)(line_width 1))
+       )
+       (port
+               (pt 0 48)
+               (input)
+               (text "dly_counter_0" (rect 0 0 92 12)(font "Arial" ))
+               (text "dly_counter_0" (rect 21 43 113 55)(font "Arial" ))
+               (line (pt 0 48)(pt 16 48)(line_width 1))
+       )
+       (port
+               (pt 0 64)
+               (input)
+               (text "reset_pin_c" (rect 0 0 77 12)(font "Arial" ))
+               (text "reset_pin_c" (rect 21 59 98 71)(font "Arial" ))
+               (line (pt 0 64)(pt 16 64)(line_width 1))
+       )
+       (port
+               (pt 0 80)
+               (input)
+               (text "clk_pin_c" (rect 0 0 63 12)(font "Arial" ))
+               (text "clk_pin_c" (rect 21 75 84 87)(font "Arial" ))
+               (line (pt 0 80)(pt 16 80)(line_width 1))
+       )
+       (port
+               (pt 288 32)
+               (output)
+               (text "line_counter_sig_0" (rect 0 0 127 12)(font "Arial" ))
+               (text "line_counter_sig_0" (rect 140 27 267 39)(font "Arial" ))
+               (line (pt 288 32)(pt 272 32)(line_width 1))
+       )
+       (port
+               (pt 288 48)
+               (output)
+               (text "line_counter_sig_1" (rect 0 0 127 12)(font "Arial" ))
+               (text "line_counter_sig_1" (rect 140 43 267 55)(font "Arial" ))
+               (line (pt 288 48)(pt 272 48)(line_width 1))
+       )
+       (port
+               (pt 288 64)
+               (output)
+               (text "line_counter_sig_2" (rect 0 0 127 12)(font "Arial" ))
+               (text "line_counter_sig_2" (rect 140 59 267 71)(font "Arial" ))
+               (line (pt 288 64)(pt 272 64)(line_width 1))
+       )
+       (port
+               (pt 288 80)
+               (output)
+               (text "line_counter_sig_3" (rect 0 0 127 12)(font "Arial" ))
+               (text "line_counter_sig_3" (rect 140 75 267 87)(font "Arial" ))
+               (line (pt 288 80)(pt 272 80)(line_width 1))
+       )
+       (port
+               (pt 288 96)
+               (output)
+               (text "line_counter_sig_4" (rect 0 0 127 12)(font "Arial" ))
+               (text "line_counter_sig_4" (rect 140 91 267 103)(font "Arial" ))
+               (line (pt 288 96)(pt 272 96)(line_width 1))
+       )
+       (port
+               (pt 288 112)
+               (output)
+               (text "line_counter_sig_5" (rect 0 0 127 12)(font "Arial" ))
+               (text "line_counter_sig_5" (rect 140 107 267 119)(font "Arial" ))
+               (line (pt 288 112)(pt 272 112)(line_width 1))
+       )
+       (port
+               (pt 288 128)
+               (output)
+               (text "line_counter_sig_6" (rect 0 0 127 12)(font "Arial" ))
+               (text "line_counter_sig_6" (rect 140 123 267 135)(font "Arial" ))
+               (line (pt 288 128)(pt 272 128)(line_width 1))
+       )
+       (port
+               (pt 288 144)
+               (output)
+               (text "line_counter_sig_7" (rect 0 0 127 12)(font "Arial" ))
+               (text "line_counter_sig_7" (rect 140 139 267 151)(font "Arial" ))
+               (line (pt 288 144)(pt 272 144)(line_width 1))
+       )
+       (port
+               (pt 288 160)
+               (output)
+               (text "line_counter_sig_8" (rect 0 0 127 12)(font "Arial" ))
+               (text "line_counter_sig_8" (rect 140 155 267 167)(font "Arial" ))
+               (line (pt 288 160)(pt 272 160)(line_width 1))
+       )
+       (port
+               (pt 288 176)
+               (output)
+               (text "vsync_state_2" (rect 0 0 92 12)(font "Arial" ))
+               (text "vsync_state_2" (rect 175 171 267 183)(font "Arial" ))
+               (line (pt 288 176)(pt 272 176)(line_width 1))
+       )
+       (port
+               (pt 288 192)
+               (output)
+               (text "vsync_state_5" (rect 0 0 92 12)(font "Arial" ))
+               (text "vsync_state_5" (rect 175 187 267 199)(font "Arial" ))
+               (line (pt 288 192)(pt 272 192)(line_width 1))
+       )
+       (port
+               (pt 288 208)
+               (output)
+               (text "vsync_state_3" (rect 0 0 92 12)(font "Arial" ))
+               (text "vsync_state_3" (rect 175 203 267 215)(font "Arial" ))
+               (line (pt 288 208)(pt 272 208)(line_width 1))
+       )
+       (port
+               (pt 288 224)
+               (output)
+               (text "vsync_state_6" (rect 0 0 92 12)(font "Arial" ))
+               (text "vsync_state_6" (rect 175 219 267 231)(font "Arial" ))
+               (line (pt 288 224)(pt 272 224)(line_width 1))
+       )
+       (port
+               (pt 288 240)
+               (output)
+               (text "vsync_state_4" (rect 0 0 92 12)(font "Arial" ))
+               (text "vsync_state_4" (rect 175 235 267 247)(font "Arial" ))
+               (line (pt 288 240)(pt 272 240)(line_width 1))
+       )
+       (port
+               (pt 288 256)
+               (output)
+               (text "vsync_state_1" (rect 0 0 92 12)(font "Arial" ))
+               (text "vsync_state_1" (rect 175 251 267 263)(font "Arial" ))
+               (line (pt 288 256)(pt 272 256)(line_width 1))
+       )
+       (port
+               (pt 288 272)
+               (output)
+               (text "vsync_state_0" (rect 0 0 92 12)(font "Arial" ))
+               (text "vsync_state_0" (rect 175 267 267 279)(font "Arial" ))
+               (line (pt 288 272)(pt 272 272)(line_width 1))
+       )
+       (port
+               (pt 288 288)
+               (output)
+               (text "hsync_state_2" (rect 0 0 92 12)(font "Arial" ))
+               (text "hsync_state_2" (rect 175 283 267 295)(font "Arial" ))
+               (line (pt 288 288)(pt 272 288)(line_width 1))
+       )
+       (port
+               (pt 288 304)
+               (output)
+               (text "hsync_state_4" (rect 0 0 92 12)(font "Arial" ))
+               (text "hsync_state_4" (rect 175 299 267 311)(font "Arial" ))
+               (line (pt 288 304)(pt 272 304)(line_width 1))
+       )
+       (port
+               (pt 288 320)
+               (output)
+               (text "hsync_state_0" (rect 0 0 92 12)(font "Arial" ))
+               (text "hsync_state_0" (rect 175 315 267 327)(font "Arial" ))
+               (line (pt 288 320)(pt 272 320)(line_width 1))
+       )
+       (port
+               (pt 288 336)
+               (output)
+               (text "hsync_state_5" (rect 0 0 92 12)(font "Arial" ))
+               (text "hsync_state_5" (rect 175 331 267 343)(font "Arial" ))
+               (line (pt 288 336)(pt 272 336)(line_width 1))
+       )
+       (port
+               (pt 288 352)
+               (output)
+               (text "hsync_state_1" (rect 0 0 92 12)(font "Arial" ))
+               (text "hsync_state_1" (rect 175 347 267 359)(font "Arial" ))
+               (line (pt 288 352)(pt 272 352)(line_width 1))
+       )
+       (port
+               (pt 288 368)
+               (output)
+               (text "hsync_state_3" (rect 0 0 92 12)(font "Arial" ))
+               (text "hsync_state_3" (rect 175 363 267 375)(font "Arial" ))
+               (line (pt 288 368)(pt 272 368)(line_width 1))
+       )
+       (port
+               (pt 288 384)
+               (output)
+               (text "hsync_state_6" (rect 0 0 92 12)(font "Arial" ))
+               (text "hsync_state_6" (rect 175 379 267 391)(font "Arial" ))
+               (line (pt 288 384)(pt 272 384)(line_width 1))
+       )
+       (port
+               (pt 288 400)
+               (output)
+               (text "column_counter_sig_0" (rect 0 0 141 12)(font "Arial" ))
+               (text "column_counter_sig_0" (rect 126 395 267 407)(font "Arial" ))
+               (line (pt 288 400)(pt 272 400)(line_width 1))
+       )
+       (port
+               (pt 288 416)
+               (output)
+               (text "column_counter_sig_1" (rect 0 0 141 12)(font "Arial" ))
+               (text "column_counter_sig_1" (rect 126 411 267 423)(font "Arial" ))
+               (line (pt 288 416)(pt 272 416)(line_width 1))
+       )
+       (port
+               (pt 288 432)
+               (output)
+               (text "column_counter_sig_2" (rect 0 0 141 12)(font "Arial" ))
+               (text "column_counter_sig_2" (rect 126 427 267 439)(font "Arial" ))
+               (line (pt 288 432)(pt 272 432)(line_width 1))
+       )
+       (port
+               (pt 288 448)
+               (output)
+               (text "column_counter_sig_3" (rect 0 0 141 12)(font "Arial" ))
+               (text "column_counter_sig_3" (rect 126 443 267 455)(font "Arial" ))
+               (line (pt 288 448)(pt 272 448)(line_width 1))
+       )
+       (port
+               (pt 288 464)
+               (output)
+               (text "column_counter_sig_4" (rect 0 0 141 12)(font "Arial" ))
+               (text "column_counter_sig_4" (rect 126 459 267 471)(font "Arial" ))
+               (line (pt 288 464)(pt 272 464)(line_width 1))
+       )
+       (port
+               (pt 288 480)
+               (output)
+               (text "column_counter_sig_5" (rect 0 0 141 12)(font "Arial" ))
+               (text "column_counter_sig_5" (rect 126 475 267 487)(font "Arial" ))
+               (line (pt 288 480)(pt 272 480)(line_width 1))
+       )
+       (port
+               (pt 288 496)
+               (output)
+               (text "column_counter_sig_6" (rect 0 0 141 12)(font "Arial" ))
+               (text "column_counter_sig_6" (rect 126 491 267 503)(font "Arial" ))
+               (line (pt 288 496)(pt 272 496)(line_width 1))
+       )
+       (port
+               (pt 288 512)
+               (output)
+               (text "column_counter_sig_7" (rect 0 0 141 12)(font "Arial" ))
+               (text "column_counter_sig_7" (rect 126 507 267 519)(font "Arial" ))
+               (line (pt 288 512)(pt 272 512)(line_width 1))
+       )
+       (port
+               (pt 288 528)
+               (output)
+               (text "column_counter_sig_8" (rect 0 0 141 12)(font "Arial" ))
+               (text "column_counter_sig_8" (rect 126 523 267 535)(font "Arial" ))
+               (line (pt 288 528)(pt 272 528)(line_width 1))
+       )
+       (port
+               (pt 288 544)
+               (output)
+               (text "column_counter_sig_9" (rect 0 0 141 12)(font "Arial" ))
+               (text "column_counter_sig_9" (rect 126 539 267 551)(font "Arial" ))
+               (line (pt 288 544)(pt 272 544)(line_width 1))
+       )
+       (port
+               (pt 288 560)
+               (output)
+               (text "vsync_counter_9" (rect 0 0 106 12)(font "Arial" ))
+               (text "vsync_counter_9" (rect 161 555 267 567)(font "Arial" ))
+               (line (pt 288 560)(pt 272 560)(line_width 1))
+       )
+       (port
+               (pt 288 576)
+               (output)
+               (text "vsync_counter_8" (rect 0 0 106 12)(font "Arial" ))
+               (text "vsync_counter_8" (rect 161 571 267 583)(font "Arial" ))
+               (line (pt 288 576)(pt 272 576)(line_width 1))
+       )
+       (port
+               (pt 288 592)
+               (output)
+               (text "vsync_counter_7" (rect 0 0 106 12)(font "Arial" ))
+               (text "vsync_counter_7" (rect 161 587 267 599)(font "Arial" ))
+               (line (pt 288 592)(pt 272 592)(line_width 1))
+       )
+       (port
+               (pt 288 608)
+               (output)
+               (text "vsync_counter_6" (rect 0 0 106 12)(font "Arial" ))
+               (text "vsync_counter_6" (rect 161 603 267 615)(font "Arial" ))
+               (line (pt 288 608)(pt 272 608)(line_width 1))
+       )
+       (port
+               (pt 288 624)
+               (output)
+               (text "vsync_counter_5" (rect 0 0 106 12)(font "Arial" ))
+               (text "vsync_counter_5" (rect 161 619 267 631)(font "Arial" ))
+               (line (pt 288 624)(pt 272 624)(line_width 1))
+       )
+       (port
+               (pt 288 640)
+               (output)
+               (text "vsync_counter_4" (rect 0 0 106 12)(font "Arial" ))
+               (text "vsync_counter_4" (rect 161 635 267 647)(font "Arial" ))
+               (line (pt 288 640)(pt 272 640)(line_width 1))
+       )
+       (port
+               (pt 288 656)
+               (output)
+               (text "vsync_counter_3" (rect 0 0 106 12)(font "Arial" ))
+               (text "vsync_counter_3" (rect 161 651 267 663)(font "Arial" ))
+               (line (pt 288 656)(pt 272 656)(line_width 1))
+       )
+       (port
+               (pt 288 672)
+               (output)
+               (text "vsync_counter_2" (rect 0 0 106 12)(font "Arial" ))
+               (text "vsync_counter_2" (rect 161 667 267 679)(font "Arial" ))
+               (line (pt 288 672)(pt 272 672)(line_width 1))
+       )
+       (port
+               (pt 288 688)
+               (output)
+               (text "vsync_counter_1" (rect 0 0 106 12)(font "Arial" ))
+               (text "vsync_counter_1" (rect 161 683 267 695)(font "Arial" ))
+               (line (pt 288 688)(pt 272 688)(line_width 1))
+       )
+       (port
+               (pt 288 704)
+               (output)
+               (text "vsync_counter_0" (rect 0 0 106 12)(font "Arial" ))
+               (text "vsync_counter_0" (rect 161 699 267 711)(font "Arial" ))
+               (line (pt 288 704)(pt 272 704)(line_width 1))
+       )
+       (port
+               (pt 288 720)
+               (output)
+               (text "hsync_counter_9" (rect 0 0 106 12)(font "Arial" ))
+               (text "hsync_counter_9" (rect 161 715 267 727)(font "Arial" ))
+               (line (pt 288 720)(pt 272 720)(line_width 1))
+       )
+       (port
+               (pt 288 736)
+               (output)
+               (text "hsync_counter_8" (rect 0 0 106 12)(font "Arial" ))
+               (text "hsync_counter_8" (rect 161 731 267 743)(font "Arial" ))
+               (line (pt 288 736)(pt 272 736)(line_width 1))
+       )
+       (port
+               (pt 288 752)
+               (output)
+               (text "hsync_counter_7" (rect 0 0 106 12)(font "Arial" ))
+               (text "hsync_counter_7" (rect 161 747 267 759)(font "Arial" ))
+               (line (pt 288 752)(pt 272 752)(line_width 1))
+       )
+       (port
+               (pt 288 768)
+               (output)
+               (text "hsync_counter_6" (rect 0 0 106 12)(font "Arial" ))
+               (text "hsync_counter_6" (rect 161 763 267 775)(font "Arial" ))
+               (line (pt 288 768)(pt 272 768)(line_width 1))
+       )
+       (port
+               (pt 288 784)
+               (output)
+               (text "hsync_counter_5" (rect 0 0 106 12)(font "Arial" ))
+               (text "hsync_counter_5" (rect 161 779 267 791)(font "Arial" ))
+               (line (pt 288 784)(pt 272 784)(line_width 1))
+       )
+       (port
+               (pt 288 800)
+               (output)
+               (text "hsync_counter_4" (rect 0 0 106 12)(font "Arial" ))
+               (text "hsync_counter_4" (rect 161 795 267 807)(font "Arial" ))
+               (line (pt 288 800)(pt 272 800)(line_width 1))
+       )
+       (port
+               (pt 288 816)
+               (output)
+               (text "hsync_counter_3" (rect 0 0 106 12)(font "Arial" ))
+               (text "hsync_counter_3" (rect 161 811 267 823)(font "Arial" ))
+               (line (pt 288 816)(pt 272 816)(line_width 1))
+       )
+       (port
+               (pt 288 832)
+               (output)
+               (text "hsync_counter_2" (rect 0 0 106 12)(font "Arial" ))
+               (text "hsync_counter_2" (rect 161 827 267 839)(font "Arial" ))
+               (line (pt 288 832)(pt 272 832)(line_width 1))
+       )
+       (port
+               (pt 288 848)
+               (output)
+               (text "hsync_counter_1" (rect 0 0 106 12)(font "Arial" ))
+               (text "hsync_counter_1" (rect 161 843 267 855)(font "Arial" ))
+               (line (pt 288 848)(pt 272 848)(line_width 1))
+       )
+       (port
+               (pt 288 864)
+               (output)
+               (text "hsync_counter_0" (rect 0 0 106 12)(font "Arial" ))
+               (text "hsync_counter_0" (rect 161 859 267 871)(font "Arial" ))
+               (line (pt 288 864)(pt 272 864)(line_width 1))
+       )
+       (port
+               (pt 288 880)
+               (output)
+               (text "d_set_vsync_counter" (rect 0 0 134 12)(font "Arial" ))
+               (text "d_set_vsync_counter" (rect 133 875 267 887)(font "Arial" ))
+               (line (pt 288 880)(pt 272 880)(line_width 1))
+       )
+       (port
+               (pt 288 896)
+               (output)
+               (text "v_sync" (rect 0 0 42 12)(font "Arial" ))
+               (text "v_sync" (rect 225 891 267 903)(font "Arial" ))
+               (line (pt 288 896)(pt 272 896)(line_width 1))
+       )
+       (port
+               (pt 288 912)
+               (output)
+               (text "h_sync" (rect 0 0 42 12)(font "Arial" ))
+               (text "h_sync" (rect 225 907 267 919)(font "Arial" ))
+               (line (pt 288 912)(pt 272 912)(line_width 1))
+       )
+       (port
+               (pt 288 928)
+               (output)
+               (text "h_enable_sig" (rect 0 0 84 12)(font "Arial" ))
+               (text "h_enable_sig" (rect 183 923 267 935)(font "Arial" ))
+               (line (pt 288 928)(pt 272 928)(line_width 1))
+       )
+       (port
+               (pt 288 944)
+               (output)
+               (text "v_enable_sig" (rect 0 0 84 12)(font "Arial" ))
+               (text "v_enable_sig" (rect 183 939 267 951)(font "Arial" ))
+               (line (pt 288 944)(pt 272 944)(line_width 1))
+       )
+       (port
+               (pt 288 960)
+               (output)
+               (text "un6_dly_counter_0_x" (rect 0 0 134 12)(font "Arial" ))
+               (text "un6_dly_counter_0_x" (rect 133 955 267 967)(font "Arial" ))
+               (line (pt 288 960)(pt 272 960)(line_width 1))
+       )
+       (port
+               (pt 288 976)
+               (output)
+               (text "d_set_hsync_counter" (rect 0 0 134 12)(font "Arial" ))
+               (text "d_set_hsync_counter" (rect 133 971 267 983)(font "Arial" ))
+               (line (pt 288 976)(pt 272 976)(line_width 1))
+       )
+       (drawing
+               (rectangle (rect 16 16 272 1008)(line_width 1))
+       )
+)