- #1
unknown_2
- 29
- 0
Homework Statement
given the midterm function:
f= m1 + m2 + m3 + m6 + m7 + m10 + m13
-supposed to simplify this function
Homework Equations
N/a
The Attempt at a Solution
i got the following functions using Karnaugh mapping:
f = [tex]\overline{x_{1}} \cdot \overline{x_{2}}[/tex] + [tex]\overline{x_{1}} \cdot x_{3}[/tex] + [tex]x_{1} \cdot x_{2} \cdot \overline{x_{3}}\cdot x_{4}[/tex] + [tex]\overline{x_{4}}\cdot x_{3}}[/tex]
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:
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
thanks in advanced,
Last edited: