# Homework Help: Digital circuit function

1. Sep 26, 2009

### unknown_2

1. The problem statement, all variables and given/known data
given the midterm function:
f= m1 + m2 + m3 + m6 + m7 + m10 + m13

-supposed to simplify this function

2. Relevant equations

N/a

3. The attempt at a solution
i got the following functions using Karnaugh mapping:
f = $$\overline{x_{1}} \cdot \overline{x_{2}}$$ + $$\overline{x_{1}} \cdot x_{3}$$ + $$x_{1} \cdot x_{2} \cdot \overline{x_{3}}\cdot x_{4}$$ + $$\overline{x_{4}}\cdot x_{3}}$$

I tested it out by hand and it seemed fine to me, once i entered into Quartus and simulated a functional wave, m2 and m13 did not come out to 1 like it's supposed to.

Verlog code i used:
Code (Text):

module design_1 (x1,x2,x3,x4,f);
input x1, x2, x3, x4;
output f;
assign f =(~x1 | ~x2 | ~x3 | x4) & (~x1 | ~x2 | x3 | ~x4) &
(~x1 | ~x2 | x3 | x4) & (~x1 | x2 | x3 | ~x4) & (~x1 | x2 | x3 | x4) &
(x1 | ~x2 | x3 | ~x4) & (x1 | x2 | ~x3 | x4);
endmodule

can someone please tell me where i went wrong?

any help would be appreciated