# HG changeset patch # User Alexis Jeandet # Date 2016-11-25 17:06:13 # Node ID d239e3167642b376741c77db4a143bd7d4da5a11 # Parent c45d52d9ef549fef1cf86de8bc5fbb97d6cdb51c Activated F2 and F3 IIR Filters for LFR_FILTERS tests. Improved Makefiles for LFR_FILTERS tests. diff --git a/tests/Validation_LFR_Filters/Makefile b/tests/Validation_LFR_Filters/Makefile --- a/tests/Validation_LFR_Filters/Makefile +++ b/tests/Validation_LFR_Filters/Makefile @@ -81,6 +81,11 @@ archivate: test-common: | generate ghdl ghdl-run archivate +test-vsim-common: | generate vsim vsim-run archivate + +test-vsim: + @echo "not a Test" + test: @echo "not a Test" diff --git a/tests/Validation_LFR_Filters/tb.vhd b/tests/Validation_LFR_Filters/tb.vhd --- a/tests/Validation_LFR_Filters/tb.vhd +++ b/tests/Validation_LFR_Filters/tb.vhd @@ -120,7 +120,7 @@ BEGIN GENERIC MAP ( tech => tech, Mem_use => Mem_use, - RTL_DESIGN_LIGHT =>1 + RTL_DESIGN_LIGHT =>0 ) PORT MAP ( sample => sample, diff --git a/tests/Validation_LFR_Filters_Noise/Makefile b/tests/Validation_LFR_Filters_Noise/Makefile --- a/tests/Validation_LFR_Filters_Noise/Makefile +++ b/tests/Validation_LFR_Filters_Noise/Makefile @@ -2,3 +2,5 @@ include ../Validation_LFR_Filters/Makefi test:test-common + +test-vsim:test-vsim-common diff --git a/tests/Validation_LFR_Filters_Noise/generate.py b/tests/Validation_LFR_Filters_Noise/generate.py --- a/tests/Validation_LFR_Filters_Noise/generate.py +++ b/tests/Validation_LFR_Filters_Noise/generate.py @@ -1,8 +1,13 @@ import numpy as np import random -W,H=8,100000 -low,high=-1000,1000 +W,H=8,6000000 +low,high=-100,100 +INPUT_F=98304 test = np.random.randint(low=low,high=high,size=(H,W)) +test+=np.tile((3.*np.cos(np.arange(len(test)) *2.*np.pi * 3. /INPUT_F )).astype(int),(8,1)).transpose() +test+=np.tile((3.*np.cos(np.arange(len(test)) *2.*np.pi * 16. /INPUT_F )).astype(int),(8,1)).transpose() +test+=np.tile((3.*np.cos(np.arange(len(test)) *2.*np.pi * 256. /INPUT_F )).astype(int),(8,1)).transpose() +test+=np.tile((3.*np.cos(np.arange(len(test)) *2.*np.pi * 2048. /INPUT_F )).astype(int),(8,1)).transpose() np.savetxt("input.txt", test,fmt="%d", delimiter=" ") diff --git a/tests/Validation_LFR_Filters_Offset/Makefile b/tests/Validation_LFR_Filters_Offset/Makefile --- a/tests/Validation_LFR_Filters_Offset/Makefile +++ b/tests/Validation_LFR_Filters_Offset/Makefile @@ -2,3 +2,5 @@ include ../Validation_LFR_Filters/Makefi test:test-common + +test-vsim:test-vsim-common