Skip to content

Commit ce31d5c

Browse files
refactor: always_ffのclockとresetの明示が不要な箇所は削除
1 parent 04f7eda commit ce31d5c

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

src/bit_decoder.veryl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module bit_decoder (
4949
assign o_bit_count = r_count;
5050
assign o_valid = r_valid;
5151

52-
always_ff (i_clk, i_rst) {
52+
always_ff {
5353
if_reset {
5454
r_bits = 5'b00000;
5555
r_count = 3'd0;

src/frame_parser.veryl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ module frame_parser (
8585
}
8686
}
8787

88-
always_ff (i_clk, i_rst) {
88+
always_ff {
8989
if_reset {
9090
bit_counter = 8'd0;
9191
shift_reg = 30'd0;

src/output_interface.veryl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ module output_interface (
6565

6666
// ロック検出
6767
// 数フレーム連続で同期が取れたらロック
68-
always_ff (i_clk, i_rst) {
68+
always_ff {
6969
if_reset {
7070
frame_cnt = 4'd0;
7171
locked = 1'b0;
@@ -82,7 +82,7 @@ module output_interface (
8282

8383
// ワードクロック生成
8484
// フレーム時間の約50%デューティ
85-
always_ff (i_clk, i_rst) {
85+
always_ff {
8686
if_reset {
8787
word_clk_cnt = 12'd0;
8888
word_clk = 1'b0;
@@ -100,7 +100,7 @@ module output_interface (
100100
}
101101

102102
// チャンネルデータ格納
103-
always_ff (i_clk, i_rst) {
103+
always_ff {
104104
if_reset {
105105
channels[0] = 24'd0;
106106
channels[1] = 24'd0;

src/timing_tracker.veryl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module timing_tracker (
5353
assign o_frame_time = frame_time;
5454

5555
// 遷移間時間カウンタと最大時間追跡
56-
always_ff (i_clk, i_rst) {
56+
always_ff {
5757
if_reset {
5858
cur_time = 12'd0;
5959
edge_time = 12'd0;

src/tx_bit_serializer.veryl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module tx_bit_serializer #(
6969
clk_freq = CLK_FREQ;
7070
}
7171

72-
always_ff (i_clk, i_rst) {
72+
always_ff {
7373
if_reset {
7474
frame_data = 256'd0;
7575
bit_counter = 8'd0;

src/tx_frame_builder.veryl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ module tx_frame_builder (
8787
build_frame[29:0] = ch7_encoded;
8888
}
8989

90-
always_ff (i_clk, i_rst) {
90+
always_ff {
9191
if_reset {
9292
r_frame = 256'd0;
9393
r_ready = 1'b0;

src/tx_nrzi_encoder.veryl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module tx_nrzi_encoder (
1919

2020
assign o_nrzi = nrzi_level;
2121

22-
always_ff (i_clk) {
22+
always_ff {
2323
if_reset {
2424
nrzi_level = 1'b0;
2525
} else if i_valid {

0 commit comments

Comments
 (0)