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.

How to Writing this statment in VHDL

Status
Not open for further replies.

cysco

Newbie level 5
Joined
Jul 27, 2009
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,325
In verilog,
I can write like this:

assign next_lookup = lookup[15:0] & {16{lookup_en}} // lookup_en is 1 bit.

How to have the same statement in VHDL??
 

one way:
FOR i IN 0 TO 15 GENERATE
BEGIN
next_lookup <= lookup AND lookup_en;
END GENERATE;

---------- Post added at 10:57 ---------- Previous post was at 10:54 ----------

an other way:
SIGNAL vect_lookup_en : STD_LOGIC_VECTOR(15 DOWNTO 0);

vect_lookup_en <= (OTHERS=>lookup_en);
next_lookup <= lookup AND vect_lookup_en;
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top