data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:81: Multiple top level modules\n                                                                                             : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                                             : ... Top module \'EXPANSION\'\nmodule EXPANSION(\n       ^~~~~~~~~\n                                                                                             : ... Top module \'CONCATENATION\'\nmodule CONCATENATION(\n       ^~~~~~~~~~~~~\n                                                                                             : ... Top module \'ADDITION_TYPE0\'\nmodule ADDITION_TYPE0(\n       ^~~~~~~~~~~~~~\n                                                                                             : ... Top module \'ADDITION_TYPE1\'\nmodule ADDITION_TYPE1(\n       ^~~~~~~~~~~~~~\n                                                                                             : ... Top module \'SUBSTITUTION\'\nmodule SUBSTITUTION(\n       ^~~~~~~~~~~~\n                                                                                             : ... Top module \'DIFFUSION\'\nmodule DIFFUSION(\n       ^~~~~~~~~\n                                                                                             : ... Top module \'TRUNCATION\'\nmodule TRUNCATION(\n       ^~~~~~~~~~\n                                                                                             : ... Top module \'UPDATE\'\nmodule UPDATE(\n       ^~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:36: Cannot find file containing module: \'TABLE0\'\nTABLE0   table0(.byte_in(message[ 7: 0]), .table_out(table_out0 ));\n^~~~~~\n        ... Looked in:\n             data/full_repos/permissive/154123726/3rdParty/hamsi,data/full_repos/permissive/154123726/TABLE0\n             data/full_repos/permissive/154123726/3rdParty/hamsi,data/full_repos/permissive/154123726/TABLE0.v\n             data/full_repos/permissive/154123726/3rdParty/hamsi,data/full_repos/permissive/154123726/TABLE0.sv\n             TABLE0\n             TABLE0.v\n             TABLE0.sv\n             obj_dir/TABLE0\n             obj_dir/TABLE0.v\n             obj_dir/TABLE0.sv\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:37: Cannot find file containing module: \'TABLE1\'\nTABLE1   table1(.byte_in(message[15: 8]), .table_out(table_out1 ));\n^~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:38: Cannot find file containing module: \'TABLE2\'\nTABLE2   table2(.byte_in(message[23:16]), .table_out(table_out2 ));\n^~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:39: Cannot find file containing module: \'TABLE3\'\nTABLE3   table3(.byte_in(message[31:24]), .table_out(table_out3 ));\n^~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:40: Cannot find file containing module: \'TABLE4\'\nTABLE4   table4(.byte_in(message[ 7: 0]), .table_out(table_out4 ));\n^~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:41: Cannot find file containing module: \'TABLE5\'\nTABLE5   table5(.byte_in(message[15: 8]), .table_out(table_out5 ));\n^~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:42: Cannot find file containing module: \'TABLE6\'\nTABLE6   table6(.byte_in(message[23:16]), .table_out(table_out6 ));\n^~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:43: Cannot find file containing module: \'TABLE7\'\nTABLE7   table7(.byte_in(message[31:24]), .table_out(table_out7 ));\n^~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:44: Cannot find file containing module: \'TABLE8\'\nTABLE8   table8(.byte_in(message[ 7: 0]), .table_out(table_out8 ));\n^~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:45: Cannot find file containing module: \'TABLE9\'\nTABLE9   table9(.byte_in(message[15: 8]), .table_out(table_out9 ));\n^~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:46: Cannot find file containing module: \'TABLE10\'\nTABLE10 table10(.byte_in(message[23:16]), .table_out(table_out10));\n^~~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:47: Cannot find file containing module: \'TABLE11\'\nTABLE11 table11(.byte_in(message[31:24]), .table_out(table_out11));\n^~~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:48: Cannot find file containing module: \'TABLE12\'\nTABLE12 table12(.byte_in(message[ 7: 0]), .table_out(table_out12));\n^~~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:49: Cannot find file containing module: \'TABLE13\'\nTABLE13 table13(.byte_in(message[15: 8]), .table_out(table_out13));\n^~~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:50: Cannot find file containing module: \'TABLE14\'\nTABLE14 table14(.byte_in(message[23:16]), .table_out(table_out14));\n^~~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:51: Cannot find file containing module: \'TABLE15\'\nTABLE15 table15(.byte_in(message[31:24]), .table_out(table_out15));\n^~~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:52: Cannot find file containing module: \'TABLE16\'\nTABLE16 table16(.byte_in(message[ 7: 0]), .table_out(table_out16));\n^~~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:53: Cannot find file containing module: \'TABLE17\'\nTABLE17 table17(.byte_in(message[15: 8]), .table_out(table_out17));\n^~~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:54: Cannot find file containing module: \'TABLE18\'\nTABLE18 table18(.byte_in(message[23:16]), .table_out(table_out18));\n^~~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:55: Cannot find file containing module: \'TABLE19\'\nTABLE19 table19(.byte_in(message[31:24]), .table_out(table_out19));\n^~~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:56: Cannot find file containing module: \'TABLE20\'\nTABLE20 table20(.byte_in(message[ 7: 0]), .table_out(table_out20));\n^~~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:57: Cannot find file containing module: \'TABLE21\'\nTABLE21 table21(.byte_in(message[15: 8]), .table_out(table_out21));\n^~~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:58: Cannot find file containing module: \'TABLE22\'\nTABLE22 table22(.byte_in(message[23:16]), .table_out(table_out22));\n^~~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:59: Cannot find file containing module: \'TABLE23\'\nTABLE23 table23(.byte_in(message[31:24]), .table_out(table_out23));\n^~~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:60: Cannot find file containing module: \'TABLE24\'\nTABLE24 table24(.byte_in(message[ 7: 0]), .table_out(table_out24));\n^~~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:61: Cannot find file containing module: \'TABLE25\'\nTABLE25 table25(.byte_in(message[15: 8]), .table_out(table_out25));\n^~~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:62: Cannot find file containing module: \'TABLE26\'\nTABLE26 table26(.byte_in(message[23:16]), .table_out(table_out26));\n^~~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:63: Cannot find file containing module: \'TABLE27\'\nTABLE27 table27(.byte_in(message[31:24]), .table_out(table_out27));\n^~~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:64: Cannot find file containing module: \'TABLE28\'\nTABLE28 table28(.byte_in(message[ 7: 0]), .table_out(table_out28));\n^~~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:65: Cannot find file containing module: \'TABLE29\'\nTABLE29 table29(.byte_in(message[15: 8]), .table_out(table_out29));\n^~~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:66: Cannot find file containing module: \'TABLE30\'\nTABLE30 table30(.byte_in(message[23:16]), .table_out(table_out30));\n^~~~~~~\n%Error: data/full_repos/permissive/154123726/3rdParty/hamsi/Hamsi_Combination.v:67: Cannot find file containing module: \'TABLE31\'\nTABLE31 table31(.byte_in(message[31:24]), .table_out(table_out31));\n^~~~~~~\n%Error: Exiting due to 32 error(s), 1 warning(s)\n'
module DIFFUSION(
	              sub_in0, 
	              sub_in1, 
	              sub_in2, 
	              sub_in3,
	              diff_out0, 
	              diff_out1, 
	              diff_out2, 
	              diff_out3);

input  [31:0] sub_in0, sub_in1, sub_in2, sub_in3;
output [31:0] diff_out0, diff_out1, diff_out2, diff_out3;

wire [31:0] a_0, b_0, c_0, d_0;
wire [31:0] a_1, a_2, a_3;
wire [31:0] b_1, b_2;
wire [31:0] c_1, c_2, c_3;
wire [31:0] d_1, d_2;

assign a_0 = sub_in0;
assign b_0 = sub_in1;
assign c_0 = sub_in2;
assign d_0 = sub_in3;

assign a_1 = {a_0[18:0],a_0[31:19]};
assign c_1 = {c_0[28:0],c_0[31:29]};
assign b_1 = b_0 ^ a_1 ^ c_1;
assign d_1 = d_0 ^ c_1 ^ (a_1 << 3);
assign b_2 = {b_1[30:0],b_1[31]};
assign d_2 = {d_1[24:0],d_1[31:25]};
assign a_2 = a_1 ^ b_2 ^ d_2;
assign c_2 = c_1 ^ d_2 ^ (b_2 << 7);
assign a_3 = {a_2[26:0],a_2[31:27]};
assign c_3 = {c_2[9:0],c_2[31:10]};

assign diff_out0 = a_3;
assign diff_out1 = b_2;
assign diff_out2 = c_3;
assign diff_out3 = d_2;

endmodule
module DIFFUSION(
	              sub_in0, 
	              sub_in1, 
	              sub_in2, 
	              sub_in3,
	              diff_out0, 
	              diff_out1, 
	              diff_out2, 
	              diff_out3);


input  [31:0] sub_in0, sub_in1, sub_in2, sub_in3;
output [31:0] diff_out0, diff_out1, diff_out2, diff_out3;

wire [31:0] a_0, b_0, c_0, d_0;
wire [31:0] a_1, a_2, a_3;
wire [31:0] b_1, b_2;
wire [31:0] c_1, c_2, c_3;
wire [31:0] d_1, d_2;

assign a_0 = sub_in0;
assign b_0 = sub_in1;
assign c_0 = sub_in2;
assign d_0 = sub_in3;

assign a_1 = {a_0[18:0],a_0[31:19]};
assign c_1 = {c_0[28:0],c_0[31:29]};
assign b_1 = b_0 ^ a_1 ^ c_1;
assign d_1 = d_0 ^ c_1 ^ (a_1 << 3);
assign b_2 = {b_1[30:0],b_1[31]};
assign d_2 = {d_1[24:0],d_1[31:25]};
assign a_2 = a_1 ^ b_2 ^ d_2;
assign c_2 = c_1 ^ d_2 ^ (b_2 << 7);
assign a_3 = {a_2[26:0],a_2[31:27]};
assign c_3 = {c_2[9:0],c_2[31:10]};

assign diff_out0 = a_3;
assign diff_out1 = b_2;
assign diff_out2 = c_3;
assign diff_out3 = d_2;

endmodule