From c10c4d4f5ef5eff2adc35dbb3b5144ba12db6ab7 Mon Sep 17 00:00:00 2001 From: Laszlo Nagy Date: Tue, 19 Feb 2019 13:18:41 +0000 Subject: [PATCH] up_dac_common: fix address decoding Patch the typo introduced in a previous commit while attempting the address space reduction. --- library/common/up_dac_common.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/common/up_dac_common.v b/library/common/up_dac_common.v index f308484a3..b1c886ca3 100644 --- a/library/common/up_dac_common.v +++ b/library/common/up_dac_common.v @@ -153,8 +153,8 @@ module up_dac_common #( // decode block select - assign up_wreq_s = ({up_waddr[13:7],1'b0} == COMMON_ID) ? up_wreq : 1'b0; - assign up_rreq_s = ({up_raddr[13:7],1'b0} == COMMON_ID) ? up_rreq : 1'b0; + assign up_wreq_s = (up_waddr[13:7] == {COMMON_ID,1'b0}) ? up_wreq : 1'b0; + assign up_rreq_s = (up_raddr[13:7] == {COMMON_ID,1'b0}) ? up_rreq : 1'b0; assign up_dac_ce = up_dac_clk_enb_int;