Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHelp with problem
Using the hierarchy design procedure and Quartus II software, design a digital code converter, which takes a 4-bit BCD input, and based on the value of the select bit the converter either generates the Excess3 or the Gray code of the input BCD at the output. (s0=0 the output should be excess3, s0=1 the output should be gray code.) Use only Decoders and Multiplexers in your design.
2 Replies
- Altera_Forum
Honored Contributor
and what's the problem you need help with?
- Altera_Forum
Honored Contributor
If you know the functions (derived from truth table) for bcd to excess3 and bcd to graycode, model the HDL designs using any of the 3 modelling techniques (gate level, dataflow, behavioral). Also model a 2:1 mux.
let the modules be 2_1mux.v , bcd2excess3.v and bcd2gray.v The following is my rough sketch of how the final design will be // module and port declaration //instantiations excess3.v (.input(bcd),.en(!s0),.ouput(excess3)) gray.v (.input(bcd),.en(s0),.ouput(gray)) 2_1mux.v (.data1(excess3),.data2(gray),.sel(s0),.output(output)) HTH..