Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Re: demux model

Reply
Thread Tools

Re: demux model

 
 
Tim Hubberstey
Guest
Posts: n/a
 
      07-04-2003
rajan wrote:
>
> Hello colleagues,
>
> I have a demux as below. Is there any other way to write it better in vhdl.
>
> -- 4to16 demux with shift_left operation --
> wire_sig <= STD_LOGIC_VECTOR (shift_left(one, to_integer(unsigned
> (wire_w))));


I seem to recall that I usually use something like:

demux : process( wire_w )
begin
wire_sig <= (others => '0');
wire_sig(to_integer(unsigned(wire_w)) <= '1';
end process demux;
--
Tim Hubberstey, P.Eng. . . . . . Hardware/Software Consulting Engineer
Marmot Engineering . . . . . . . VHDL, ASICs, FPGAs, embedded systems
Vancouver, BC, Canada . . . . . . . . . . . http://www.marmot-eng.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
1to8 Demux code, can you look plz majmoat_ensan VHDL 6 07-28-2011 01:41 PM
more fun with iterators (mux, demux) Neal Becker Python 6 04-08-2009 09:58 PM
Convert Java Model to Java Model without XML erinbot@gmail.com Java 1 10-06-2006 09:00 PM
Review: Evercool Aluminum Fans (AL8025B and AL8025LD2 model) Silverstrand Reviews & How-To's 0 06-20-2005 03:41 AM
Re: demux model rajan VHDL 0 07-03-2003 07:52 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57