CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 06:57:34 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=975162c5da8faa7faf8070cd30e19fecb7860a11f5e977e98badaa06f461b4f3a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22ZAQEIfGcxHsAqQoFUpXL1H__EFhHFSJg%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d4b42a6d408839-BLR
TimeMeasurement module (LSIC) - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module TimeMeasurement(
- input clk,
- input rst,
- input [1:0] opcode,
- output [31:0] ms_count
- );
- reg [31:0] clk_counter_reg, clk_counter_nxt;
- reg [31:0] ms_count_reg, ms_count_nxt;
- reg running;
- always @(posedge clk or negedge rst) begin
- if (!rst) begin
- clk_counter_reg <= 0;
- ms_count_reg <= 0;
- end else begin
- clk_counter_reg <= clk_counter_nxt;
- ms_count_reg <= ms_count_nxt;
- end
- end
- always @(*) begin
- clk_counter_nxt = clk_counter_reg;
- ms_count_nxt = ms_count_reg;
- if (running) begin
- if (clk_counter_reg == 2499) begin
- clk_counter_nxt = 0;
- ms_count_nxt = ms_count_reg + 1;
- end else begin
- clk_counter_nxt = clk_counter_reg + 1;
- end
- end
- case (opcode)
- 2'b01: running = 1; // Start
- 2'b11: running = 0; // Pause
- 2'b10: begin // Stop
- running = 0;
- ms_count_nxt = 0;
- end
- default: running = 0; // Default state
- endcase
- end
- assign ms_count = ms_count_reg;
- endmodule
Advertisement
Add Comment
Please, Sign In to add comment
-
✅⭐ Make huge profits on trading ⭐⭐ E
JavaScript | 1 min ago | 0.25 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 1 min ago | 0.25 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ Y
JavaScript | 1 min ago | 0.25 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ A
JavaScript | 1 min ago | 0.25 KB
-
⭐✅ Swapzone Glitch ✅ Working ⭐⭐ L
JavaScript | 2 min ago | 0.25 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ H
JavaScript | 2 min ago | 0.25 KB
-
📌 Swapzone +37% glitch ⭐ 5
JavaScript | 2 min ago | 0.25 KB
-
✅⭐ Make huge profits on trading ⭐⭐ E
JavaScript | 2 min ago | 0.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand