Skip to content

Commit 6b22c90

Browse files
committed
Updated EdgeDetect module instantiation
1 parent 2431265 commit 6b22c90

12 files changed

+30
-45
lines changed
File renamed without changes.

ActionBurst2_tb.v

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//--------------------------------------------------------------------------------
2-
// SimWrapper.v
2+
// ActionBurst2_tb.v
33
// Konstantin Pavlov, [email protected]
44
//--------------------------------------------------------------------------------
55

@@ -9,7 +9,7 @@
99

1010
`timescale 1ns / 1ps
1111

12-
module SimWrapper();
12+
module ActionBurst2_tb();
1313

1414
reg clk200;
1515
initial begin

ActionBurst_tb.v

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//--------------------------------------------------------------------------------
2-
// SimWrapper.v
2+
// ActionBurst_tb.v
33
// Konstantin Pavlov, [email protected]
44
//--------------------------------------------------------------------------------
55

@@ -9,7 +9,7 @@
99

1010
`timescale 1ns / 1ps
1111

12-
module SimWrapper();
12+
module ActionBurst_tb();
1313

1414
reg clk200;
1515
initial begin

DeBounce_tb.v

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//--------------------------------------------------------------------------------
2-
// Main_TB.v
2+
// DeBounce_tb.v
33
// Konstantin Pavlov, [email protected]
44
//--------------------------------------------------------------------------------
55

@@ -9,7 +9,7 @@
99

1010
`timescale 1ns / 1ps
1111

12-
module Main_tb();
12+
module DeBounce_tb();
1313

1414
reg clk200;
1515
initial begin

Encoder_tb.v

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//--------------------------------------------------------------------------------
2-
// Encoder_test project, 201601
3-
// Main_tb.v
2+
// Encoder_tb.v
43
// Konstantin Pavlov, [email protected]
54
//--------------------------------------------------------------------------------
65

@@ -10,7 +9,7 @@
109

1110
`timescale 1ns / 1ps
1211

13-
module Main_tb();
12+
module Encoder_tb();
1413

1514
reg clk200;
1615
initial begin

PulseGen_tb.v

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//--------------------------------------------------------------------------------
2-
// PulseGen_test project, 201512
3-
// Main_tb.v
2+
// PulseGen.v
43
// Konstantin Pavlov, [email protected]
54
//--------------------------------------------------------------------------------
65

@@ -10,12 +9,12 @@
109

1110
`timescale 1ns / 1ps
1211

13-
module Main_tb();
12+
module PulseGen_tb();
1413

1514
reg clk200;
1615
initial begin
1716
#0 clk200 = 1;
18-
forever
17+
forever
1918
#2.5 clk200 = ~clk200;
2019
end
2120

@@ -62,6 +61,5 @@ PulseGen PG1 (clk200,~rst,1,1,1'b1,start,busy1,out1);
6261

6362
wire busy2,out2;
6463
PulseGen PG2 (clk200,~rst,{28'b0,RandomNumber1[3:0]},{28'b0,RandomNumber1[7:4]},1'b0,&RandomNumber1[2:0],busy2,out2);
65-
64+
6665
endmodule
67-

ReverseVector_tb.sv

+3-5
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,9 @@ ClkDivider #(
5555
);
5656

5757
logic [31:0] E_DerivedClocks;
58-
EdgeDetect #(
59-
.WIDTH( 32 )
60-
) ED1 (
61-
.clk( clk200 ),
62-
.nrst( nrst_once ),
58+
EdgeDetect ED1[31:0] (
59+
.clk( {32{clk200}} ),
60+
.nrst( {32{nrst_once}} ),
6361
.in( DerivedClocks[31:0] ),
6462
.rising( E_DerivedClocks[31:0] ),
6563
.falling( ),

bin2pos_tb.sv

+3-5
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,9 @@ ClkDivider #(
5555
);
5656

5757
logic [31:0] E_DerivedClocks;
58-
EdgeDetect #(
59-
.WIDTH( 32 )
60-
) ED1 (
61-
.clk( clk200 ),
62-
.nrst( nrst_once ),
58+
EdgeDetect ED1[31:0] (
59+
.clk( {32{clk200}} ),
60+
.nrst( {32{nrst_once}} ),
6361
.in( DerivedClocks[31:0] ),
6462
.rising( E_DerivedClocks[31:0] ),
6563
.falling( ),

fifo_tb.sv

+3-5
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,9 @@ ClkDivider #(
5555
);
5656

5757
logic [31:0] E_DerivedClocks;
58-
EdgeDetect #(
59-
.WIDTH( 32 )
60-
) ED1 (
61-
.clk( clk200 ),
62-
.nrst( nrst_once ),
58+
EdgeDetect ED1[31:0] (
59+
.clk( {32{clk200}} ),
60+
.nrst( {32{nrst_once}} ),
6361
.in( DerivedClocks[31:0] ),
6462
.rising( E_DerivedClocks[31:0] ),
6563
.falling( ),

lifo_tb.sv

+3-5
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,9 @@ ClkDivider #(
5555
);
5656

5757
logic [31:0] E_DerivedClocks;
58-
EdgeDetect #(
59-
.WIDTH( 32 )
60-
) ED1 (
61-
.clk( clk200 ),
62-
.nrst( nrst_once ),
58+
EdgeDetect ED1[31:0] (
59+
.clk( {32{clk200}} ),
60+
.nrst( {32{nrst_once}} ),
6361
.in( DerivedClocks[31:0] ),
6462
.rising( E_DerivedClocks[31:0] ),
6563
.falling( ),

main_tb.sv

+3-5
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,9 @@ ClkDivider #(
5454
);
5555

5656
logic [31:0] E_DerivedClocks;
57-
EdgeDetect #(
58-
.WIDTH( 32 )
59-
) ED1 (
60-
.clk( clk200 ),
61-
.nrst( nrst_once ),
57+
EdgeDetect ED1[31:0] (
58+
.clk( {32{clk200}} ),
59+
.nrst( {32{nrst_once}} ),
6260
.in( DerivedClocks[31:0] ),
6361
.rising( E_DerivedClocks[31:0] ),
6462
.falling( ),

pos2bin_tb.sv

+3-5
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,9 @@ ClkDivider #(
5555
);
5656

5757
logic [31:0] E_DerivedClocks;
58-
EdgeDetect #(
59-
.WIDTH( 32 )
60-
) ED1 (
61-
.clk( clk200 ),
62-
.nrst( nrst_once ),
58+
EdgeDetect ED1[31:0] (
59+
.clk( {32{clk200}} ),
60+
.nrst( {32{nrst_once}} ),
6361
.in( DerivedClocks[31:0] ),
6462
.rising( E_DerivedClocks[31:0] ),
6563
.falling( ),

0 commit comments

Comments
 (0)