binary coded decimal code.

M

miniwolf

Guest
Please, Write and verify a Verilog model that will assert its output if
a 4-bit input word is not a valid binary coded decimal code.

What does it mean?
If input is not BCD, output is '1' ?

How can I code by verilog?
 
miniwolf wrote:
Please, Write and verify a Verilog model that will assert its output if
a 4-bit input word is not a valid binary coded decimal code.

What does it mean?
If input is not BCD, output is '1' ?
Yes.

How can I code by verilog?
Do you know what BCD is? If yes, you should know which bit combinations
are valid BCD symbols and which are not. (You have 4 bits but use only
10 symbols.) It should be easy to write a combinational logic block that
tests just this. (This comb. logic will have spikes, but there is
nothing mentioned about that in your homework topic.)

Ralf
 
On 4 May 2006 22:47:27 -0700, "miniwolf" <miniwolf@empas.com> wrote:

Please, Write and verify a Verilog model that will assert its output if
a 4-bit input word is not a valid binary coded decimal code.

What does it mean?
If input is not BCD, output is '1' ?

How can I code by verilog?
You mean you're looking for a module which gives a one if its 4 bit
input is greater than 9 ? So "If the output is greater than 9 return 1
else 0" should be what you're looking for.
 
Thanks a lot.

I didn't understand the point.
This summary is barely comprehensible.
 
miniwolf wrote:
... if a 4-bit input word is not a valid
binary coded decimal code.
What does it mean?
If input is not BCD, output is '1' ?
Hi miniwolf. Please see:

http://www.google.com/search?hl=en&q=binary+coded+decimal&btnG=Google+Search
 

Welcome to EDABoard.com

Sponsor

Back
Top