From b2ea1c8568b8f9e6293b7f261e21eb0cf12f9a16 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Thu, 26 Feb 2015 21:41:51 -0800 Subject: [PATCH] Add parameters to ip_complete testbenches --- tb/test_ip_complete.v | 14 ++++++++++---- tb/test_ip_complete_64.v | 14 ++++++++++---- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/tb/test_ip_complete.v b/tb/test_ip_complete.v index dbbf40d20..ed1670ff6 100644 --- a/tb/test_ip_complete.v +++ b/tb/test_ip_complete.v @@ -28,6 +28,12 @@ THE SOFTWARE. module test_ip_complete; +// Parameters +parameter ARP_CACHE_ADDR_WIDTH = 2; +parameter ARP_REQUEST_RETRY_COUNT = 4; +parameter ARP_REQUEST_RETRY_INTERVAL = 150; +parameter ARP_REQUEST_TIMEOUT = 400; + // Inputs reg clk = 0; reg rst = 0; @@ -193,10 +199,10 @@ initial begin end ip_complete #( - .ARP_CACHE_ADDR_WIDTH(2), - .ARP_REQUEST_RETRY_COUNT(4), - .ARP_REQUEST_RETRY_INTERVAL(150), - .ARP_REQUEST_TIMEOUT(400) + .ARP_CACHE_ADDR_WIDTH(ARP_CACHE_ADDR_WIDTH), + .ARP_REQUEST_RETRY_COUNT(ARP_REQUEST_RETRY_COUNT), + .ARP_REQUEST_RETRY_INTERVAL(ARP_REQUEST_RETRY_INTERVAL), + .ARP_REQUEST_TIMEOUT(ARP_REQUEST_TIMEOUT) ) UUT ( .clk(clk), diff --git a/tb/test_ip_complete_64.v b/tb/test_ip_complete_64.v index 790c90cf3..d835efe45 100644 --- a/tb/test_ip_complete_64.v +++ b/tb/test_ip_complete_64.v @@ -28,6 +28,12 @@ THE SOFTWARE. module test_ip_complete_64; +// Parameters +parameter ARP_CACHE_ADDR_WIDTH = 2; +parameter ARP_REQUEST_RETRY_COUNT = 4; +parameter ARP_REQUEST_RETRY_INTERVAL = 150; +parameter ARP_REQUEST_TIMEOUT = 400; + // Inputs reg clk = 0; reg rst = 0; @@ -201,10 +207,10 @@ initial begin end ip_complete_64 #( - .ARP_CACHE_ADDR_WIDTH(2), - .ARP_REQUEST_RETRY_COUNT(4), - .ARP_REQUEST_RETRY_INTERVAL(150), - .ARP_REQUEST_TIMEOUT(400) + .ARP_CACHE_ADDR_WIDTH(ARP_CACHE_ADDR_WIDTH), + .ARP_REQUEST_RETRY_COUNT(ARP_REQUEST_RETRY_COUNT), + .ARP_REQUEST_RETRY_INTERVAL(ARP_REQUEST_RETRY_INTERVAL), + .ARP_REQUEST_TIMEOUT(ARP_REQUEST_TIMEOUT) ) UUT ( .clk(clk),