Advertisement
DavidsonDFGL

Untitled

Sep 6th, 2014
508
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ---------------------
  2. // TRUTH TABLE
  3. // Nome: Guilherme José
  4. // Matricula: 451566
  5. // ---------------------
  6. // ---------------------
  7. // -- function
  8. // ---------------------
  9.  
  10. module fxyz (output s,
  11.  input x, y, z);
  12. assign s = ~x | (~y & ~z);
  13. endmodule // fxyz
  14. // ---------------------
  15. // -- testfuncion
  16. // ---------------------
  17. module testfuncion;
  18. reg x,y,z;
  19. wire s1,s2,s3;
  20.  
  21. fxyz FXY1 (s1,x,y,z);
  22. // valores iniciais
  23. initial begin:start
  24.  x=1'bx; y=1'bx; z=1'bx; // indefinidos
  25.  end
  26. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement