1 Star 0 Fork 6

风雉Zere/H.264_Decoder

forked from 黄锦伟/H.264_Decoder 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
code_splice.v 4.64 KB
一键复制 编辑 原始数据 按行查看 历史
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 20:35:54 11/25/2013
// Design Name:
// Module Name: code_splice
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
// ˝ŤCode_Aşó [Bound:63] şÍ Code_BÇ° [0:Bound+1] Ć´˝ÓŁŹĘäłöľ˝Code_spliced
//////////////////////////////////////////////////////////////////////////////////
module code_splice(
Code_A,
Code_B,
Bound,
Code_spliced
);
input [63:0] Code_A;
input [63:0] Code_B;
input [7:0] Bound;
output [63:0] Code_spliced;
reg [63:0] Code_spliced;
always @(*) begin
case(Bound)
0:Code_spliced = {Code_A[63:0]};
1:Code_spliced = {Code_B[0],Code_A[63:1]};
2:Code_spliced = {Code_B[1:0],Code_A[63:2]};
3:Code_spliced = {Code_B[2:0],Code_A[63:3]};
4:Code_spliced = {Code_B[3:0],Code_A[63:4]};
5:Code_spliced = {Code_B[4:0],Code_A[63:5]};
6:Code_spliced = {Code_B[5:0],Code_A[63:6]};
7:Code_spliced = {Code_B[6:0],Code_A[63:7]};
8:Code_spliced = {Code_B[7:0],Code_A[63:8]};
9:Code_spliced = {Code_B[8:0],Code_A[63:9]};
10:Code_spliced = {Code_B[9:0],Code_A[63:10]};
11:Code_spliced = {Code_B[10:0],Code_A[63:11]};
12:Code_spliced = {Code_B[11:0],Code_A[63:12]};
13:Code_spliced = {Code_B[12:0],Code_A[63:13]};
14:Code_spliced = {Code_B[13:0],Code_A[63:14]};
15:Code_spliced = {Code_B[14:0],Code_A[63:15]};
16:Code_spliced = {Code_B[15:0],Code_A[63:16]};
17:Code_spliced = {Code_B[16:0],Code_A[63:17]};
18:Code_spliced = {Code_B[17:0],Code_A[63:18]};
19:Code_spliced = {Code_B[18:0],Code_A[63:19]};
20:Code_spliced = {Code_B[19:0],Code_A[63:20]};
21:Code_spliced = {Code_B[20:0],Code_A[63:21]};
22:Code_spliced = {Code_B[21:0],Code_A[63:22]};
23:Code_spliced = {Code_B[22:0],Code_A[63:23]};
24:Code_spliced = {Code_B[23:0],Code_A[63:24]};
25:Code_spliced = {Code_B[24:0],Code_A[63:25]};
26:Code_spliced = {Code_B[25:0],Code_A[63:26]};
27:Code_spliced = {Code_B[26:0],Code_A[63:27]};
28:Code_spliced = {Code_B[27:0],Code_A[63:28]};
29:Code_spliced = {Code_B[28:0],Code_A[63:29]};
30:Code_spliced = {Code_B[29:0],Code_A[63:30]};
31:Code_spliced = {Code_B[30:0],Code_A[63:31]};
32:Code_spliced = {Code_B[31:0],Code_A[63:32]};
33:Code_spliced = {Code_B[32:0],Code_A[63:33]};
34:Code_spliced = {Code_B[33:0],Code_A[63:34]};
35:Code_spliced = {Code_B[34:0],Code_A[63:35]};
36:Code_spliced = {Code_B[35:0],Code_A[63:36]};
37:Code_spliced = {Code_B[36:0],Code_A[63:37]};
38:Code_spliced = {Code_B[37:0],Code_A[63:38]};
39:Code_spliced = {Code_B[38:0],Code_A[63:39]};
40:Code_spliced = {Code_B[39:0],Code_A[63:40]};
41:Code_spliced = {Code_B[40:0],Code_A[63:41]};
42:Code_spliced = {Code_B[41:0],Code_A[63:42]};
43:Code_spliced = {Code_B[42:0],Code_A[63:43]};
44:Code_spliced = {Code_B[43:0],Code_A[63:44]};
45:Code_spliced = {Code_B[44:0],Code_A[63:45]};
46:Code_spliced = {Code_B[45:0],Code_A[63:46]};
47:Code_spliced = {Code_B[46:0],Code_A[63:47]};
48:Code_spliced = {Code_B[47:0],Code_A[63:48]};
49:Code_spliced = {Code_B[48:0],Code_A[63:49]};
50:Code_spliced = {Code_B[49:0],Code_A[63:50]};
51:Code_spliced = {Code_B[50:0],Code_A[63:51]};
52:Code_spliced = {Code_B[51:0],Code_A[63:52]};
53:Code_spliced = {Code_B[52:0],Code_A[63:53]};
54:Code_spliced = {Code_B[53:0],Code_A[63:54]};
55:Code_spliced = {Code_B[54:0],Code_A[63:55]};
56:Code_spliced = {Code_B[55:0],Code_A[63:56]};
57:Code_spliced = {Code_B[56:0],Code_A[63:57]};
58:Code_spliced = {Code_B[57:0],Code_A[63:58]};
59:Code_spliced = {Code_B[58:0],Code_A[63:59]};
60:Code_spliced = {Code_B[59:0],Code_A[63:60]};
61:Code_spliced = {Code_B[60:0],Code_A[63:61]};
62:Code_spliced = {Code_B[61:0],Code_A[63:62]};
63:Code_spliced = {Code_B[62:0],Code_A[63]};
64:Code_spliced = {Code_B[63:0]};
default: Code_spliced = 0;
endcase
end
endmodule
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Verilog
1
https://gitee.com/wind-pheasant-zere/H.264_Decoder.git
git@gitee.com:wind-pheasant-zere/H.264_Decoder.git
wind-pheasant-zere
H.264_Decoder
H.264_Decoder
master

搜索帮助