Why do I need to redeclare VHDL components before instantiating them in other architectures?

前端 未结 2 2027
一整个雨季
一整个雨季 2020-12-19 07:41

I\'ve been scratching my head since my first VHDL class and decided to post my question here.

Given that I have a declared entity (and also an architecture of it) an

2条回答
  •  旧巷少年郎
    2020-12-19 07:49

    You can directly instantiate the component, if desired:

      MyInstantiatedEntity : entity work.MyEntity_E
        generic map (
            config          => whatever)
        port map (
            clk             => signal1,
            clk_vid         => signal2,
            ...
    

    Creating a component declaration gives you the extra ability to change what gets bound to the instantiation via a configuration specification or similar.

提交回复
热议问题