mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
fix module name to lc
This commit is contained in:
parent
c163069484
commit
e6ffde61bd
@ -25,7 +25,7 @@
|
||||
// and limitations under the License.
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module aes_Inv_Mixcolumns (input logic [31:0] word, output logic [31:0] mixed_word);
|
||||
module aes_inv_mixcolumns (input logic [31:0] word, output logic [31:0] mixed_word);
|
||||
|
||||
// Instantiate Internal Logic
|
||||
logic [7:0] b0, b1, b2, b3;
|
||||
|
@ -25,7 +25,7 @@
|
||||
// and limitations under the License.
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module aes_Inv_Sbox(input logic [7:0] in,
|
||||
module aes_inv_sbox(input logic [7:0] in,
|
||||
output logic [7:0] out);
|
||||
|
||||
always_comb
|
||||
|
@ -25,16 +25,16 @@
|
||||
// and limitations under the License.
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module aes_Inv_Sbox_Word(input logic [31:0] in,
|
||||
module aes_inv_sbox_word(input logic [31:0] in,
|
||||
output logic [31:0] out);
|
||||
|
||||
// Declare the SBOX for (least significant) byte 0 of the input
|
||||
aes_Inv_Sbox sbox_b0(.in(in[7:0]), .out(out[7:0]));
|
||||
aes_inv_sbox sbox_b0(.in(in[7:0]), .out(out[7:0]));
|
||||
// Declare the SBOX for byte 1 of the input
|
||||
aes_Inv_Sbox sbox_b1(.in(in[15:8]), .out(out[15:8]));
|
||||
aes_inv_sbox sbox_b1(.in(in[15:8]), .out(out[15:8]));
|
||||
// Declare the SBOX for byte 2 of the input
|
||||
aes_Inv_Sbox sbox_b2(.in(in[23:16]), .out(out[23:16]));
|
||||
aes_inv_sbox sbox_b2(.in(in[23:16]), .out(out[23:16]));
|
||||
// Declare the SBOX for byte 3 of the input
|
||||
aes_Inv_Sbox sbox_b3(.in(in[31:24]), .out(out[31:24]));
|
||||
aes_inv_sbox sbox_b3(.in(in[31:24]), .out(out[31:24]));
|
||||
|
||||
endmodule
|
||||
|
@ -25,9 +25,8 @@
|
||||
// and limitations under the License.
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module aes_Inv_Shiftrow (
|
||||
input logic [127:0] DataIn,
|
||||
output logic [127:0] DataOut);
|
||||
module aes_inv_shiftrow(input logic [127:0] DataIn,
|
||||
output logic [127:0] DataOut);
|
||||
|
||||
assign DataOut = {DataIn[31:24], DataIn[55:48], DataIn[79:72], DataIn[103:96],
|
||||
DataIn[127:120], DataIn[23:16], DataIn[47:40], DataIn[71:64],
|
||||
|
@ -26,9 +26,8 @@
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
module aes_Mixcolumns (
|
||||
input logic [31:0] in,
|
||||
output logic [31:0] out);
|
||||
module aes_mixcolumns (input logic [31:0] in,
|
||||
output logic [31:0] out);
|
||||
|
||||
logic [7:0] in0, in1, in2, in3, out0, out1, out2, out3, t0, t1, t2, t3, temp;
|
||||
logic [15:0] rrot8_1, rrot8_2;
|
||||
|
@ -25,7 +25,7 @@
|
||||
// and limitations under the License.
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module aes_Sbox(input logic [7:0] in,
|
||||
module aes_sbox(input logic [7:0] in,
|
||||
output logic [7:0] out);
|
||||
|
||||
// case statement to lookup the value in the rijndael table
|
||||
|
@ -25,16 +25,16 @@
|
||||
// and limitations under the License.
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module aes_Sbox_Word(input logic [31:0] in,
|
||||
module aes_sbox_word(input logic [31:0] in,
|
||||
output logic [31:0] out);
|
||||
|
||||
// Declare the SBOX for (least significant) byte 0 of the input
|
||||
aes_Sbox sbox_b0(.in(in[7:0]), .out(out[7:0]));
|
||||
aes_sbox sbox_b0(.in(in[7:0]), .out(out[7:0]));
|
||||
// Declare the SBOX for byte 1 of the input
|
||||
aes_Sbox sbox_b1(.in(in[15:8]), .out(out[15:8]));
|
||||
aes_sbox sbox_b1(.in(in[15:8]), .out(out[15:8]));
|
||||
// Declare the SBOX for byte 2 of the input
|
||||
aes_Sbox sbox_b2(.in(in[23:16]), .out(out[23:16]));
|
||||
aes_sbox sbox_b2(.in(in[23:16]), .out(out[23:16]));
|
||||
// Declare the SBOX for byte 3 of the input
|
||||
aes_Sbox sbox_b3(.in(in[31:24]), .out(out[31:24]));
|
||||
aes_sbox sbox_b3(.in(in[31:24]), .out(out[31:24]));
|
||||
|
||||
endmodule
|
||||
|
@ -25,9 +25,9 @@
|
||||
// and limitations under the License.
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
module aes_Shiftrow (
|
||||
input logic [127:0] DataIn,
|
||||
output logic [127:0] DataOut);
|
||||
module aes_shiftrow
|
||||
(input logic [127:0] DataIn,
|
||||
output logic [127:0] DataOut);
|
||||
|
||||
assign DataOut = {DataIn[95:88], DataIn[55:48], DataIn[15:8], DataIn[103:96],
|
||||
DataIn[63:56], DataIn[23:16], DataIn[111:104], DataIn[71:64],
|
||||
|
Loading…
Reference in New Issue
Block a user