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.

priority encoder using with select in VHDL

Status
Not open for further replies.

sougata_vlsi13

Member level 4
Member level 4
Joined
Apr 19, 2013
Messages
77
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
India
Visit site
Activity points
1,980
I am facing problem in writing the code of priority encoder using with select.....please help me in this regard
 

i have written the code using when else but i am nt getting how to select the expression using with select.As with select is equivalent to case expression some defined conditions are ncessary .....how to define that
 

with select is like this:

Code:
with a select
  b <= "000" when 0,
       "001" when 1,
       "010" when 2,
--etc

But case statements can be put inside a clocked process for synchronisation, with..select cannot.
 

Sir...is there any specific libraries i have to mention along with that code becoz 0,1,2 are all integers
 

Sir...is there any specific libraries i have to mention along with that code becoz 0,1,2 are all integers
Refer back to the original response that TrickyDicky had to this thread...post your code. If you have none yet, then write some first and then ask questions if it doesn't work as you expected.

Kevin
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top