1 ///////////////////////////////////////////////////////////////////// 3 //// JPEG Encoder Core - Verilog //// 5 //// Author: David Lundgren //// 6 //// davidklun@gmail.com //// 8 ///////////////////////////////////////////////////////////////////// 10 //// Copyright (C) 2009 David Lundgren //// 11 //// davidklun@gmail.com //// 13 //// This source file may be used and distributed without //// 14 //// restriction provided that this copyright statement is not //// 15 //// removed from the file and that any derivative work contains //// 16 //// the original copyright notice and the associated disclaimer.//// 18 //// THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY //// 19 //// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED //// 20 //// TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS //// 21 //// FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR //// 22 //// OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, //// 23 //// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES //// 24 //// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE //// 25 //// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR //// 26 //// BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF //// 27 //// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT //// 28 //// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT //// 29 //// OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE //// 30 //// POSSIBILITY OF SUCH DAMAGE. //// 32 ///////////////////////////////////////////////////////////////////// 34 /* This module combines the dct, quantizer, and huffman modules. **/ 37 `timescale 1ns / 100ps
[31:0] 1422JPEG_bitstream
792JPEG_bitstreamreg[31:0]
771output_reg_countreg[4:0]