data/full_repos/permissive/501791642/src/nco/phase2sample.v
1: b"%Error: data/full_repos/permissive/501791642/src/nco/phase2sample.v:23: Cannot find file containing module: 'sample_rom'\nsample_rom rom (\n^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/501791642/src/nco,data/full_repos/permissive/501791642/sample_rom\n             data/full_repos/permissive/501791642/src/nco,data/full_repos/permissive/501791642/sample_rom.v\n             data/full_repos/permissive/501791642/src/nco,data/full_repos/permissive/501791642/sample_rom.sv\n             sample_rom\n             sample_rom.v\n             sample_rom.sv\n             obj_dir/sample_rom\n             obj_dir/sample_rom.v\n             obj_dir/sample_rom.sv\n%Error: Exiting due to 1 error(s)\n"
module phase2sample ( 
    input CLK,
    input CE,
    input [6:0] PHASE,
    input [6:0] PROGRAM,
    output [7:0] SAMPLE
);

wire half_select;
assign half_select = PHASE[6];

wire [5:0] half_phase;
assign half_phase = PHASE[5:0];

wire [5:0] phase;
assign phase = half_select ? 6'd63 - half_phase : half_phase;

wire [7:0] sample;
assign SAMPLE = half_select ? 8'd255 - sample : sample;

sample_rom rom (
	.CLK(CLK),
	.CE(CE),
	.A0(phase),
	.A1(PROGRAM),
	.D(sample)
);

endmodule
module phase2sample ( 
    input CLK,
    input CE,
    input [6:0] PHASE,
    input [6:0] PROGRAM,
    output [7:0] SAMPLE
);


wire half_select;
assign half_select = PHASE[6];

wire [5:0] half_phase;
assign half_phase = PHASE[5:0];

wire [5:0] phase;
assign phase = half_select ? 6'd63 - half_phase : half_phase;

wire [7:0] sample;
assign SAMPLE = half_select ? 8'd255 - sample : sample;

sample_rom rom (
	.CLK(CLK),
	.CE(CE),
	.A0(phase),
	.A1(PROGRAM),
	.D(sample)
);

endmodule