The Cyber-Spy.Com Usenet Archive Feeds Directly From The Open And Publicly Available Newsgroup Sci.Electronics.Design
This Group And Thousands Of Others Are Available On Most IS NNTP News Servers On Port 119.
Cyber-Spy.Com Is NOT Responsible For Any Topic, Opinions Or Content Posted To This Or Any Other Newsgroup. This Web Archive Of The Newsgroup And Posts Are For Informational Purposes Only.
Reply-To: "Mike"
From: "Mike"
Newsgroups: sci.electronics.design
References:
Subject: Re: questions
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
Message-ID:
Date: Mon, 23 Sep 2002 06:09:18 GMT
NNTP-Posting-Host: 68.5.97.52
NNTP-Posting-Date: Mon, 23 Sep 2002 02:09:18 EDT
Organization: Cox Communications
"John" wrote in message
news:ZAwj9.378591$v53.17931711@news3.calgary.shaw.ca...
> hi
> please don't flame me. Just asking simple questions.
>
> 1) construct a 10:1 mux with three 4:1 mux. so that codes 1000 to 1001 can
> be directly applied to the selection inputs without added logic.
Now that would be really cool. A 10:1 mux using only two codes: 1000 and
1001. I guess you'll have to make a 1:4 demux first, then use the output of
that to drive the 10:1 mux...
> 3) design a combinational circuit that accepts a two bit number and
> generates a 4 bit binary number output equal to the square of input
number.
always @( x ) begin
case( x )
2'b00: y = 4'h0 ;
2'b01: y = 4'h1 ;
2'b10: y = 4'h4 ;
2'b11: y = 4'h9 ; // use y = 4'h1 if the input is two's complement.
default: y = 4'h0 ;
endcase
end
Go Back To The Cyber-Spy.Com Usenet Web Archive Index Of The sci.electronics.design Newsgroup
|