How to select appropriate package to import with a parameter?

In reply to shparekh:

Hi,

This seems to compile, see if you can access package variables as well.

generate
  if (condition) begin
    import xgphy_0_reg_pkg::*;
  end else begin
    import xgphy_1_reg_pkg::*;
  end
endgenerate