data/full_repos/permissive/159724743/Digital Osciloscope/trigger.v
1: b'%Error: Cannot find file containing module: Osciloscope,data/full_repos/permissive/159724743\n        ... Looked in:\n             data/full_repos/permissive/159724743/Digital/Osciloscope,data/full_repos/permissive/159724743\n             data/full_repos/permissive/159724743/Digital/Osciloscope,data/full_repos/permissive/159724743.v\n             data/full_repos/permissive/159724743/Digital/Osciloscope,data/full_repos/permissive/159724743.sv\n             Osciloscope,data/full_repos/permissive/159724743\n             Osciloscope,data/full_repos/permissive/159724743.v\n             Osciloscope,data/full_repos/permissive/159724743.sv\n             obj_dir/Osciloscope,data/full_repos/permissive/159724743\n             obj_dir/Osciloscope,data/full_repos/permissive/159724743.v\n             obj_dir/Osciloscope,data/full_repos/permissive/159724743.sv\n%Error: Cannot find file containing module: data/full_repos/permissive/159724743/Digital\n%Error: Cannot find file containing module: Osciloscope/trigger.v\n%Error: Exiting due to 3 error(s)\n'
module trigger(input slope,input[7:0] level,input clk,input[7:0] sample,output reg trig);
reg [7:0] psample;
always @(posedge clk) begin
 psample=sample;
 end
 always@(posedge clk) begin
 trig=0;
 if(sample< level+20 && sample> level-20)
	begin
	if(slope==1)
		if(psample<sample)
			trig=1;
	if(slope==0)
		if(psample>sample)
			trig=1;
	end
 end


endmodule
module trigger(input slope,input[7:0] level,input clk,input[7:0] sample,output reg trig);

reg [7:0] psample;
always @(posedge clk) begin
 psample=sample;
 end
 always@(posedge clk) begin
 trig=0;
 if(sample< level+20 && sample> level-20)
	begin
	if(slope==1)
		if(psample<sample)
			trig=1;
	if(slope==0)
		if(psample>sample)
			trig=1;
	end
 end


endmodule