data/full_repos/permissive/489075769/read_data_ms - Copy.v
1: b'%Error: Invalid Option: -\n'
module read_data_slave(ACLK, ARESETn, i_RVALID, o_RVALID, RREADY, i_RDATA, o_RDATA, i_RRESP, o_RRESP);
input ACLK, ARESETn;
input i_RVALID, RREADY;
input [31:0] i_RDATA;
input[1:0] i_RRESP;
   
output reg o_RVALID; 
output reg [1:0] o_RRESP; 
output reg [31:0] o_RDATA; 





always @ (posedge ACLK)
begin
o_RVALID <= i_RVALID;
if(ARESETn)
begin
o_RVALID <= 0;
o_RDATA <= 0;
end
else if(RREADY && o_RVALID)
begin
 o_RDATA <= i_RDATA;
 o_RRESP <= i_RRESP;
 end
else begin
 o_RDATA <= 32'b0;
 o_RRESP<=2'b0;
 end

end
endmodule
module read_data_slave(ACLK, ARESETn, i_RVALID, o_RVALID, RREADY, i_RDATA, o_RDATA, i_RRESP, o_RRESP);

input ACLK, ARESETn;
input i_RVALID, RREADY;
input [31:0] i_RDATA;
input[1:0] i_RRESP;
   
output reg o_RVALID; 
output reg [1:0] o_RRESP; 
output reg [31:0] o_RDATA; 





always @ (posedge ACLK)
begin
o_RVALID <= i_RVALID;
if(ARESETn)
begin
o_RVALID <= 0;
o_RDATA <= 0;
end
else if(RREADY && o_RVALID)
begin
 o_RDATA <= i_RDATA;
 o_RRESP <= i_RRESP;
 end
else begin
 o_RDATA <= 32'b0;
 o_RRESP<=2'b0;
 end

end
endmodule