Line 16... |
Line 16... |
-- See the License for the specific language governing permissions and
|
-- See the License for the specific language governing permissions and
|
-- limitations under the License.
|
-- limitations under the License.
|
--
|
--
|
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
|
|
LIBRARY IEEE, common_pkg_lib, common_counter_lib;
|
LIBRARY IEEE, common_pkg_lib, astron_counter_lib;
|
USE IEEE.std_logic_1164.ALL;
|
USE IEEE.std_logic_1164.ALL;
|
USE IEEE.numeric_std.ALL;
|
USE IEEE.numeric_std.ALL;
|
USE common_pkg_lib.common_pkg.ALL;
|
USE common_pkg_lib.common_pkg.ALL;
|
USE common_pkg_lib.common_lfsr_sequences_pkg.ALL;
|
USE common_pkg_lib.common_lfsr_sequences_pkg.ALL;
|
|
|
Line 132... |
Line 132... |
|
|
nxt_out_dat <= diag_init WHEN diag_dc='1' ELSE prsg WHEN diag_sel='0' ELSE cntr;
|
nxt_out_dat <= diag_init WHEN diag_dc='1' ELSE prsg WHEN diag_sel='0' ELSE cntr;
|
nxt_out_val <= diag_en AND diag_req; -- 'en' for entire test on/off, 'req' for dynamic invalid gaps in the stream
|
nxt_out_val <= diag_en AND diag_req; -- 'en' for entire test on/off, 'req' for dynamic invalid gaps in the stream
|
|
|
-- Count number of valid output data
|
-- Count number of valid output data
|
u_common_counter : ENTITY common_counter_lib.common_counter
|
u_common_counter : ENTITY astron_counter_lib.common_counter
|
GENERIC MAP (
|
GENERIC MAP (
|
g_latency => g_latency, -- default 1 for registered count output, use 0 for immediate combinatorial count output
|
g_latency => g_latency, -- default 1 for registered count output, use 0 for immediate combinatorial count output
|
g_width => g_cnt_w
|
g_width => g_cnt_w
|
)
|
)
|
PORT MAP (
|
PORT MAP (
|