1. Introduction1.1 Abstract1.2 Peripherals used with the FPGA 1.3 Overall Design Schematic1.4 System Block Diagram 2. Ethernet Controller2.1 Ethernet Timing2.2 Ethernet Driver2.2.1 main.c 2.2.2 etherReceive.c 2.2.3 etherSend.c2.2.4 etherFunc.c2.2.5 Xilnet library2.3 Ethernet Transmission 3. JPEG Decompression3.1 Overview3.2 JPEG File Structure3.3 Algorithm Description3.3.1 Brief Overview of decoding a JPG file3.4 Requirements of the C code 3.5 Source Code Overview3.5.1 jpeg.c3.5.2 parse.c3.6 Memory Use4. State Machine4.1 Overview4.1.1 State Machine Control Signals4.1.2 Control Signal Generation4.2 SRAM-Video State Machine4.3 Deploying Ethernet4.4 Jaycam State Machine4.5 Ethernet Priority State Machine5. Miscellaneous5.1 Approach to this documentation5.2 Challenges Faced5.3 Lessons Learned5.4 Special Accolade 6. Source Code6.1 system.mhs 6.2 system.mss6.3 system.ucf 6.4 OPB Arbiter VHDL Source Code6.4.1 opb_xsb300_v2_1_0.pao6.4.2 opb_xsb300_v2_1_0.mpd6.4.3a opb_xsb300.vhd (Section 4.2)6.4.3b opb_xsb300.vhd (Section 4.4)6.4.3c opb_xsb300.vhd (Section 4.5 with modifications for Ethernet)6.4.4a memoryctrl.vhd (Section 4.2)6.4.4b memoryctrl.vhd (Section 4.4)6.4.4c memoryctrl.vhd (Section 4.5)6.4.5 pad_io.vhd6.4.6 vgatiming.vhd6.4.7 vga.vhd 6.5 Clock generator6.5.1 clkgen_v2_1_0.pao6.5.2 clkgen_v2_1_0.mpd6.5.3 clkgen.v6.6 Ethernet Driver Source Code6.6.1 ether_reg.h6.6.2 etherFunc.c 6.6.3 etherReceive.c6.6.4 etherSend.c6.7 JPEG Decompression Source Code6.7.1 jpeg.h 6.7.2 color.c6.7.3 utils.c6.7.4 fast_int_idct.c6.7.5 parse.c6.7.6 huffman.c6.7.7 tree_vld.c6.7.8 main.cSPYCAM REPORT KSHITIJ MISRA AMIT MEHTA KEN TANGTable of Contents 1. Introduction..................................................................................................................... 4 1.1 Abstract..................................................................................................................... 4 1.2 Peripherals used with the FPGA............................................................................... 4 1.3 Overall Design Schematic......................................................................................... 5 1.4 System Block Diagram............................................................................................. 5 2. Ethernet Controller......................................................................................................... 7 2.1 Ethernet Timing ........................................................................................................ 7 2.2 Ethernet Driver.......................................................................................................... 8 2.2.1 main.c................................................................................................................. 8 2.2.2 etherReceive.c.................................................................................................... 8 2.2.3 etherSend.c......................................................................................................... 8 2.2.4 etherFunc.c......................................................................................................... 8 2.2.5 Xilnet library...................................................................................................... 9 2.3 Ethernet Transmission .............................................................................................. 9 3. JPEG Decompression.................................................................................................... 10 3.1 Overview................................................................................................................. 10 3.2 JPEG File Structure................................................................................................. 10 3.3 Algorithm Description ............................................................................................ 11 3.3.1 Brief Overview of decoding a JPG file............................................................ 12 3.4 Requirements of the C code.................................................................................... 13 3.5 Source Code Overview ........................................................................................... 14 3.5.1 jpeg.c................................................................................................................ 14 3.5.2 parse.c .............................................................................................................. 15 3.6 Memory Use............................................................................................................ 15 4. State Machine................................................................................................................ 15 4.1 Overview................................................................................................................. 15 4.1.1 State Machine Control Signals......................................................................... 15 4.1.2 Control Signal Generation ............................................................................... 16 4.2 SRAM-Video State Machine.................................................................................. 16 4.3 Deploying Ethernet................................................................................................. 17 4.4 Jaycam State Machine............................................................................................. 17 4.5 Ethernet Priority State Machine.............................................................................. 17 5. Miscellaneous ............................................................................................................... 18 5.1 Approach to this documentation............................................................................. 18 5.2 Challenges Faced.................................................................................................... 18 5.3 Lessons Learned...................................................................................................... 19 5.4 Special Accolade..................................................................................................... 20 6. Source Code.................................................................................................................. 24 6.1
View Full Document