h264cavlc.vhd
来自「VHDL语言实现H.264的opencore」· VHDL 代码 · 共 1,077 行 · 第 1/5 页
VHD
1,077 行
b"01010" when trailingones=0 and totalcoeffs=16 and ctable=2 else
b"01010" when trailingones=1 and totalcoeffs=16 and ctable=2 else
b"01010" when trailingones=2 and totalcoeffs=16 and ctable=2 else
b"01010" when trailingones=3 and totalcoeffs=16 and ctable=2 else
--
b"00110" when ctable=3 else
--
b"00010" when trailingones=0 and totalcoeffs=0 and ctable=4 else
b"00110" when trailingones=0 and totalcoeffs=1 and ctable=4 else
b"00001" when trailingones=1 and totalcoeffs=1 and ctable=4 else
b"00110" when trailingones=0 and totalcoeffs=2 and ctable=4 else
b"00110" when trailingones=1 and totalcoeffs=2 and ctable=4 else
b"00011" when trailingones=2 and totalcoeffs=2 and ctable=4 else
b"00110" when trailingones=0 and totalcoeffs=3 and ctable=4 else
b"00111" when trailingones=1 and totalcoeffs=3 and ctable=4 else
b"00111" when trailingones=2 and totalcoeffs=3 and ctable=4 else
b"00110" when trailingones=3 and totalcoeffs=3 and ctable=4 else
b"00110" when trailingones=0 and totalcoeffs=4 and ctable=4 else
b"01000" when trailingones=1 and totalcoeffs=4 and ctable=4 else
b"01000" when trailingones=2 and totalcoeffs=4 and ctable=4 else
b"00111"; -- trailingones=3 and totalcoeffs=4 and ctable=4
--
-- tables for TotalZeros token
--
ztoken <=
b"001" when totalzeros=0 and totalcoeffs=1 and ztable='0' else
b"011" when totalzeros=1 and totalcoeffs=1 and ztable='0' else
b"010" when totalzeros=2 and totalcoeffs=1 and ztable='0' else
b"011" when totalzeros=3 and totalcoeffs=1 and ztable='0' else
b"010" when totalzeros=4 and totalcoeffs=1 and ztable='0' else
b"011" when totalzeros=5 and totalcoeffs=1 and ztable='0' else
b"010" when totalzeros=6 and totalcoeffs=1 and ztable='0' else
b"011" when totalzeros=7 and totalcoeffs=1 and ztable='0' else
b"010" when totalzeros=8 and totalcoeffs=1 and ztable='0' else
b"011" when totalzeros=9 and totalcoeffs=1 and ztable='0' else
b"010" when totalzeros=10 and totalcoeffs=1 and ztable='0' else
b"011" when totalzeros=11 and totalcoeffs=1 and ztable='0' else
b"010" when totalzeros=12 and totalcoeffs=1 and ztable='0' else
b"011" when totalzeros=13 and totalcoeffs=1 and ztable='0' else
b"010" when totalzeros=14 and totalcoeffs=1 and ztable='0' else
b"001" when totalzeros=15 and totalcoeffs=1 and ztable='0' else
b"111" when totalzeros=0 and totalcoeffs=2 and ztable='0' else
b"110" when totalzeros=1 and totalcoeffs=2 and ztable='0' else
b"101" when totalzeros=2 and totalcoeffs=2 and ztable='0' else
b"100" when totalzeros=3 and totalcoeffs=2 and ztable='0' else
b"011" when totalzeros=4 and totalcoeffs=2 and ztable='0' else
b"101" when totalzeros=5 and totalcoeffs=2 and ztable='0' else
b"100" when totalzeros=6 and totalcoeffs=2 and ztable='0' else
b"011" when totalzeros=7 and totalcoeffs=2 and ztable='0' else
b"010" when totalzeros=8 and totalcoeffs=2 and ztable='0' else
b"011" when totalzeros=9 and totalcoeffs=2 and ztable='0' else
b"010" when totalzeros=10 and totalcoeffs=2 and ztable='0' else
b"011" when totalzeros=11 and totalcoeffs=2 and ztable='0' else
b"010" when totalzeros=12 and totalcoeffs=2 and ztable='0' else
b"001" when totalzeros=13 and totalcoeffs=2 and ztable='0' else
b"000" when totalzeros=14 and totalcoeffs=2 and ztable='0' else
b"101" when totalzeros=0 and totalcoeffs=3 and ztable='0' else
b"111" when totalzeros=1 and totalcoeffs=3 and ztable='0' else
b"110" when totalzeros=2 and totalcoeffs=3 and ztable='0' else
b"101" when totalzeros=3 and totalcoeffs=3 and ztable='0' else
b"100" when totalzeros=4 and totalcoeffs=3 and ztable='0' else
b"011" when totalzeros=5 and totalcoeffs=3 and ztable='0' else
b"100" when totalzeros=6 and totalcoeffs=3 and ztable='0' else
b"011" when totalzeros=7 and totalcoeffs=3 and ztable='0' else
b"010" when totalzeros=8 and totalcoeffs=3 and ztable='0' else
b"011" when totalzeros=9 and totalcoeffs=3 and ztable='0' else
b"010" when totalzeros=10 and totalcoeffs=3 and ztable='0' else
b"001" when totalzeros=11 and totalcoeffs=3 and ztable='0' else
b"001" when totalzeros=12 and totalcoeffs=3 and ztable='0' else
b"000" when totalzeros=13 and totalcoeffs=3 and ztable='0' else
b"011" when totalzeros=0 and totalcoeffs=4 and ztable='0' else
b"111" when totalzeros=1 and totalcoeffs=4 and ztable='0' else
b"101" when totalzeros=2 and totalcoeffs=4 and ztable='0' else
b"100" when totalzeros=3 and totalcoeffs=4 and ztable='0' else
b"110" when totalzeros=4 and totalcoeffs=4 and ztable='0' else
b"101" when totalzeros=5 and totalcoeffs=4 and ztable='0' else
b"100" when totalzeros=6 and totalcoeffs=4 and ztable='0' else
b"011" when totalzeros=7 and totalcoeffs=4 and ztable='0' else
b"011" when totalzeros=8 and totalcoeffs=4 and ztable='0' else
b"010" when totalzeros=9 and totalcoeffs=4 and ztable='0' else
b"010" when totalzeros=10 and totalcoeffs=4 and ztable='0' else
b"001" when totalzeros=11 and totalcoeffs=4 and ztable='0' else
b"000" when totalzeros=12 and totalcoeffs=4 and ztable='0' else
b"101" when totalzeros=0 and totalcoeffs=5 and ztable='0' else
b"100" when totalzeros=1 and totalcoeffs=5 and ztable='0' else
b"011" when totalzeros=2 and totalcoeffs=5 and ztable='0' else
b"111" when totalzeros=3 and totalcoeffs=5 and ztable='0' else
b"110" when totalzeros=4 and totalcoeffs=5 and ztable='0' else
b"101" when totalzeros=5 and totalcoeffs=5 and ztable='0' else
b"100" when totalzeros=6 and totalcoeffs=5 and ztable='0' else
b"011" when totalzeros=7 and totalcoeffs=5 and ztable='0' else
b"010" when totalzeros=8 and totalcoeffs=5 and ztable='0' else
b"001" when totalzeros=9 and totalcoeffs=5 and ztable='0' else
b"001" when totalzeros=10 and totalcoeffs=5 and ztable='0' else
b"000" when totalzeros=11 and totalcoeffs=5 and ztable='0' else
b"001" when totalzeros=0 and totalcoeffs=6 and ztable='0' else
b"001" when totalzeros=1 and totalcoeffs=6 and ztable='0' else
b"111" when totalzeros=2 and totalcoeffs=6 and ztable='0' else
b"110" when totalzeros=3 and totalcoeffs=6 and ztable='0' else
b"101" when totalzeros=4 and totalcoeffs=6 and ztable='0' else
b"100" when totalzeros=5 and totalcoeffs=6 and ztable='0' else
b"011" when totalzeros=6 and totalcoeffs=6 and ztable='0' else
b"010" when totalzeros=7 and totalcoeffs=6 and ztable='0' else
b"001" when totalzeros=8 and totalcoeffs=6 and ztable='0' else
b"001" when totalzeros=9 and totalcoeffs=6 and ztable='0' else
b"000" when totalzeros=10 and totalcoeffs=6 and ztable='0' else
b"001" when totalzeros=0 and totalcoeffs=7 and ztable='0' else
b"001" when totalzeros=1 and totalcoeffs=7 and ztable='0' else
b"101" when totalzeros=2 and totalcoeffs=7 and ztable='0' else
b"100" when totalzeros=3 and totalcoeffs=7 and ztable='0' else
b"011" when totalzeros=4 and totalcoeffs=7 and ztable='0' else
b"011" when totalzeros=5 and totalcoeffs=7 and ztable='0' else
b"010" when totalzeros=6 and totalcoeffs=7 and ztable='0' else
b"001" when totalzeros=7 and totalcoeffs=7 and ztable='0' else
b"001" when totalzeros=8 and totalcoeffs=7 and ztable='0' else
b"000" when totalzeros=9 and totalcoeffs=7 and ztable='0' else
b"001" when totalzeros=0 and totalcoeffs=8 and ztable='0' else
b"001" when totalzeros=1 and totalcoeffs=8 and ztable='0' else
b"001" when totalzeros=2 and totalcoeffs=8 and ztable='0' else
b"011" when totalzeros=3 and totalcoeffs=8 and ztable='0' else
b"011" when totalzeros=4 and totalcoeffs=8 and ztable='0' else
b"010" when totalzeros=5 and totalcoeffs=8 and ztable='0' else
b"010" when totalzeros=6 and totalcoeffs=8 and ztable='0' else
b"001" when totalzeros=7 and totalcoeffs=8 and ztable='0' else
b"000" when totalzeros=8 and totalcoeffs=8 and ztable='0' else
b"001" when totalzeros=0 and totalcoeffs=9 and ztable='0' else
b"000" when totalzeros=1 and totalcoeffs=9 and ztable='0' else
b"001" when totalzeros=2 and totalcoeffs=9 and ztable='0' else
b"011" when totalzeros=3 and totalcoeffs=9 and ztable='0' else
b"010" when totalzeros=4 and totalcoeffs=9 and ztable='0' else
b"001" when totalzeros=5 and totalcoeffs=9 and ztable='0' else
b"001" when totalzeros=6 and totalcoeffs=9 and ztable='0' else
b"001" when totalzeros=7 and totalcoeffs=9 and ztable='0' else
b"001" when totalzeros=0 and totalcoeffs=10 and ztable='0' else
b"000" when totalzeros=1 and totalcoeffs=10 and ztable='0' else
b"001" when totalzeros=2 and totalcoeffs=10 and ztable='0' else
b"011" when totalzeros=3 and totalcoeffs=10 and ztable='0' else
b"010" when totalzeros=4 and totalcoeffs=10 and ztable='0' else
b"001" when totalzeros=5 and totalcoeffs=10 and ztable='0' else
b"001" when totalzeros=6 and totalcoeffs=10 and ztable='0' else
b"000" when totalzeros=0 and totalcoeffs=11 and ztable='0' else
b"001" when totalzeros=1 and totalcoeffs=11 and ztable='0' else
b"001" when totalzeros=2 and totalcoeffs=11 and ztable='0' else
b"010" when totalzeros=3 and totalcoeffs=11 and ztable='0' else
b"001" when totalzeros=4 and totalcoeffs=11 and ztable='0' else
b"011" when totalzeros=5 and totalcoeffs=11 and ztable='0' else
b"000" when totalzeros=0 and totalcoeffs=12 and ztable='0' else
b"001" when totalzeros=1 and totalcoeffs=12 and ztable='0' else
b"001" when totalzeros=2 and totalcoeffs=12 and ztable='0' else
b"001" when totalzeros=3 and totalcoeffs=12 and ztable='0' else
b"001" when totalzeros=4 and totalcoeffs=12 and ztable='0' else
b"000" when totalzeros=0 and totalcoeffs=13 and ztable='0' else
b"001" when totalzeros=1 and totalcoeffs=13 and ztable='0' else
b"001" when totalzeros=2 and totalcoeffs=13 and ztable='0' else
b"001" when totalzeros=3 and totalcoeffs=13 and ztable='0' else
b"000" when totalzeros=0 and totalcoeffs=14 and ztable='0' else
b"001" when totalzeros=1 and totalcoeffs=14 and ztable='0' else
b"001" when totalzeros=2 and totalcoeffs=14 and ztable='0' else
b"000" when totalzeros=0 and totalcoeffs=15 and ztable='0' else
b"001" when totalzeros=1 and totalcoeffs=15 and ztable='0' else
--
b"001" when totalzeros=0 and totalcoeffs=1 and ztable='1' else
b"001" when totalzeros=1 and totalcoeffs=1 and ztable='1' else
b"001" when totalzeros=2 and totalcoeffs=1 and ztable='1' else
b"000" when totalzeros=3 and totalcoeffs=1 and ztable='1' else
b"001" when totalzeros=0 and totalcoeffs=2 and ztable='1' else
b"001" when totalzeros=1 and totalcoeffs=2 and ztable='1' else
b"000" when totalzeros=2 and totalcoeffs=2 and ztable='1' else
b"001" when totalzeros=0 and totalcoeffs=3 and ztable='1' else
b"000"; -- totalzeros=1 and totalcoeffs=3 and ztable='1'
--
ztoken_len <=
b"0001" when totalzeros=0 and totalcoeffs=1 and ztable='0' else
b"0011" when totalzeros=1 and totalcoeffs=1 and ztable='0' else
b"0011" when totalzeros=2 and totalcoeffs=1 and ztable='0' else
b"0100" when totalzeros=3 and totalcoeffs=1 and ztable='0' else
b"0100" when totalzeros=4 and totalcoeffs=1 and ztable='0' else
b"0101" when totalzeros=5 and totalcoeffs=1 and ztable='0' else
b"0101" when totalzeros=6 and totalcoeffs=1 and ztable='0' else
b"0110" when totalzeros=7 and totalcoeffs=1 and ztable='0' else
b"0110" when totalzeros=8 and totalcoeffs=1 and ztable='0' else
b"0111" when totalzeros=9 and totalcoeffs=1 and ztable='0' else
b"0111" when totalzeros=10 and totalcoeffs=1 and ztable='0' else
b"1000" when totalzeros=11 and totalcoeffs=1 and ztable='0' else
b"1000" when totalzeros=12 and totalcoeffs=1 and ztable='0' else
b"1001" when totalzeros=13 and totalcoeffs=1 and ztable='0' else
b"1001" when totalzeros=14 and totalcoeffs=1 and ztable='0' else
b"1001" when totalzeros=15 and totalcoeffs=1 and ztable='0' else
b"0011" when totalzeros=0 and totalcoeffs=2 and ztable='0' else
b"0011" when totalzeros=1 and totalcoeffs=2 and ztable='0' else
b"0011" when totalzeros=2 and totalcoeffs=2 and ztable='0' else
b"0011" when totalzeros=3 and totalcoeffs=2 and ztable='0' else
b"0011" when totalzeros=4 and totalcoeffs=2 and ztable='0' else
b"0100" when totalzeros=5 and totalcoeffs=2 and ztable='0' else
b"0100" when totalzeros=6 and totalcoeffs=2 and ztable='0' else
b"0100" when totalzeros=7 and totalcoeffs=2 and ztable='0' else
b"0100" when totalzeros=8 and totalcoeffs=2 and ztable='0' else
b"0101" when totalzeros=9 and totalcoeffs=2 and ztable='0' else
b"0101" when totalzeros=10 and totalcoeffs=2 and ztable='0' else
b"0110" when totalzeros=11 and totalcoeffs=2 and ztable='0' else
b"0110" when totalzeros=12 and totalcoeffs=2 and ztable='0' else
b"0110" when totalzeros=13 and totalcoeffs=2 and ztable='0' else
b"0110" when totalzeros=14 and totalcoeffs=2 and ztable='0' else
b"0100" when totalzeros=0 and totalcoeffs=3 and ztable='0' else
b"0011" when totalzeros=1 and totalcoeffs=3 and ztable='0' else
b"0011" when totalzeros=2 and totalcoeffs=3 and ztable='0' else
b"0011" when totalzeros=3 and totalcoeffs=3 and ztable='0' else
b"0100" when totalzeros=4 and totalcoeffs=3 and ztable='0' else
b"0100" when totalzeros=5 and totalcoeffs=3 and ztable='0' else
b"0011" when totalzeros=6 and totalcoeffs=3 and ztable='0' else
b"0011" when totalzeros=7 and totalcoeffs=3 and ztable='0' else
b"0100" when totalzeros=8 and totalcoeffs=3 and ztable='0' else
b"0101" when totalzeros=9 and totalcoeffs=3 and ztable='0' else
b"0101" when totalzeros=10 and totalcoeffs=3 and ztable='0' else
b"0110" when totalzeros=11 and totalcoeffs=3 and ztable='0' else
b"0101" when totalzeros=12 and totalcoeffs=3 and ztable='0' else
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?