data/full_repos/permissive/16507090/bus/bus.v
 line:19: before: "]"
1: b'%Error: data/full_repos/permissive/16507090/bus/bus.v:1: Cannot find include file: fifo/fifo.v\n`include "fifo/fifo.v" \n         ^~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/16507090/bus,data/full_repos/permissive/16507090/fifo/fifo.v\n             data/full_repos/permissive/16507090/bus,data/full_repos/permissive/16507090/fifo/fifo.v.v\n             data/full_repos/permissive/16507090/bus,data/full_repos/permissive/16507090/fifo/fifo.v.sv\n             fifo/fifo.v\n             fifo/fifo.v.v\n             fifo/fifo.v.sv\n             obj_dir/fifo/fifo.v\n             obj_dir/fifo/fifo.v.v\n             obj_dir/fifo/fifo.v.sv\n%Error: Exiting due to 1 error(s)\n'
module BusArbiter
#(
	parameter bus_width=32,
	parameter bus_max_devices=16
)
(
	input clk,
	inout [bus_width-1:0] data_lines,
	inout [bus_max_devices-1:0] receiver_device,
	inout [bus_max_devices-1:0] buffer_full,
	input [bus_max_devices-1:0] write_request,
	output reg [bus_max_devices-1:0] voice
);


	reg [bus_max_devices-1:0] operating_device=0;

	generate
		genvar device;
		for (device=1; device<bus_max_devices; device=device+1) begin: voice_gen
			always @(negedge clk)

				if (!operating_device || operating_device&&(~write_request[operating_device])) begin
					voice[device]=write_request[device] && !write_request[device-1:0];
					operating_device=voice;
				end
		end
	endgenerate

	always @(clk) begin
		if (clk)
			$display("BusArbiter: + posedge clk on bus");
		else
			$display("BusArbiter: - negedge clk on bus");
		$display("BusArbiter: bus_data_lines: %b",data_lines);
		$display("BusArbiter: bus_receiver_device: %b",receiver_device);
		$display("BusArbiter: bus_buffer_full: %b",buffer_full);
		$display("BusArbiter: bus_write_request: %b",write_request);
		$display("BusArbiter: bus_voice: %b",voice);
		$display("BusArbiter: operating_device: %b",operating_device);
	end
endmodule
module BusArbiter
#(
	parameter bus_width=32,
	parameter bus_max_devices=16
)
(
	input clk,
	inout [bus_width-1:0] data_lines,
	inout [bus_max_devices-1:0] receiver_device,
	inout [bus_max_devices-1:0] buffer_full,
	input [bus_max_devices-1:0] write_request,
	output reg [bus_max_devices-1:0] voice
);



	reg [bus_max_devices-1:0] operating_device=0;

	generate
		genvar device;
		for (device=1; device<bus_max_devices; device=device+1) begin: voice_gen
			always @(negedge clk)

				if (!operating_device || operating_device&&(~write_request[operating_device])) begin
					voice[device]=write_request[device] && !write_request[device-1:0];
					operating_device=voice;
				end
		end
	endgenerate

	always @(clk) begin
		if (clk)
			$display("BusArbiter: + posedge clk on bus");
		else
			$display("BusArbiter: - negedge clk on bus");
		$display("BusArbiter: bus_data_lines: %b",data_lines);
		$display("BusArbiter: bus_receiver_device: %b",receiver_device);
		$display("BusArbiter: bus_buffer_full: %b",buffer_full);
		$display("BusArbiter: bus_write_request: %b",write_request);
		$display("BusArbiter: bus_voice: %b",voice);
		$display("BusArbiter: operating_device: %b",operating_device);
	end
endmodule