Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module cronometru(input clk,
- input rst,
- input en,
- input [2:0]cmd,
- output [27:0]leds);
- wire clk_to_manager;
- wire [27:0]times;
- clk_gen #(.tact(5000000)) manager(.clk(clk),
- .rst(rst),
- .en(en),
- .clk_div(clk_to_manager));
- time_manager counter_clocks(.clk(clk_to_manager),
- .rst(rst),
- .op(cmd),
- .time_manager(times));
- hex first_min(.clocks(times[15:12]),
- .hex(leds[27:21]) );
- hex second_min(.clocks(times[11:8]),
- .hex(leds[20:14]) );
- hex first_sec(.clocks(times[7:4] ),
- .hex(leds[13:7] ) );
- hex second_sec(.clocks(times[3:0] ),
- .hex(leds[6:0] ) );
- endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement