24. The method of claim 13 further comprising: binarizing the syntax element into a bin string based on a value of the syntax element at the first clock cycle.
13. A method of context-based adaptive binary arithmetic encoding and decoding in a pipeline flow, the method comprising: reading context models related to a syntax element having a number of bins (M), obtaining information from at least one neighbor block and calculating a variable based on the information from the at least one neighbor block for the syntax element at a first clock cycle; calculating a first index value for a first bin of the syntax element based on the variable and loading one of the context models for the first bin based on the first index value at a second clock cycle; processing the first bin in an encoding process or a decoding process based on the one context model related to the first bin and updating said one context model after processing the first bin at a third clock cycle; calculating a second index value for a second bin of the syntax element based on the variable and loading one of the context models for the second bin based on the second index value at the third clock cycle; and processing the second bin in the encoding process or the decoding process based on the one context model related to the second bin and updating said one context model after processing the second bin at a fourth clock cycle; wherein reading context models, calculating the first index value, processing the first bin, calculating the second index value, processing the second bin are performed by circuitry configured to read context models, calculate the first index value, process the first bin, calculate the second index value, and process the second bin.