Advertisement
Guest User

Untitled

a guest
May 20th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. `include "../common/and_gate/and_gate.sim.v"
  2. `include "../common/xor_gate/xor_gate.sim.v"
  3.  
  4. module TOP (I0, I1, O0, O1, O2, O3, Ox);
  5.   input  wire I0;
  6.   input  wire I1;
  7.   output wire O0;
  8.   output wire O1;
  9.   output wire O2;
  10.   output wire O3;
  11.  
  12.  (* FASM_PREFIX = "GATE_A" *)
  13.  AND_GATE gate_a(I0, I1, O0);
  14.  (* FASM_PREFIX = "GATE_B" *)
  15.  AND_GATE gate_b(I0, I1, O1);
  16.  (* FASM_PREFIX = "GATE_C" *)
  17.  AND_GATE gate_c(I0, I1, O2);
  18.  (* FASM_PREFIX = "GATE_D" *)
  19.  AND_GATE gate_d(I0, I1, O3);
  20.  
  21. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement