Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- `timescale 1ns/100ps
- `default_nettype none
- module Circuit_1(A, B, C, F1, F2);
- output F1, F2;
- input A, B, C;
- wire T1, T2, T3, T4, T5, T6, T7;
- // Lower group
- and (T4, A, B);
- and (T5, A, C);
- and (T6, B, C);
- or (F2, T4, T5, T6);
- // Top inputs
- and (T2, A, B, C);
- or (T1, A, B, C);
- // Middle section
- not (F2, T7);
- and (T3, T7);
- // Top output
- or (F1, T2, T3);
- endmodule // Circuit_1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement