VHDL program

Discussion in 'General Electronics Chat' started by technetnerd, Jun 28, 2014.

  1. technetnerd

    Thread Starter New Member

    Jun 28, 2014
    2
    0
    I am trying to create a logical expression for this circuit. I have designed the circuit in Quartus, but I am having problems figuring out the logical expression so I can build the VHDL program. The inverter is what's confusing me. I came up with A'B + A'CD + B as the output, but I wasn't sure if I should invert the output?
     
  2. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    I am not entirely sure why you need a Booolean expression to build a VHDL configuration (there is no programming in VHDL).

    Beyond that, write out a truth table and determine what the output of the circuit would be for all possible input values.

    You can also do it by writing the Boolean expression at each point in the circuit. That way, you can identify the progression of the logic.
     
  3. technetnerd

    Thread Starter New Member

    Jun 28, 2014
    2
    0
    I was able to figure it out, thanks.

    X = A + B'C' + B'D'
     
  4. Brownout

    Well-Known Member

    Jan 10, 2012
    2,375
    998
    I don't think you have the transfer function correct.

    According to your diagram:

    out = !(!a&b or !a&c&d or d&b&!d)

    Now, there is a very easy simplification for the 3rd term. You can apply the distro property and De Morgan's theorem to the rest.
     
Loading...