"Add Port" Action

Hi,

when i use the "Add Port" command in the outline view, and add a new port to an entity, the port is added to the entity and to the component instantiation. But the new port isn't added to the component declaration in the architecture.

Bernd

There indeed seems to be

There indeed seems to be something wrong. When I add a port to the entity, a port is added to the component declaration (in the architecture) but not in the instantiation.

Before:

entity foo is
    port( 
      test1 : out bit
    );
end entity foo;
 
entity top is
end entity top;
 
architecture RTL of top is
  component foo
    port (test1 : out bit);
    end component foo;
 
    signal t : bit;
begin
    inst: component foo
    port map (
        test1 => t
        ); 
end architecture RTL;

After:

entity foo is
    port( 
      test1 : out bit;
      test2: out bit);
end entity foo;
 
entity top is
end entity top;
 
architecture RTL of top is
  component foo
    port (test1 : out bit;
          test2: out bit);
    end component foo;
 
    signal t : bit;
begin
    inst: component foo
    port map (
        test1 => t
        -- missing port here
        ); 
end architecture RTL;

Can you verify that in your case the port is missing in the declaration?

Thanks,
Hendrik.

missing in declaration

Hi Hendrik,

yes i can verify it. When i do the "add port" command an look in the preview, it shows, that the port is only added in the instantiation and NOT in the declaration...

Bernd

I found the problem. The

I found the problem. The instantiation statement is matched with a specific architecture to instantiate. Since there is no architecture for work.foo, the tool gets confused. Logged as ticket:1410

Workaround for now is to have an architecture for each entity.

Thanks for reporting, Bernd!

Post new comment

The content of this field is kept private and will not be shown publicly.
By submitting this form, you accept the Mollom privacy policy.