Testing
Several Verilog test benches are included to verify the
operation of the video and SRAM test modules. The NTSC
test benches generate a BMP file to simulate viewing the
output on a television screen, as seen in Figure 7. The
code converts the eight-bit 3-3-2 RGB color to a 24-bit
RGB color to prevent having to deal with indexed palettes
in the BMP file.
Conclusion
There are some issues with the
NTSC shield design. At this point,
there is no way to turn on and off
the video signal via the FPGA since
the AD723 enable is hard-wired.
The same is true for the SRAM, as
we discussed earlier. Additionally,
the NTSC sync/pixel generator
depends on a lot of combinational
logic. This can be tightened up with
more registers and it’s something I’m
planning on fixing in the future.
There are also some issues with
the video output. You will notice
dot crawl on the composite output
when looking at the color bars. This
is normal at the boundary between
two different colors, but it can be
distracting.
Another issue is pixel jitter.
This happens because the AD723
is operating asynchronously from
the Mojo V3. To fix this, the NTSC
shield would have to be redesigned
to send the 14.31818 MHz color
burst oscillator to the Mojo V3.
Clock domain crossing logic would
be needed to synchronize the two
systems. You know what? I’ll leave
that as a fun project for you!
So, what can we do with this
thing, anyway? Well, you already have
a 256 font ROM at your disposal.
It wouldn’t be too tough to write
a video interface for the Mojo V3
serial port. With the 1 MiB SRAM,
you could certainly make a video
game system on the Mojo V3. Oh, I
forgot to mention! The NTSC shield is
compatible with the Embedded Micro
SDRAM shield. Put a soft processor
core on the FPGA and design a
miniature computer using the NTSC shield as the video
sub-system!
I’d like to acknowledge Dr. Pong P. Chu’s book,
FPGA Prototyping by Verilog Examples. The book was
instrumental to me understanding how to implement a
SRAM controller. The book also provided insight on how to
implement a video controller. Although Dr. Chu references
the VGA standard, it was helpful for me to translate it to
the NTSC standard. Until next time, have fun! NV
Order Online or Toll Free 1-800-826-5432
ALLELECTRONICS.com Surplus & New Parts & Supplies since 1967
25FT CATEGORY 5E PATCH CABLE WATERPROOF AUDIO TRANSDUCER
10 for $1.25 each 100 for $1.00 each
Snagless molded RJ45, 350Mhz, UTP, Pure Bare Copper stranded 24AWG, Blue CAT# CB-525
10 for $2.25 each 100 for $1.85 each $250 each These transducers produce sound by conducting vibrations into the surface they are attached to. Connect to an audio source and press it against the nearest table, wall or cardboard box and hear surprisingly good sound re- production. Waterproof and heat resistant, they are ideal for marine, RV, sauna or golf cart. 2. 4” diameter. 8 Ohm, 20 Watt. CAT# AT- 20 for
2 $2900
36" MICRO-USB CABLE - VERY SPECIAL PRICE We just received a bunch of these Micro-USB to USB cables, and we'd like to move them. One of the most popular charge and sync cables for smart phones, tablets, cameras and other portable devices. Connects to USB port in cars, computers and chargers. 3' overall length. CAT# CB-427 $150 each 0.95" SPHERICAL MAGNET 0.95" ( 24.5mm) spherical magnet, possibly neodymium, with a fairly strong pull. Black in color with a shiny metallic finish. CAT# MAG-162 $150 each 4-OUTLET POWER STRIP WITH 10 FT. CORD Compact, power distribution strip with 15A circuit breaker/ lighted power switch. Heavy-duty 10' 14/3 power cord with space-saving right-angle plug. Keyhole slots in rear to allow wall or desk mounting. 9. 25" x 1.60" x 1.20" high. cULus. CAT# PST- 40 $795 each
92 PIECE ASSORTMENT OF GEARS, PULLEYS, AXLES ETC. Large set of 92 various sized plastic gears, racks, wheel set, pulleys, belts and axles. A lot of stuff at a nice price! CAT# GR- 53 $995 set HIGH-VOLTAGE TASER COMPONENT Converts 3. 7 Volts to approx- imately 18,000 Volts. The main component in a taser/ stun gun, it creates quite a spark and a loud crackling noise when the probes are within 1/2" inch of each other. 1.35" x 1.55" x 0.31". The output leads have pointed probes attached. Warning: Operate carefully! CAT# HVS-01 $950 each
September/October 2018 75