From 6da4f617860af7feec10a17ef81fe48ae32d4ec0 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 9 Oct 2020 07:54:42 -0500 Subject: [PATCH] ad_ip_jesd204_tpl_dac_framer: fix localparam ordering The parameters were not in the order of invocation and this causes an error in the vivado simulator (xsim). --- .../ad_ip_jesd204_tpl_dac/ad_ip_jesd204_tpl_dac_framer.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/jesd204/ad_ip_jesd204_tpl_dac/ad_ip_jesd204_tpl_dac_framer.v b/library/jesd204/ad_ip_jesd204_tpl_dac/ad_ip_jesd204_tpl_dac_framer.v index f52f08db9..87843290c 100644 --- a/library/jesd204/ad_ip_jesd204_tpl_dac/ad_ip_jesd204_tpl_dac_framer.v +++ b/library/jesd204/ad_ip_jesd204_tpl_dac/ad_ip_jesd204_tpl_dac_framer.v @@ -89,11 +89,11 @@ module ad_ip_jesd204_tpl_dac_framer #( * ordered in either case. That means lower bits are in the LSBs. */ - localparam FRAMES_PER_BEAT = OCTETS_PER_BEAT * 8 / BITS_PER_LANE_PER_FRAME; - localparam SAMPLES_PER_BEAT = DAC_DATA_WIDTH / CONVERTER_RESOLUTION; localparam BITS_PER_CHANNEL_PER_FRAME = BITS_PER_SAMPLE * SAMPLES_PER_FRAME; localparam BITS_PER_LANE_PER_FRAME = BITS_PER_CHANNEL_PER_FRAME * NUM_CHANNELS / NUM_LANES; + localparam FRAMES_PER_BEAT = OCTETS_PER_BEAT * 8 / BITS_PER_LANE_PER_FRAME; + localparam SAMPLES_PER_BEAT = DAC_DATA_WIDTH / CONVERTER_RESOLUTION; localparam TAIL_BITS = BITS_PER_SAMPLE - CONVERTER_RESOLUTION; wire [LINK_DATA_WIDTH-1:0] link_data_msb_s;