-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathShift_Rows.v
46 lines (41 loc) · 1.2 KB
/
Shift_Rows.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 23:21:41 06/27/2018
// Design Name:
// Module Name: Shift_Rows
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module Shift_Rows(clk,b_in,b_out);
input clk;
input [127:0] b_in;
output [127:0] b_out;
assign b_out[127:120]=b_in[127:120];
assign b_out[119:112]=b_in[87:80];
assign b_out[111:104]=b_in[47:40];
assign b_out[103:96]=b_in[7:0];
assign b_out[95:88]=b_in[95:88];
assign b_out[87:80]=b_in[55:48];
assign b_out[79:72]=b_in[15:8];
assign b_out[71:64]=b_in[103:96];
assign b_out[63:56]=b_in[63:56];
assign b_out[55:48]=b_in[23:16];
assign b_out[47:40]=b_in[111:104];
assign b_out[39:32]=b_in[71:64];
assign b_out[31:24]=b_in[31:24];
assign b_out[23:16]=b_in[119:112];
assign b_out[15:8]=b_in[79:72];
assign b_out[7:0]=b_in[39:32];
endmodule