1
0
mirror of git://projects.qi-hardware.com/ben-blinkenlights.git synced 2024-11-27 19:53:45 +02:00

ubb-vga: documented single and double mode

- README: describe how single and double mode work
- res.fig: illustrate the mapping in single and double mode
This commit is contained in:
Werner Almesberger 2011-04-24 21:26:00 -03:00
parent 67107d0062
commit 5df56a39b0
2 changed files with 328 additions and 0 deletions

View File

@ -40,6 +40,27 @@ clock that's about 10% slower than the original. Luckily, most monitors
don't mind. don't mind.
Single-double mode
------------------
In single mode, only one set/clear can be performed per pixel. They are
arranges such that the first pixel can only turn on channels, the
following pixel can only turn off channels, and so on.
In double mode, a set and a clear is performed per pixel. This changes
the timing such that it differs substantially from VGA, but some
monitors can still synchronize with this.
The resulting signals for various bit patterns are shown in res.fig
Each group shows the input pixels, and signal for single mode, and the
signal for double mode. "S" indicates a point where the channel can be
turned on, "C" indicates a point where it can be turned off.
Note that there are probably other mapping algorithms that would yield
better results. The mapping is not a very performance-critical part of
ubb-vga. Improvements are welcome.
Compatibility Compatibility
------------- -------------

307
ubb-vga/res.fig Normal file
View File

@ -0,0 +1,307 @@
#FIG 3.2 Produced by xfig version 3.2.5b
Landscape
Center
Metric
A4
100.00
Single
-2
1200 2
6 405 855 12645 3915
6 495 3735 3150 3915
4 1 0 50 -1 18 15 0.0000 4 180 165 585 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 810 3915 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 1035 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 1485 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 1260 3915 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 1935 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 2385 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 2835 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 1710 3915 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 2160 3915 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 2610 3915 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 3060 3915 C\001
-6
6 585 2610 3015 2790
4 1 0 50 -1 18 15 0.0000 4 180 165 675 2790 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 1125 2790 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 1575 2790 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 2475 2790 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 2025 2790 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 2925 2790 C\001
-6
6 3735 2610 6165 2790
4 1 0 50 -1 18 15 0.0000 4 180 165 3825 2790 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 4275 2790 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 4725 2790 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 5625 2790 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 5175 2790 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 6075 2790 C\001
-6
6 3645 3735 6300 3915
4 1 0 50 -1 18 15 0.0000 4 180 165 3735 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 3960 3915 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 4185 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 4635 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 4410 3915 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 5085 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 5535 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 5985 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 4860 3915 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 5310 3915 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 5760 3915 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 6210 3915 C\001
-6
6 6885 2610 9315 2790
4 1 0 50 -1 18 15 0.0000 4 180 165 6975 2790 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 7425 2790 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 7875 2790 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 8775 2790 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 8325 2790 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 9225 2790 C\001
-6
6 10035 2610 12465 2790
4 1 0 50 -1 18 15 0.0000 4 180 165 10125 2790 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 10575 2790 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 11025 2790 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 11925 2790 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 11475 2790 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 12375 2790 C\001
-6
6 6795 3735 9450 3915
4 1 0 50 -1 18 15 0.0000 4 180 165 6885 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 7110 3915 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 7335 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 7785 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 7560 3915 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 8235 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 8685 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 9135 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 8010 3915 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 8460 3915 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 8910 3915 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 9360 3915 C\001
-6
6 9945 3735 12600 3915
4 1 0 50 -1 18 15 0.0000 4 180 165 10035 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 10260 3915 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 10485 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 10935 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 10710 3915 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 11385 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 11835 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 12285 3915 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 11160 3915 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 11610 3915 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 12060 3915 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 12510 3915 C\001
-6
2 2 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
450 900 3150 900 3150 1350 450 1350 450 900
2 2 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 5
3600 900 6300 900 6300 1350 3600 1350 3600 900
2 2 0 2 0 7 40 -1 -1 0.000 0 0 -1 0 0 5
9900 900 12600 900 12600 1350 9900 1350 9900 900
2 2 0 2 0 7 50 -1 0 0.000 0 0 -1 0 0 5
5400 900 4950 900 4950 1350 5400 1350 5400 900
2 2 0 1 0 7 50 -1 0 0.000 0 0 7 0 0 5
1350 900 1800 900 1800 1350 1350 1350 1350 900
2 1 0 2 0 7 50 -1 0 0.000 0 0 -1 0 0 2
3600 2475 6300 2475
2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 6
450 2475 1575 2475 1575 2025 2025 2025 2025 2475 3150 2475
2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 6
450 3600 1485 3600 1485 3150 2160 3150 2160 3600 3150 3600
2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 6
3600 3600 5085 3600 5085 3150 5760 3150 5760 3600 6300 3600
2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
900 900 900 1350
2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
2250 900 2250 1350
2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
2655 900 2655 1350
2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
4050 900 4050 1350
2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
4500 900 4500 1350
2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
5850 900 5850 1350
2 2 0 2 0 7 50 -1 0 0.000 0 0 -1 0 0 5
6750 900 7650 900 7650 1350 6750 1350 6750 900
2 2 0 2 0 7 50 -1 0 0.000 0 0 -1 0 0 5
8100 900 9450 900 9450 1350 8100 1350 8100 900
2 2 0 2 0 7 50 -1 0 0.000 0 0 -1 0 0 5
9900 900 11250 900 11250 1350 9900 1350 9900 900
2 2 0 2 0 7 50 -1 0 0.000 0 0 -1 0 0 5
11700 900 12600 900 12600 1350 11700 1350 11700 900
2 1 0 2 7 7 45 -1 0 0.000 0 0 -1 0 0 2
7200 900 7200 1350
2 1 0 2 7 7 45 -1 0 0.000 0 0 -1 0 0 2
8595 900 8595 1350
2 1 0 2 7 7 45 -1 0 0.000 0 0 -1 0 0 2
9045 900 9045 1350
2 1 0 2 7 7 45 -1 0 0.000 0 0 -1 0 0 2
10350 900 10350 1350
2 1 0 2 7 7 45 -1 0 0.000 0 0 -1 0 0 2
10800 900 10800 1350
2 1 0 2 7 7 45 -1 0 0.000 0 0 -1 0 0 2
12150 900 12150 1350
2 2 0 2 0 7 40 -1 -1 0.000 0 0 -1 0 0 5
6750 900 9450 900 9450 1350 6750 1350 6750 900
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 2
6750 2025 9450 2025
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 6
9900 2025 11475 2025 11475 2475 11925 2475 11925 2025 12600 2025
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 6
6750 3150 8010 3150 8010 3600 8235 3600 8235 3150 9450 3150
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 6
9900 3150 11610 3150 11610 3600 11835 3600 11835 3150 12600 3150
-6
6 495 7785 3150 7965
4 1 0 50 -1 18 15 0.0000 4 180 165 585 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 810 7965 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 1035 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 1485 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 1260 7965 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 1935 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 2385 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 2835 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 1710 7965 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 2160 7965 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 2610 7965 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 3060 7965 C\001
-6
6 585 6660 3015 6840
4 1 0 50 -1 18 15 0.0000 4 180 165 675 6840 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 1125 6840 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 1575 6840 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 2475 6840 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 2025 6840 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 2925 6840 C\001
-6
6 3735 6660 6165 6840
4 1 0 50 -1 18 15 0.0000 4 180 165 3825 6840 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 4275 6840 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 4725 6840 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 5625 6840 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 5175 6840 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 6075 6840 C\001
-6
6 3645 7785 6300 7965
4 1 0 50 -1 18 15 0.0000 4 180 165 3735 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 3960 7965 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 4185 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 4635 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 4410 7965 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 5085 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 5535 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 5985 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 4860 7965 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 5310 7965 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 5760 7965 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 6210 7965 C\001
-6
6 6885 6660 9315 6840
4 1 0 50 -1 18 15 0.0000 4 180 165 6975 6840 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 7425 6840 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 7875 6840 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 8775 6840 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 8325 6840 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 9225 6840 C\001
-6
6 10035 6660 12465 6840
4 1 0 50 -1 18 15 0.0000 4 180 165 10125 6840 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 10575 6840 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 11025 6840 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 11925 6840 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 11475 6840 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 12375 6840 C\001
-6
6 6795 7785 9450 7965
4 1 0 50 -1 18 15 0.0000 4 180 165 6885 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 7110 7965 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 7335 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 7785 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 7560 7965 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 8235 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 8685 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 9135 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 8010 7965 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 8460 7965 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 8910 7965 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 9360 7965 C\001
-6
6 9945 7785 12600 7965
4 1 0 50 -1 18 15 0.0000 4 180 165 10035 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 10260 7965 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 10485 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 10935 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 10710 7965 C\001
4 1 0 50 -1 18 15 0.0000 4 180 165 11385 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 11835 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 165 12285 7965 S\001
4 1 0 50 -1 18 15 0.0000 4 180 180 11160 7965 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 11610 7965 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 12060 7965 C\001
4 1 0 50 -1 18 15 0.0000 4 180 180 12510 7965 C\001
-6
2 2 0 2 0 7 40 -1 -1 0.000 0 0 -1 0 0 5
450 4950 3150 4950 3150 5400 450 5400 450 4950
2 2 0 2 0 7 40 -1 -1 0.000 0 0 -1 0 0 5
3600 4950 6300 4950 6300 5400 3600 5400 3600 4950
2 2 0 2 0 7 40 -1 -1 0.000 0 0 -1 0 0 5
9900 4950 12600 4950 12600 5400 9900 5400 9900 4950
2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
2250 4950 2250 5400
2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
2655 4950 2655 5400
2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
4050 4950 4050 5400
2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
5850 4950 5850 5400
2 2 0 2 0 7 50 -1 0 0.000 0 0 -1 0 0 5
8100 4950 9450 4950 9450 5400 8100 5400 8100 4950
2 2 0 2 0 7 50 -1 0 0.000 0 0 -1 0 0 5
11700 4950 12600 4950 12600 5400 11700 5400 11700 4950
2 1 0 2 7 7 45 -1 0 0.000 0 0 -1 0 0 2
8595 4950 8595 5400
2 1 0 2 7 7 45 -1 0 0.000 0 0 -1 0 0 2
9045 4950 9045 5400
2 1 0 2 7 7 45 -1 0 0.000 0 0 -1 0 0 2
10350 4950 10350 5400
2 1 0 2 7 7 45 -1 0 0.000 0 0 -1 0 0 2
12150 4950 12150 5400
2 2 0 2 0 7 40 -1 -1 0.000 0 0 -1 0 0 5
6750 4950 9450 4950 9450 5400 6750 5400 6750 4950
2 2 0 1 0 7 50 -1 0 0.000 0 0 7 0 0 5
900 4950 1800 4950 1800 5400 900 5400 900 4950
2 2 0 2 0 7 50 -1 0 0.000 0 0 -1 0 0 5
5400 4950 4500 4950 4500 5400 5400 5400 5400 4950
2 1 0 2 7 7 45 -1 0 0.000 0 0 -1 0 0 2
1350 4950 1350 5400
2 1 0 2 7 7 45 -1 0 0.000 0 0 -1 0 0 2
4950 4950 4950 5400
2 2 0 2 0 7 50 -1 0 0.000 0 0 -1 0 0 5
6750 4950 7200 4950 7200 5400 6750 5400 6750 4950
2 2 0 2 0 7 50 -1 0 0.000 0 0 -1 0 0 5
9900 4950 10800 4950 10800 5400 9900 5400 9900 4950
2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
7650 4950 7650 5400
2 1 0 2 0 7 50 -1 -1 0.000 0 0 -1 0 0 2
11250 4950 11250 5400
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 6
450 6525 1575 6525 1575 6075 2025 6075 2025 6525 3150 6525
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 6
3600 6525 4725 6525 4725 6075 6075 6075 6075 6525 6300 6525
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 6
450 7650 1035 7650 1035 7200 2160 7200 2160 7650 3150 7650
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 6
3600 7650 4635 7650 4635 7200 5760 7200 5760 7650 6255 7650
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 6
6750 6075 7425 6075 7425 6525 8775 6525 8775 6075 9450 6075
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 6
9900 6075 11475 6075 11475 6525 11925 6525 11925 6075 12600 6075
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 6
6750 7200 7560 7200 7560 7650 8235 7650 8235 7200 9450 7200
2 1 0 2 0 7 45 -1 -1 0.000 0 0 -1 0 0 6
9900 7200 11160 7200 11160 7650 11835 7650 11835 7200 12600 7200