data/full_repos/permissive/167161024/ad9958_master.v
1: b"%Error: data/full_repos/permissive/167161024/ad9958_master.v:33: Cannot find file containing module: 'ad9958_core'\n   ad9958_core ad9958_core_inst( \n   ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/167161024,data/full_repos/permissive/167161024/ad9958_core\n             data/full_repos/permissive/167161024,data/full_repos/permissive/167161024/ad9958_core.v\n             data/full_repos/permissive/167161024,data/full_repos/permissive/167161024/ad9958_core.sv\n             ad9958_core\n             ad9958_core.v\n             ad9958_core.sv\n             obj_dir/ad9958_core\n             obj_dir/ad9958_core.v\n             obj_dir/ad9958_core.sv\n%Error: data/full_repos/permissive/167161024/ad9958_master.v:55: Cannot find file containing module: 'four_bit_spi'\n   four_bit_spi spi_master( \n   ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/167161024/ad9958_master.v:69: Cannot find file containing module: 'ad9958_config_register'\n   ad9958_config_register config_register( \n   ^~~~~~~~~~~~~~~~~~~~~~\n%Error: Exiting due to 3 error(s)\n"
module ad9958_master(
					 input 			  clock,
					 input 			  reset_n,

					 output 		  cs,
					 output 		  sclk,
					 output [3:0] 	  sdio,

					 output 		  master_reset,
					 output 		  io_update,


					 input [32-1:0] ftw_ch0,
					 input [32-1:0] ftw_ch1,
					 input [10-1:0] asf_ch0,
					 input [10-1:0] asf_ch1
);


   wire [5:0]			bits_to_send;
   wire					busy;
   wire [4:0]			clock_multiplier;
   wire [1:0]			dac_fscale_ch0;
   wire [1:0]			dac_fscale_ch1;
   wire [63:0]			data_input;
   wire					four_bit;
   wire					trigger;
   wire					vco_gain;

   
   ad9958_core ad9958_core_inst(

								.trigger		(trigger),
								.four_bit		(four_bit),
								.bits_to_send	(bits_to_send[5:0]),
								.data_input		(data_input[63:0]),
								.master_reset	(master_reset),
								.io_update		(io_update),

								.clock			(clock),
								.reset_n		(reset_n),
								.ftw_ch0		(ftw_ch0[32-1:0]),
								.ftw_ch1		(ftw_ch1[32-1:0]),
								.asf_ch0		(asf_ch0[10-1:0]),
								.asf_ch1		(asf_ch1[10-1:0]),
								.vco_gain		(vco_gain),
								.clock_multiplier(clock_multiplier[4:0]),
								.dac_fscale_ch0	(dac_fscale_ch0[1:0]),
								.dac_fscale_ch1	(dac_fscale_ch1[1:0]),
								.busy			(busy));
   

   four_bit_spi spi_master(

						   .busy				(busy),
						   .cs					(cs),
						   .sclk				(sclk),
						   .sdio				(sdio[3:0]),

						   .clock				(clock),
						   .reset_n				(reset_n),
						   .trigger				(trigger),
						   .four_bit			(four_bit),
						   .bits_to_send		(bits_to_send[5:0]),
						   .data_input			(data_input[63:0]));

   ad9958_config_register config_register(

										  .vco_gain				(vco_gain),
										  .clock_multiplier		(clock_multiplier[4:0]),
										  .dac_fscale_ch0		(dac_fscale_ch0[1:0]),
										  .dac_fscale_ch1		(dac_fscale_ch1[1:0]));

endmodule
module ad9958_master(
					 input 			  clock,
					 input 			  reset_n,

					 output 		  cs,
					 output 		  sclk,
					 output [3:0] 	  sdio,

					 output 		  master_reset,
					 output 		  io_update,


					 input [32-1:0] ftw_ch0,
					 input [32-1:0] ftw_ch1,
					 input [10-1:0] asf_ch0,
					 input [10-1:0] asf_ch1
);



   wire [5:0]			bits_to_send;
   wire					busy;
   wire [4:0]			clock_multiplier;
   wire [1:0]			dac_fscale_ch0;
   wire [1:0]			dac_fscale_ch1;
   wire [63:0]			data_input;
   wire					four_bit;
   wire					trigger;
   wire					vco_gain;

   
   ad9958_core ad9958_core_inst(

								.trigger		(trigger),
								.four_bit		(four_bit),
								.bits_to_send	(bits_to_send[5:0]),
								.data_input		(data_input[63:0]),
								.master_reset	(master_reset),
								.io_update		(io_update),

								.clock			(clock),
								.reset_n		(reset_n),
								.ftw_ch0		(ftw_ch0[32-1:0]),
								.ftw_ch1		(ftw_ch1[32-1:0]),
								.asf_ch0		(asf_ch0[10-1:0]),
								.asf_ch1		(asf_ch1[10-1:0]),
								.vco_gain		(vco_gain),
								.clock_multiplier(clock_multiplier[4:0]),
								.dac_fscale_ch0	(dac_fscale_ch0[1:0]),
								.dac_fscale_ch1	(dac_fscale_ch1[1:0]),
								.busy			(busy));
   

   four_bit_spi spi_master(

						   .busy				(busy),
						   .cs					(cs),
						   .sclk				(sclk),
						   .sdio				(sdio[3:0]),

						   .clock				(clock),
						   .reset_n				(reset_n),
						   .trigger				(trigger),
						   .four_bit			(four_bit),
						   .bits_to_send		(bits_to_send[5:0]),
						   .data_input			(data_input[63:0]));

   ad9958_config_register config_register(

										  .vco_gain				(vco_gain),
										  .clock_multiplier		(clock_multiplier[4:0]),
										  .dac_fscale_ch0		(dac_fscale_ch0[1:0]),
										  .dac_fscale_ch1		(dac_fscale_ch1[1:0]));

endmodule