data/full_repos/permissive/42149584/Lab6-Part2/ShiftRegisterI2C2015fall.v
1: b"%Error: data/full_repos/permissive/42149584/Lab6-Part2/ShiftRegisterI2C2015fall.v:23: Cannot find file containing module: 'ClockedNegativeOneShot'\n ClockedNegativeOneShot OneShotUnit1(ClockI2C, OneShotClockI2C, Reset, Clock) ;\n ^~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/42149584/Lab6-Part2,data/full_repos/permissive/42149584/ClockedNegativeOneShot\n             data/full_repos/permissive/42149584/Lab6-Part2,data/full_repos/permissive/42149584/ClockedNegativeOneShot.v\n             data/full_repos/permissive/42149584/Lab6-Part2,data/full_repos/permissive/42149584/ClockedNegativeOneShot.sv\n             ClockedNegativeOneShot\n             ClockedNegativeOneShot.v\n             ClockedNegativeOneShot.sv\n             obj_dir/ClockedNegativeOneShot\n             obj_dir/ClockedNegativeOneShot.v\n             obj_dir/ClockedNegativeOneShot.sv\n%Error: Exiting due to 1 error(s)\n"
module ShiftRegisterI2C2015fall(SentData,Clock,Reset,ShiftIn,ShiftOrHold,WriteLoad,ReceivedData,ShiftOut,ClockI2C);
	input [7:0] SentData;
	input Clock;
	input ClockI2C;
	input Reset;
	input ShiftIn;
	input ShiftOrHold;
	input WriteLoad;
	output reg [7:0] ReceivedData;
	output reg ShiftOut;
	
	wire OneShotClockI2C;
	
	ClockedNegativeOneShot OneShotUnit1(ClockI2C, OneShotClockI2C, Reset, Clock) ;
	
	always @ (posedge Clock)
		if (Reset == 1) begin ShiftOut <= 0; ReceivedData <= 8'b0; end
		else if (WriteLoad) begin
				ReceivedData <= SentData;
				ShiftOut <= SentData[7];
			end
		else case ({OneShotClockI2C, ShiftOrHold})
		2'b01: begin
			ReceivedData <={ReceivedData[6:0],ShiftIn};
			ShiftOut <= ReceivedData[6];
		end
		endcase
endmodule
module ShiftRegisterI2C2015fall(SentData,Clock,Reset,ShiftIn,ShiftOrHold,WriteLoad,ReceivedData,ShiftOut,ClockI2C);

	input [7:0] SentData;
	input Clock;
	input ClockI2C;
	input Reset;
	input ShiftIn;
	input ShiftOrHold;
	input WriteLoad;
	output reg [7:0] ReceivedData;
	output reg ShiftOut;
	
	wire OneShotClockI2C;
	
	ClockedNegativeOneShot OneShotUnit1(ClockI2C, OneShotClockI2C, Reset, Clock) ;
	
	always @ (posedge Clock)
		if (Reset == 1) begin ShiftOut <= 0; ReceivedData <= 8'b0; end
		else if (WriteLoad) begin
				ReceivedData <= SentData;
				ShiftOut <= SentData[7];
			end
		else case ({OneShotClockI2C, ShiftOrHold})
		2'b01: begin
			ReceivedData <={ReceivedData[6:0],ShiftIn};
			ShiftOut <= ReceivedData[6];
		end
		endcase
endmodule