Advertisement
Guest User

Untitled

a guest
Mar 10th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module And2 (
  2.     input x,y,
  3.     output f,
  4.     reg f
  5.     );
  6.     always @(x,y)
  7.     begin
  8.     f <= x & y;
  9.     end
  10. endmodule
  11. module TestBench (
  12.     reg x_s, y_s,
  13.     wire F_s,
  14.     And2 CompToTest(X_s,y_s,F_s)
  15.     );
  16.     initial begin
  17.         y_s <= 0;
  18.         x_s <= 0;
  19.         #10
  20.  
  21.     end
  22. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement