![]() |
|
|
|
#1 |
|
Hi,
I have a component that wants a std_logic_vector of 4 bits. Now, I have a std_logic and a std_logic_vector of 3 bits. Is it possible to port map it without defining an intermediate signal, like signal vect : std_logic_vector(2 downto 0); signal bit : std_logic; .... port map ( vect4bit => bit & vect, ... ); But that doesn't work ... Sylvain Munaut Sylvain Munaut |
|
|
|
|
#2 |
|
Posts: n/a
|
Sylvain,
Assuming that vect4bit has the range 3 downto 0: port map ( vect4bit(3) => bit, vect4bit(2 downto 0) => vect, . . . ) ; Cheers, Jim -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~ Jim Lewis Director of Training private.php?do=newpm&u= SynthWorks Design Inc. http://www.SynthWorks.com 1-503-590-4787 Expert VHDL Training for Hardware Design and Verification ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~ > Hi, > > I have a component that wants a std_logic_vector of 4 bits. > Now, I have a std_logic and a std_logic_vector of 3 bits. > > Is it possible to port map it without defining an intermediate signal, like > > signal vect : std_logic_vector(2 downto 0); > signal bit : std_logic; > > ... port map ( > vect4bit => bit & vect, > ... > ); > > But that doesn't work ... > > > > Sylvain Munaut Jim Lewis |
|
|
|
#3 |
|
Posts: n/a
|
Jim Lewis wrote:
> Sylvain, > Assuming that vect4bit has the range 3 downto 0: > > port map ( > vect4bit(3) => bit, > vect4bit(2 downto 0) => vect, > . . . > ) ; > > Cheers, > Jim Exactly thanks ! I havent't seen such an example in tutorials/intro, pity ;( Sylvain Sylvain Munaut |
|
![]() |
| 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 |
| Long, regarding a "lost" COM port | smackedass | A+ Certification | 4 | 02-05-2007 04:55 PM |
| non plug and play device on com port? | David K | A+ Certification | 1 | 07-18-2003 08:38 PM |