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 SUBSTITUTION(
	                 add_in0, 
	                 add_in1, 
	                 add_in2, 
	                 add_in3,
	                 sub_out0, 
	                 sub_out1, 
	                 sub_out2, 
	                 sub_out3);

input  [31:0] add_in0, add_in1, add_in2, add_in3;
output [31:0] sub_out0, sub_out1, sub_out2, sub_out3;

wire [31:0] r0_0, r1_0, r2_0, r3_0;
wire [31:0] r0_1, r0_2, r0_3;
wire [31:0] r1_1, r1_2, r1_3;
wire [31:0] r2_1, r2_2;
wire [31:0] r3_1, r3_2, r3_3, r3_4;
wire [31:0] r4_0, r4_1, r4_2, r4_3;

assign r0_0 = add_in0;
assign r1_0 = add_in1;
assign r2_0 = add_in2;
assign r3_0 = add_in3;
assign r4_0 = r0_0;
assign r0_1 = r0_0 & r2_0;
assign r0_2 = r0_1 ^ r3_0;
assign r2_1 = r2_0 ^ r1_0;
assign r2_2 = r2_1 ^ r0_2;
assign r3_1 = r3_0 | r4_0;
assign r3_2 = r3_1 ^ r1_0;
assign r4_1 = r4_0 ^ r2_2;
assign r1_1 = r3_2;
assign r3_3 = r3_2 | r4_1;
assign r3_4 = r3_3 ^ r0_2;
assign r0_3 = r0_2 & r1_1;
assign r4_2 = r4_1 ^ r0_3;
assign r1_2 = r1_1 ^ r3_4;
assign r1_3 = r1_2 ^ r4_2;
assign r4_3 = ~r4_2;
assign sub_out0 = r2_2;
assign sub_out1 = r3_4;
assign sub_out2 = r1_3;
assign sub_out3 = r4_3;

endmodule
module SUBSTITUTION(
	                 add_in0, 
	                 add_in1, 
	                 add_in2, 
	                 add_in3,
	                 sub_out0, 
	                 sub_out1, 
	                 sub_out2, 
	                 sub_out3);


input  [31:0] add_in0, add_in1, add_in2, add_in3;
output [31:0] sub_out0, sub_out1, sub_out2, sub_out3;

wire [31:0] r0_0, r1_0, r2_0, r3_0;
wire [31:0] r0_1, r0_2, r0_3;
wire [31:0] r1_1, r1_2, r1_3;
wire [31:0] r2_1, r2_2;
wire [31:0] r3_1, r3_2, r3_3, r3_4;
wire [31:0] r4_0, r4_1, r4_2, r4_3;

assign r0_0 = add_in0;
assign r1_0 = add_in1;
assign r2_0 = add_in2;
assign r3_0 = add_in3;
assign r4_0 = r0_0;
assign r0_1 = r0_0 & r2_0;
assign r0_2 = r0_1 ^ r3_0;
assign r2_1 = r2_0 ^ r1_0;
assign r2_2 = r2_1 ^ r0_2;
assign r3_1 = r3_0 | r4_0;
assign r3_2 = r3_1 ^ r1_0;
assign r4_1 = r4_0 ^ r2_2;
assign r1_1 = r3_2;
assign r3_3 = r3_2 | r4_1;
assign r3_4 = r3_3 ^ r0_2;
assign r0_3 = r0_2 & r1_1;
assign r4_2 = r4_1 ^ r0_3;
assign r1_2 = r1_1 ^ r3_4;
assign r1_3 = r1_2 ^ r4_2;
assign r4_3 = ~r4_2;
assign sub_out0 = r2_2;
assign sub_out1 = r3_4;
assign sub_out2 = r1_3;
assign sub_out3 = r4_3;

endmodule