Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module counter(LEDR,SW);
- // I/O ports
- output [3:0] LEDR;
- input [1:0] SW;
- // Instantiate the T flipflops
- T_FF tff0(LEDR[0], SW[1] , SW[0]);
- T_FF tff1(LEDR[1], LEDR[0], SW[0]);
- T_FF tff2(LEDR[2], LEDR[1], SW[0]);
- T_FF tff3(LEDR[3], LEDR[1], SW[0]);
- endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement