data/full_repos/permissive/157973246/HardwareCode/boron.v
1: b"%Error: data/full_repos/permissive/157973246/HardwareCode/boron.v:15: Cannot find file containing module: 'control_unit'\ncontrol_unit CU_FSM(keyStart,encStart,decStart,done,keyDone,encdecDone,start,enc_dec,clk,reset);\n^~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/157973246/HardwareCode,data/full_repos/permissive/157973246/control_unit\n             data/full_repos/permissive/157973246/HardwareCode,data/full_repos/permissive/157973246/control_unit.v\n             data/full_repos/permissive/157973246/HardwareCode,data/full_repos/permissive/157973246/control_unit.sv\n             control_unit\n             control_unit.v\n             control_unit.sv\n             obj_dir/control_unit\n             obj_dir/control_unit.v\n             obj_dir/control_unit.sv\n%Error: data/full_repos/permissive/157973246/HardwareCode/boron.v:16: Cannot find file containing module: 'keygen'\nkeygen KGEN_FSM(key_register,roundCount,keyDone,masterKey,round_key,keyStart,clk,reset);\n^~~~~~\n%Error: data/full_repos/permissive/157973246/HardwareCode/boron.v:17: Cannot find file containing module: 'key_generator'\nkey_generator KGEN(round_key,sBoxOutKey,key_register[2079:2000],sBoxInKey,roundCount);\n^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/157973246/HardwareCode/boron.v:18: Cannot find file containing module: 'encoder_decoder'\nencoder_decoder ENCDEC_FSM(cipherText,roundKey,encdecDone,plainText,roundText,key_register,encStart,decStart,clk,reset);\n^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/157973246/HardwareCode/boron.v:19: Cannot find file containing module: 'add_key'\nadd_key ADD_KEY(addKeyOut,cipherText,roundKey);\n^~~~~~~\n%Error: data/full_repos/permissive/157973246/HardwareCode/boron.v:20: Cannot find file containing module: 'round_enc'\nround_enc ROUND_ENC(roundTextEnc,sBoxEncOut);\n^~~~~~~~~\n%Error: data/full_repos/permissive/157973246/HardwareCode/boron.v:21: Cannot find file containing module: 'round_dec'\nround_dec ROUND_DEC(roundTextDec,addKeyOut);\n^~~~~~~~~\n%Error: data/full_repos/permissive/157973246/HardwareCode/boron.v:22: Cannot find file containing module: 's_box'\ns_box KEY_SBOX(sBoxInKey,sBoxOutKey);\n^~~~~\n%Error: data/full_repos/permissive/157973246/HardwareCode/boron.v:23: Cannot find file containing module: 's_box_layer_enc'\ns_box_layer_enc SBOX_LAYER_ENC(sBoxEncOut,addKeyOut);\n^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/157973246/HardwareCode/boron.v:24: Cannot find file containing module: 's_box_layer_dec'\ns_box_layer_dec SBOX_LAYER_DEC(sBoxDecOut,roundTextDec);\n^~~~~~~~~~~~~~~\n%Error: Exiting due to 10 error(s)\n"
module boron(cipherText,done,plainText,masterKey,enc_dec,start,clk,reset);
output [63:0]cipherText;
output done;
input [63:0]plainText;
input [79:0]masterKey;
input enc_dec,start,clk,reset;
wire keyStart,encStart,decStart,keyDone,encdecDone;
wire [2079:0]key_register;
wire [4:0]roundCount;
wire [79:0]round_key,roundKey;
wire [63:0]roundText,addKeyOut,sBoxEncOut,sBoxDecOut,roundTextEnc,roundTextDec;
wire [3:0]sBoxOutKey,sBoxInKey;

control_unit CU_FSM(keyStart,encStart,decStart,done,keyDone,encdecDone,start,enc_dec,clk,reset);
keygen KGEN_FSM(key_register,roundCount,keyDone,masterKey,round_key,keyStart,clk,reset);
key_generator KGEN(round_key,sBoxOutKey,key_register[2079:2000],sBoxInKey,roundCount);
encoder_decoder ENCDEC_FSM(cipherText,roundKey,encdecDone,plainText,roundText,key_register,encStart,decStart,clk,reset);
add_key ADD_KEY(addKeyOut,cipherText,roundKey);
round_enc ROUND_ENC(roundTextEnc,sBoxEncOut);
round_dec ROUND_DEC(roundTextDec,addKeyOut);
s_box KEY_SBOX(sBoxInKey,sBoxOutKey);
s_box_layer_enc SBOX_LAYER_ENC(sBoxEncOut,addKeyOut);
s_box_layer_dec SBOX_LAYER_DEC(sBoxDecOut,roundTextDec);

assign roundText=enc_dec?roundTextEnc:sBoxDecOut;

endmodule
module boron(cipherText,done,plainText,masterKey,enc_dec,start,clk,reset);

output [63:0]cipherText;
output done;
input [63:0]plainText;
input [79:0]masterKey;
input enc_dec,start,clk,reset;
wire keyStart,encStart,decStart,keyDone,encdecDone;
wire [2079:0]key_register;
wire [4:0]roundCount;
wire [79:0]round_key,roundKey;
wire [63:0]roundText,addKeyOut,sBoxEncOut,sBoxDecOut,roundTextEnc,roundTextDec;
wire [3:0]sBoxOutKey,sBoxInKey;

control_unit CU_FSM(keyStart,encStart,decStart,done,keyDone,encdecDone,start,enc_dec,clk,reset);
keygen KGEN_FSM(key_register,roundCount,keyDone,masterKey,round_key,keyStart,clk,reset);
key_generator KGEN(round_key,sBoxOutKey,key_register[2079:2000],sBoxInKey,roundCount);
encoder_decoder ENCDEC_FSM(cipherText,roundKey,encdecDone,plainText,roundText,key_register,encStart,decStart,clk,reset);
add_key ADD_KEY(addKeyOut,cipherText,roundKey);
round_enc ROUND_ENC(roundTextEnc,sBoxEncOut);
round_dec ROUND_DEC(roundTextDec,addKeyOut);
s_box KEY_SBOX(sBoxInKey,sBoxOutKey);
s_box_layer_enc SBOX_LAYER_ENC(sBoxEncOut,addKeyOut);
s_box_layer_dec SBOX_LAYER_DEC(sBoxDecOut,roundTextDec);

assign roundText=enc_dec?roundTextEnc:sBoxDecOut;

endmodule