data/full_repos/permissive/42149584/Lab6-Part2/lab6phase2I2C.v
1: b"%Error: data/full_repos/permissive/42149584/Lab6-Part2/lab6phase2I2C.v:27: Cannot find file containing module: 'SystemClockUnit'\n SystemClockUnit Clock65MHz(SystemClock,clock,ClockLocked);\n ^~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/42149584/Lab6-Part2,data/full_repos/permissive/42149584/SystemClockUnit\n             data/full_repos/permissive/42149584/Lab6-Part2,data/full_repos/permissive/42149584/SystemClockUnit.v\n             data/full_repos/permissive/42149584/Lab6-Part2,data/full_repos/permissive/42149584/SystemClockUnit.sv\n             SystemClockUnit\n             SystemClockUnit.v\n             SystemClockUnit.sv\n             obj_dir/SystemClockUnit\n             obj_dir/SystemClockUnit.v\n             obj_dir/SystemClockUnit.sv\n%Error: data/full_repos/permissive/42149584/Lab6-Part2/lab6phase2I2C.v:28: Cannot find file containing module: 'ClockedPositiveOneShot'\n ClockedPositiveOneShot StartOneShot(Start, StartReading, Reset, clock) ;\n ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/42149584/Lab6-Part2/lab6phase2I2C.v:34: Cannot find file containing module: 'ReadTempI2C'\n ReadTempI2C ReadUnit(BaudRate,ClockFrequency,FirstByte,clock,Reset,StartReading||Mode,ReceivedData,DONE,SCL,SDA);\n ^~~~~~~~~~~\n%Error: data/full_repos/permissive/42149584/Lab6-Part2/lab6phase2I2C.v:44: Cannot find file containing module: 'OneTemperatureConverter'\n OneTemperatureConverter ConvertUnit(Temperature, First1, First0, Second1, Second0);\n ^~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/42149584/Lab6-Part2/lab6phase2I2C.v:45: Cannot find file containing module: 'BCDto7Segment'\n BCDto7Segment F1Unit(First1,F1code);\n ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/42149584/Lab6-Part2/lab6phase2I2C.v:46: Cannot find file containing module: 'BCDto7Segment'\n BCDto7Segment F0Unit(First0,F0code);\n ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/42149584/Lab6-Part2/lab6phase2I2C.v:47: Cannot find file containing module: 'BCDto7Segment'\n BCDto7Segment C1Unit(Second1,S1code);\n ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/42149584/Lab6-Part2/lab6phase2I2C.v:48: Cannot find file containing module: 'BCDto7Segment'\n BCDto7Segment C0Unit(Second0,S0code);\n ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/42149584/Lab6-Part2/lab6phase2I2C.v:51: Cannot find file containing module: 'SevenSegDriver'\n SevenSegDriver DisplayUnit(F1code,F0code,S1code,S0code,Display,Reset,clock,Transistors);\n ^~~~~~~~~~~~~~\n%Error: Exiting due to 9 error(s)\n"
module lab6phase2I2C2015(ChipSelect,Start,Mode,ReceivedData,SCL,SDA,Reset,SystemClock,ClockLocked,DONE,Display,Transistors);
	input Reset, Mode, SystemClock, Start;
	input [2:0] ChipSelect;
	output SCL, ClockLocked, DONE;
	inout SDA;
	output [7:0] ReceivedData;
	output [3:0] Transistors;
	output [7:0] Display;

	parameter BaudRate=20'd40000, ClockFrequency=30'd65000000;
	parameter FirstByte = 8'b10010011;

	wire clock;


	SystemClockUnit Clock65MHz(SystemClock,clock,ClockLocked);
	ClockedPositiveOneShot StartOneShot(Start, StartReading, Reset, clock) ;
	wire [7:0] Chip;
	wire WriteLoad, ReadorWrite, ShiftorHold, Select, BaudEnable, StartStopAck;


	assign Chip = {4'b1001,ChipSelect,1'b1};
	ReadTempI2C ReadUnit(BaudRate,ClockFrequency,FirstByte,clock,Reset,StartReading||Mode,ReceivedData,DONE,SCL,SDA);

	wire [3:0] First1, First0, Second1, Second0;
	wire [7:0] F1code,F0code,S1code,S0code;
	reg [7:0] Temperature;
	
	always@(posedge clock)
		if(DONE==1) Temperature<=ReceivedData;
		else Temperature<=Temperature;

	OneTemperatureConverter ConvertUnit(Temperature, First1, First0, Second1, Second0);
	BCDto7Segment F1Unit(First1,F1code);
	BCDto7Segment F0Unit(First0,F0code);
	BCDto7Segment C1Unit(Second1,S1code);
	BCDto7Segment C0Unit(Second0,S0code);


	SevenSegDriver DisplayUnit(F1code,F0code,S1code,S0code,Display,Reset,clock,Transistors);
endmodule
module lab6phase2I2C2015(ChipSelect,Start,Mode,ReceivedData,SCL,SDA,Reset,SystemClock,ClockLocked,DONE,Display,Transistors);

	input Reset, Mode, SystemClock, Start;
	input [2:0] ChipSelect;
	output SCL, ClockLocked, DONE;
	inout SDA;
	output [7:0] ReceivedData;
	output [3:0] Transistors;
	output [7:0] Display;

	parameter BaudRate=20'd40000, ClockFrequency=30'd65000000;
	parameter FirstByte = 8'b10010011;

	wire clock;


	SystemClockUnit Clock65MHz(SystemClock,clock,ClockLocked);
	ClockedPositiveOneShot StartOneShot(Start, StartReading, Reset, clock) ;
	wire [7:0] Chip;
	wire WriteLoad, ReadorWrite, ShiftorHold, Select, BaudEnable, StartStopAck;


	assign Chip = {4'b1001,ChipSelect,1'b1};
	ReadTempI2C ReadUnit(BaudRate,ClockFrequency,FirstByte,clock,Reset,StartReading||Mode,ReceivedData,DONE,SCL,SDA);

	wire [3:0] First1, First0, Second1, Second0;
	wire [7:0] F1code,F0code,S1code,S0code;
	reg [7:0] Temperature;
	
	always@(posedge clock)
		if(DONE==1) Temperature<=ReceivedData;
		else Temperature<=Temperature;

	OneTemperatureConverter ConvertUnit(Temperature, First1, First0, Second1, Second0);
	BCDto7Segment F1Unit(First1,F1code);
	BCDto7Segment F0Unit(First0,F0code);
	BCDto7Segment C1Unit(Second1,S1code);
	BCDto7Segment C0Unit(Second0,S0code);


	SevenSegDriver DisplayUnit(F1code,F0code,S1code,S0code,Display,Reset,clock,Transistors);
endmodule