data/full_repos/permissive/120518070/main/source/RC4_CORE.sv
1: b"%Error: data/full_repos/permissive/120518070/main/source/RC4_CORE.sv:41: Cannot find file containing module: 'RC4_CORE_STATE_MACH'\n RC4_CORE_STATE_MACH DUT_STATE_MACH (.clk(clk),.n_rst_i(n_rst_i),.rc4_dfb_i(rc4_dfb_i),.rc4_start_i(rc4_start_i),.sarrGenerated_i(sarrGenerated_i),.valReady_i(valReady_i)\n ^~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/120518070/main/source,data/full_repos/permissive/120518070/RC4_CORE_STATE_MACH\n             data/full_repos/permissive/120518070/main/source,data/full_repos/permissive/120518070/RC4_CORE_STATE_MACH.v\n             data/full_repos/permissive/120518070/main/source,data/full_repos/permissive/120518070/RC4_CORE_STATE_MACH.sv\n             RC4_CORE_STATE_MACH\n             RC4_CORE_STATE_MACH.v\n             RC4_CORE_STATE_MACH.sv\n             obj_dir/RC4_CORE_STATE_MACH\n             obj_dir/RC4_CORE_STATE_MACH.v\n             obj_dir/RC4_CORE_STATE_MACH.sv\n%Error: data/full_repos/permissive/120518070/main/source/RC4_CORE.sv:48: Cannot find file containing module: 'dataToDecrypt'\n dataToDecrypt DUT_DATA_TO_DECRYPT (.clk_i(clk),.read_ready_i(ready_data),.rc4_data_i(rc4_rdata_i),.dataToDecrypt_o(dataToDecrypt));\n ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/120518070/main/source/RC4_CORE.sv:51: Cannot find file containing module: 'RC4_Core_comb'\n RC4_Core_comb DUT_COMB_LOGIC (.outputToXor_i(outputToXor_i),.couterPixel_i(counterPixel),.ready_to_write_i(ready_to_write),.ready_to_read_i(ready_to_read),\n ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/120518070/main/source/RC4_CORE.sv:56: Cannot find file containing module: 'RC4_CORE_decrypted_data'\n RC4_CORE_decrypted_data DUT_DECRYPTED_DATA (.clk(clk),.enable_write_i(enable_write),.writeLoc_i(writeLoc),.data_i(data),.rc4_wdata_o(rc4_wdata_o));\n ^~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/120518070/main/source/RC4_CORE.sv:58: Cannot find file containing module: 'counterPixel'\n counterPixel COUNTER_PIXEL (.clk(clk),.n_rst(n_rst_i),.clear(clearPixels),.count_enable(enable_counter_pix),\n ^~~~~~~~~~~~\n%Error: Exiting due to 5 error(s)\n"
module RC4_CORE(
	input wire clk,
	input wire n_rst_i,
	input wire rc4_dfb_i,
	input wire rc4_start_i,
	input wire [31:0] rc4_rdata_i,
	input wire sarrGenerated_i,
	input wire valReady_i,
	input wire [7:0] outputToXor_i,
	input wire [19:0] img_width_i,
	input wire [19:0] img_hight_i,
	output reg [31:0] rc4_wdata_o,
	output reg [19:0] rc4_pix_num_o,
	output reg [1:0] rc4_mode_o,
	output reg rc4_done_o,
	output reg genVal_o,
	output reg genStateArr_o
	);

	wire [19:0] counterPixel;
	wire ready_to_read;
	wire enable_counter_pix;
	wire clearPixels;
	wire ready_to_write;
	wire xor_sig;
	wire ready_data;
	wire [31:0] dataToDecrypt;
	wire enable_write;
	wire [1:0] writeLoc;
	wire [7:0] data;

	RC4_CORE_STATE_MACH DUT_STATE_MACH (.clk(clk),.n_rst_i(n_rst_i),.rc4_dfb_i(rc4_dfb_i),.rc4_start_i(rc4_start_i),.sarrGenerated_i(sarrGenerated_i),.valReady_i(valReady_i)
				,.img_width_i(img_width_i),.img_hight_i(img_hight_i),.counterPixel_i(counterPixel)
				,.ready_to_read_o(ready_to_read),.rc4_mode_o(rc4_mode_o),.rc4_done_o(rc4_done_o)
				,.enable_counter_pix_o(enable_counter_pix),.clearPixels_o(clearPixels),.ready_to_write_o(ready_to_write)
				,.xor_sig_o(xor_sig),.ready_data_o(ready_data),.genStateArr_o(genStateArr_o),.genVal_o(genVal_o));

	
	dataToDecrypt DUT_DATA_TO_DECRYPT (.clk_i(clk),.read_ready_i(ready_data),.rc4_data_i(rc4_rdata_i),.dataToDecrypt_o(dataToDecrypt));
	

	RC4_Core_comb DUT_COMB_LOGIC (.outputToXor_i(outputToXor_i),.couterPixel_i(counterPixel),.ready_to_write_i(ready_to_write),.ready_to_read_i(ready_to_read),
			   .xor_sig_i(xor_sig),.dataToDecrypt_i(dataToDecrypt),.enable_write_o(enable_write),
			   .writeLoc_o(writeLoc),.data_o(data),.rc4_pix_num_o(rc4_pix_num_o));


	RC4_CORE_decrypted_data DUT_DECRYPTED_DATA (.clk(clk),.enable_write_i(enable_write),.writeLoc_i(writeLoc),.data_i(data),.rc4_wdata_o(rc4_wdata_o));

	counterPixel COUNTER_PIXEL (.clk(clk),.n_rst(n_rst_i),.clear(clearPixels),.count_enable(enable_counter_pix),
			   .rollover_val(),.count_out(counterPixel),.rollover_flag());

endmodule
module RC4_CORE(
	input wire clk,
	input wire n_rst_i,
	input wire rc4_dfb_i,
	input wire rc4_start_i,
	input wire [31:0] rc4_rdata_i,
	input wire sarrGenerated_i,
	input wire valReady_i,
	input wire [7:0] outputToXor_i,
	input wire [19:0] img_width_i,
	input wire [19:0] img_hight_i,
	output reg [31:0] rc4_wdata_o,
	output reg [19:0] rc4_pix_num_o,
	output reg [1:0] rc4_mode_o,
	output reg rc4_done_o,
	output reg genVal_o,
	output reg genStateArr_o
	);


	wire [19:0] counterPixel;
	wire ready_to_read;
	wire enable_counter_pix;
	wire clearPixels;
	wire ready_to_write;
	wire xor_sig;
	wire ready_data;
	wire [31:0] dataToDecrypt;
	wire enable_write;
	wire [1:0] writeLoc;
	wire [7:0] data;

	RC4_CORE_STATE_MACH DUT_STATE_MACH (.clk(clk),.n_rst_i(n_rst_i),.rc4_dfb_i(rc4_dfb_i),.rc4_start_i(rc4_start_i),.sarrGenerated_i(sarrGenerated_i),.valReady_i(valReady_i)
				,.img_width_i(img_width_i),.img_hight_i(img_hight_i),.counterPixel_i(counterPixel)
				,.ready_to_read_o(ready_to_read),.rc4_mode_o(rc4_mode_o),.rc4_done_o(rc4_done_o)
				,.enable_counter_pix_o(enable_counter_pix),.clearPixels_o(clearPixels),.ready_to_write_o(ready_to_write)
				,.xor_sig_o(xor_sig),.ready_data_o(ready_data),.genStateArr_o(genStateArr_o),.genVal_o(genVal_o));

	
	dataToDecrypt DUT_DATA_TO_DECRYPT (.clk_i(clk),.read_ready_i(ready_data),.rc4_data_i(rc4_rdata_i),.dataToDecrypt_o(dataToDecrypt));
	

	RC4_Core_comb DUT_COMB_LOGIC (.outputToXor_i(outputToXor_i),.couterPixel_i(counterPixel),.ready_to_write_i(ready_to_write),.ready_to_read_i(ready_to_read),
			   .xor_sig_i(xor_sig),.dataToDecrypt_i(dataToDecrypt),.enable_write_o(enable_write),
			   .writeLoc_o(writeLoc),.data_o(data),.rc4_pix_num_o(rc4_pix_num_o));


	RC4_CORE_decrypted_data DUT_DECRYPTED_DATA (.clk(clk),.enable_write_i(enable_write),.writeLoc_i(writeLoc),.data_i(data),.rc4_wdata_o(rc4_wdata_o));

	counterPixel COUNTER_PIXEL (.clk(clk),.n_rst(n_rst_i),.clear(clearPixels),.count_enable(enable_counter_pix),
			   .rollover_val(),.count_out(counterPixel),.rollover_flag());

endmodule