data/full_repos/permissive/168753118/rtl/modules/FORWARDING_UNIT.v
data/verilator_xmls/dc451ead-b82a-44d0-a002-8c4405d7ba47.xml
module FORWARDING_UNIT(
  input [4:0] fwd_if_ra_addr_in,
  input [4:0] fwd_if_rb_addr_in,
  input [4:0] fwd_id_rd_addr_in,
  output reg [1:0] fwd_mux_sel_out
);




always@(*) begin


  if(fwd_if_ra_addr_in != 5'b00000)
    fwd_mux_sel_out[0] = (fwd_if_ra_addr_in==fwd_id_rd_addr_in) ? 1'b1:1'b0;
  else
    fwd_mux_sel_out[0] = 1'b0;


  if(fwd_if_rb_addr_in != 5'b00000)
    fwd_mux_sel_out[1] = (fwd_if_rb_addr_in==fwd_id_rd_addr_in) ? 1'b1:1'b0;
  else
    fwd_mux_sel_out[1] = 1'b0;
end


endmodule
module FORWARDING_UNIT(
  input [4:0] fwd_if_ra_addr_in,
  input [4:0] fwd_if_rb_addr_in,
  input [4:0] fwd_id_rd_addr_in,
  output reg [1:0] fwd_mux_sel_out
);





always@(*) begin


  if(fwd_if_ra_addr_in != 5'b00000)
    fwd_mux_sel_out[0] = (fwd_if_ra_addr_in==fwd_id_rd_addr_in) ? 1'b1:1'b0;
  else
    fwd_mux_sel_out[0] = 1'b0;


  if(fwd_if_rb_addr_in != 5'b00000)
    fwd_mux_sel_out[1] = (fwd_if_rb_addr_in==fwd_id_rd_addr_in) ? 1'b1:1'b0;
  else
    fwd_mux_sel_out[1] = 1'b0;
end


endmodule