Backend Module

backend module

MyHDL implementation of Backend Module

jpegenc.subblocks.backend.backend.backend

Constants:

width_data : width of the input data width_addr : width of the address accessed by a module width_runlength : width of the runlength value width_size : width of the size value width_out_byte : width of output byte width_num_bytes : max encoded bytes width

backend_soft module

software prototype for backend module

jpegenc.subblocks.backend.backend_soft.backend_ref(block, prev_dc_0, prev_dc_1, prev_dc_2, register, color_component, pointer)

backend reference module

jpegenc.subblocks.backend.backend_soft.build_huffman_rom_tables(csvfile)

build huffman tables

jpegenc.subblocks.backend.backend_soft.build_rom_tables(csvfile)

build huffman tables

jpegenc.subblocks.backend.backend_soft.bytestuffer(block)

bytestuffer reference module

jpegenc.subblocks.backend.backend_soft.divider(block, color_component)

divider reference module

jpegenc.subblocks.backend.backend_soft.divider_ref(dividend, divisor)

software implementation of divider

jpegenc.subblocks.backend.backend_soft.entropy_encode(amplitude)

Model of the entropy encoding

Arguments:
amplitude (int): given an integer generate the encoding
Returns:
amplitude_ref: size_ref:
jpegenc.subblocks.backend.backend_soft.huffman_final(register, pointer)

divide huffman code into bytes

jpegenc.subblocks.backend.backend_soft.huffman_ref(runlength_block, amplitude_block, size_block, color_component, register, pointer)

reference model for huffman encoder

jpegenc.subblocks.backend.backend_soft.runlength(block, color_component, prev_dc_0, prev_dc_1, prev_dc_2)

reference for runlength encoder module

jpegenc.subblocks.backend.backend_soft.table_huff_gen(filename, base)

huffman table generator

dualram module

jpegenc.subblocks.backend.dualram.dram

default addr width 6, data width 12