From 6b22c900b145583399fd98ec66fa222eea03e7c4 Mon Sep 17 00:00:00 2001 From: "Konstantin Pavlov (fm)" Date: Fri, 7 Dec 2018 11:26:03 +0300 Subject: [PATCH] Updated EdgeDetect module instantiation --- main_tb.v => 00_obsolete/main_tb.v | 0 ActionBurst2_tb.v | 4 ++-- ActionBurst_tb.v | 4 ++-- DeBounce_tb.v | 4 ++-- Encoder_tb.v | 5 ++--- PulseGen_tb.v | 10 ++++------ ReverseVector_tb.sv | 8 +++----- bin2pos_tb.sv | 8 +++----- fifo_tb.sv | 8 +++----- lifo_tb.sv | 8 +++----- main_tb.sv | 8 +++----- pos2bin_tb.sv | 8 +++----- 12 files changed, 30 insertions(+), 45 deletions(-) rename main_tb.v => 00_obsolete/main_tb.v (100%) diff --git a/main_tb.v b/00_obsolete/main_tb.v similarity index 100% rename from main_tb.v rename to 00_obsolete/main_tb.v diff --git a/ActionBurst2_tb.v b/ActionBurst2_tb.v index 6544c6b..2c2cfa4 100644 --- a/ActionBurst2_tb.v +++ b/ActionBurst2_tb.v @@ -1,5 +1,5 @@ //-------------------------------------------------------------------------------- -// SimWrapper.v +// ActionBurst2_tb.v // Konstantin Pavlov, pavlovconst@gmail.com //-------------------------------------------------------------------------------- @@ -9,7 +9,7 @@ `timescale 1ns / 1ps -module SimWrapper(); +module ActionBurst2_tb(); reg clk200; initial begin diff --git a/ActionBurst_tb.v b/ActionBurst_tb.v index 4ab97ee..0f02613 100644 --- a/ActionBurst_tb.v +++ b/ActionBurst_tb.v @@ -1,5 +1,5 @@ //-------------------------------------------------------------------------------- -// SimWrapper.v +// ActionBurst_tb.v // Konstantin Pavlov, pavlovconst@gmail.com //-------------------------------------------------------------------------------- @@ -9,7 +9,7 @@ `timescale 1ns / 1ps -module SimWrapper(); +module ActionBurst_tb(); reg clk200; initial begin diff --git a/DeBounce_tb.v b/DeBounce_tb.v index 27a5869..8b606e9 100644 --- a/DeBounce_tb.v +++ b/DeBounce_tb.v @@ -1,5 +1,5 @@ //-------------------------------------------------------------------------------- -// Main_TB.v +// DeBounce_tb.v // Konstantin Pavlov, pavlovconst@gmail.com //-------------------------------------------------------------------------------- @@ -9,7 +9,7 @@ `timescale 1ns / 1ps -module Main_tb(); +module DeBounce_tb(); reg clk200; initial begin diff --git a/Encoder_tb.v b/Encoder_tb.v index 69266b0..db83480 100644 --- a/Encoder_tb.v +++ b/Encoder_tb.v @@ -1,6 +1,5 @@ //-------------------------------------------------------------------------------- -// Encoder_test project, 201601 -// Main_tb.v +// Encoder_tb.v // Konstantin Pavlov, pavlovconst@gmail.com //-------------------------------------------------------------------------------- @@ -10,7 +9,7 @@ `timescale 1ns / 1ps -module Main_tb(); +module Encoder_tb(); reg clk200; initial begin diff --git a/PulseGen_tb.v b/PulseGen_tb.v index d3a9051..1462350 100644 --- a/PulseGen_tb.v +++ b/PulseGen_tb.v @@ -1,6 +1,5 @@ //-------------------------------------------------------------------------------- -// PulseGen_test project, 201512 -// Main_tb.v +// PulseGen.v // Konstantin Pavlov, pavlovconst@gmail.com //-------------------------------------------------------------------------------- @@ -10,12 +9,12 @@ `timescale 1ns / 1ps -module Main_tb(); +module PulseGen_tb(); reg clk200; initial begin #0 clk200 = 1; - forever + forever #2.5 clk200 = ~clk200; end @@ -62,6 +61,5 @@ PulseGen PG1 (clk200,~rst,1,1,1'b1,start,busy1,out1); wire busy2,out2; PulseGen PG2 (clk200,~rst,{28'b0,RandomNumber1[3:0]},{28'b0,RandomNumber1[7:4]},1'b0,&RandomNumber1[2:0],busy2,out2); - + endmodule - \ No newline at end of file diff --git a/ReverseVector_tb.sv b/ReverseVector_tb.sv index 282d107..0a4a7e4 100755 --- a/ReverseVector_tb.sv +++ b/ReverseVector_tb.sv @@ -55,11 +55,9 @@ ClkDivider #( ); logic [31:0] E_DerivedClocks; -EdgeDetect #( - .WIDTH( 32 ) -) ED1 ( - .clk( clk200 ), - .nrst( nrst_once ), +EdgeDetect ED1[31:0] ( + .clk( {32{clk200}} ), + .nrst( {32{nrst_once}} ), .in( DerivedClocks[31:0] ), .rising( E_DerivedClocks[31:0] ), .falling( ), diff --git a/bin2pos_tb.sv b/bin2pos_tb.sv index f7787f6..19e7afa 100755 --- a/bin2pos_tb.sv +++ b/bin2pos_tb.sv @@ -55,11 +55,9 @@ ClkDivider #( ); logic [31:0] E_DerivedClocks; -EdgeDetect #( - .WIDTH( 32 ) -) ED1 ( - .clk( clk200 ), - .nrst( nrst_once ), +EdgeDetect ED1[31:0] ( + .clk( {32{clk200}} ), + .nrst( {32{nrst_once}} ), .in( DerivedClocks[31:0] ), .rising( E_DerivedClocks[31:0] ), .falling( ), diff --git a/fifo_tb.sv b/fifo_tb.sv index 07b1746..d59484e 100644 --- a/fifo_tb.sv +++ b/fifo_tb.sv @@ -55,11 +55,9 @@ ClkDivider #( ); logic [31:0] E_DerivedClocks; -EdgeDetect #( - .WIDTH( 32 ) -) ED1 ( - .clk( clk200 ), - .nrst( nrst_once ), +EdgeDetect ED1[31:0] ( + .clk( {32{clk200}} ), + .nrst( {32{nrst_once}} ), .in( DerivedClocks[31:0] ), .rising( E_DerivedClocks[31:0] ), .falling( ), diff --git a/lifo_tb.sv b/lifo_tb.sv index 94c957e..15b270e 100644 --- a/lifo_tb.sv +++ b/lifo_tb.sv @@ -55,11 +55,9 @@ ClkDivider #( ); logic [31:0] E_DerivedClocks; -EdgeDetect #( - .WIDTH( 32 ) -) ED1 ( - .clk( clk200 ), - .nrst( nrst_once ), +EdgeDetect ED1[31:0] ( + .clk( {32{clk200}} ), + .nrst( {32{nrst_once}} ), .in( DerivedClocks[31:0] ), .rising( E_DerivedClocks[31:0] ), .falling( ), diff --git a/main_tb.sv b/main_tb.sv index 725089e..c86960b 100644 --- a/main_tb.sv +++ b/main_tb.sv @@ -54,11 +54,9 @@ ClkDivider #( ); logic [31:0] E_DerivedClocks; -EdgeDetect #( - .WIDTH( 32 ) -) ED1 ( - .clk( clk200 ), - .nrst( nrst_once ), +EdgeDetect ED1[31:0] ( + .clk( {32{clk200}} ), + .nrst( {32{nrst_once}} ), .in( DerivedClocks[31:0] ), .rising( E_DerivedClocks[31:0] ), .falling( ), diff --git a/pos2bin_tb.sv b/pos2bin_tb.sv index 9597e58..5a30328 100755 --- a/pos2bin_tb.sv +++ b/pos2bin_tb.sv @@ -55,11 +55,9 @@ ClkDivider #( ); logic [31:0] E_DerivedClocks; -EdgeDetect #( - .WIDTH( 32 ) -) ED1 ( - .clk( clk200 ), - .nrst( nrst_once ), +EdgeDetect ED1[31:0] ( + .clk( {32{clk200}} ), + .nrst( {32{nrst_once}} ), .in( DerivedClocks[31:0] ), .rising( E_DerivedClocks[31:0] ), .falling( ),