ByteStuffer Module

bytestuffer module

This module is MyHDL implementation of Byte Stuffer used for JPEG Encoder

class jpegenc.subblocks.bytestuffer.bytestuffer.BSInputDataStream(width_data)

Bases: object

Input interface for the Byte Stuffer

data_in : Input data to Byte Stuffer read : read signal sent to input FIFO fifo_empty : asserts if input FIFO is empty

class jpegenc.subblocks.bytestuffer.bytestuffer.BSOutputDataStream(width_data, width_addr_out)

Bases: object

Output Interface for the Byte Stuffer

byte : output byte from the Byte Stuffer addr : output address to the RAM data_valid : asserts when output data is valid

class jpegenc.subblocks.bytestuffer.bytestuffer.BScntrl

Bases: object

Control Interface for Byte Stuffer

sof : start of frame start : send input frame when start asserts ready : ready to access next frame

jpegenc.subblocks.bytestuffer.bytestuffer.bytestuffer

Byte stuffer checks for 0xFF byte and adds a 0xFF00 Byte

Constants:

width_addr_out : maximum adress width of the output RAM width_out : width of the data in the ouput RAM

I/O Ports :

bs_in_stream : input interface to the byte stuffer bs_cntrl : control interface to the byte stuffer bs_out_stream : output interface to the byte stuffer num_enc_byte : number of bytes encoded to output RAM