Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

VHDL wrapper for a newbie

Status
Not open for further replies.

A.N.

Newbie level 2
Joined
Apr 19, 2010
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,295
Hi everyone, I'm new to trying to hand-crank VHDL and I'm having a wee bit of a problem. I usually use auto-generated code so I'm not too used to writing it myself. The problem that I'm having is that the code is being generated with one-bit signals being defined as std_logic type but the application I'm using the code for requires all one-bit input/output signals to be in the form of std_logic_vector(0 DOWNTO 0).

For input signals, I've found that using A <= B(0); (where A is std_logic and B is std_logic_vector(0 DOWNTO 0)) works well. My problem is that I cannot find an equivalent for output signals, ie to go from std_logic to a std_logic_vector.

Any suggestions would be greatly appreciated.
Thanks,
Andy
 

Hi,

b(0) <= a;

Devas
 

    A.N.

    Points: 2
    Helpful Answer Positive Rating
Thanks, that seems to have worked. I was sure I had tried that, I guess I just mis-typed or something...

Thanks again,
Andy
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top