File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 2
2
* Generates synchronous RESET signal after 16 clock cycles
3
3
*/
4
4
5
- module crg (
5
+ module reset_gen (
6
6
input wire clk,
7
- output wire rst_n
7
+ output wire reset_n
8
8
);
9
9
10
10
reg [15 :0 ] x = 16'h0000 ;
11
11
always @(posedge clk)
12
12
x <= {x [14 :0 ], 1'b1 };
13
13
14
- assign rst_n = x [15 ];
14
+ assign reset_n = x [15 ];
15
15
16
16
endmodule ;
Original file line number Diff line number Diff line change
1
+ /**
2
+ * SMPTE 12M Linear Timecode (LTC) Generator
3
+ */
4
+
1
5
module top (
2
6
input wire clk,
3
7
output wire ltc
@@ -39,11 +43,11 @@ module top(
39
43
reg [79 :0 ] frame;
40
44
reg out;
41
45
42
- wire rst_n ;
43
- crg reset (clk, rst_n );
46
+ wire reset_n ;
47
+ reset_gen crg (clk, reset_n );
44
48
45
49
always @(posedge clk) begin
46
- if (rst_n ) begin
50
+ if (reset_n ) begin
47
51
out <= ~ out;
48
52
end
49
53
end
You can’t perform that action at this time.
0 commit comments