![]() |
|
|
|
#1 |
|
I have this files:
------ main.vhd--------------- entity main is Port ( sig : buffer std_logic); end main; architecture Behavioral of main is component a is Port ( siga : in std_logic); end component; component b is Port ( sigb : out std_logic); end component; begin aa: component a Port map( siga => sig); bb: component b Port map ( sigb => sig); -- here is the error end Behavioral; -- ----------- a.vhd -------------------- entity a is Port ( siga : in std_logic); end a; architecture Behavioral of a is begin end Behavioral; -- ----------- b.vhd -------------------- entity b is Port ( sigb : out std_logic); end b; architecture Behavioral of b is begin sigb <= '1'; end Behavioral; -- I obtain the following error in synthesis: ERROR:HDLParsers:1411 - main.vhd Line XX. Parameter sig of mode buffer can not be associated with a formal port of mode out. Buffer port is the same of out port, but can be read from within the entity, isn't it? So why occurs this error. thanks Max |
|
|
|
|
#2 |
|
Posts: n/a
|
Max,
You will find your answer in the faq http://www.vhdl.org/vi/comp.lang.vhd...l#buffer_ports Egbert Molenkamp "Max" <> schreef in bericht news: om... > I have this files: > > ------ main.vhd--------------- > entity main is > Port ( sig : buffer std_logic); > end main; > > architecture Behavioral of main is > > component a is > Port ( siga : in std_logic); > end component; > component b is > Port ( sigb : out std_logic); > end component; > > begin > aa: component a > Port map( siga => sig); > bb: component b > Port map ( sigb => sig); -- here is the error > end Behavioral; > -- > ----------- a.vhd -------------------- > entity a is > Port ( siga : in std_logic); > end a; > architecture Behavioral of a is > begin > > end Behavioral; > -- > ----------- b.vhd -------------------- > entity b is > Port ( sigb : out std_logic); > end b; > architecture Behavioral of b is > begin > sigb <= '1'; > end Behavioral; > -- > > I obtain the following error in synthesis: > ERROR:HDLParsers:1411 - main.vhd Line XX. Parameter sig of mode buffer > can not be associated with a formal port of mode out. > > Buffer port is the same of out port, but can be read from within the > entity, isn't it? > So why occurs this error. > > thanks Egbert Molenkamp |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can not access console port of Cisco 7200 vxr | mansurbd | Hardware | 1 | 01-12-2009 06:53 PM |
| How to check current event and port status for Aliwei FXO gateway | Robin wang | Hardware | 0 | 04-11-2008 09:54 AM |
| Port 445: Effective/Safe Blocking | Samwise | General Help Related Topics | 0 | 01-06-2008 09:19 PM |
| Computer Security | aldrich.chappel.com.use@gmail.com | A+ Certification | 0 | 11-27-2007 02:11 AM |
| Long, regarding a "lost" COM port | smackedass | A+ Certification | 4 | 02-05-2007 04:55 PM |