data/full_repos/permissive/513628330/Gateware/src/sndgen.v
1: b"%Error: data/full_repos/permissive/513628330/Gateware/src/sndgen.v:191: Cannot find file containing module: 'sat'\n sat #(.isz(32-4), .osz(16))\n ^~~\n        ... Looked in:\n             data/full_repos/permissive/513628330/Gateware/src,data/full_repos/permissive/513628330/sat\n             data/full_repos/permissive/513628330/Gateware/src,data/full_repos/permissive/513628330/sat.v\n             data/full_repos/permissive/513628330/Gateware/src,data/full_repos/permissive/513628330/sat.sv\n             sat\n             sat.v\n             sat.sv\n             obj_dir/sat\n             obj_dir/sat.v\n             obj_dir/sat.sv\n%Error: data/full_repos/permissive/513628330/Gateware/src/sndgen.v:193: Cannot find file containing module: 'sat'\n sat #(.isz(32-4), .osz(16))\n ^~~\n%Error: Exiting due to 2 error(s)\n"
module bram_256x32(
	input clk,
	input sel,
	input [3:0] we,
	input [7:0] waddr,
	input [7:0] raddr,
	input [31:0] wdat,
	output reg [31:0] rdat
);

	reg [31:0] ram[255:0];
	

	always @(posedge clk)
		if(sel)
		begin
			if(we[0])
				ram[waddr][7:0] <= wdat[7:0];
			if(we[1])
				ram[waddr][15:8] <= wdat[15:8];
			if(we[2])
				ram[waddr][23:16] <= wdat[23:16];
			if(we[3])
				ram[waddr][31:24] <= wdat[31:24];
		end
	

	always @(posedge clk)
		rdat <= ram[raddr];
endmodule
module bram_256x32(
	input clk,
	input sel,
	input [3:0] we,
	input [7:0] waddr,
	input [7:0] raddr,
	input [31:0] wdat,
	output reg [31:0] rdat
);


	reg [31:0] ram[255:0];
	

	always @(posedge clk)
		if(sel)
		begin
			if(we[0])
				ram[waddr][7:0] <= wdat[7:0];
			if(we[1])
				ram[waddr][15:8] <= wdat[15:8];
			if(we[2])
				ram[waddr][23:16] <= wdat[23:16];
			if(we[3])
				ram[waddr][31:24] <= wdat[31:24];
		end
	

	always @(posedge clk)
		rdat <= ram[raddr];
endmodule