From 5e29570a5b863b6b4dff151cb9aaec820916adc4 Mon Sep 17 00:00:00 2001 From: hadeshyp Date: Thu, 4 Oct 2012 09:52:12 +0000 Subject: [PATCH] hift reg --- base/code/mbs_vulom_recv.vhd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/code/mbs_vulom_recv.vhd b/base/code/mbs_vulom_recv.vhd index f464f23..7d6f7f2 100644 --- a/base/code/mbs_vulom_recv.vhd +++ b/base/code/mbs_vulom_recv.vhd @@ -110,7 +110,7 @@ PROC_FSM: process begin state <= WAIT2; when WAIT2 => bitcnt <= bitcnt - 1; - shift_reg <= shift_reg(35 downto 1) & reg_MBS_IN; + shift_reg <= shift_reg(shift_reg'high - 1 downto 0) & reg_MBS_IN; state <= WAIT3; when WAIT3 => if bitcnt = 0 then @@ -134,7 +134,7 @@ PROC_REG_INFO : process begin if done = '1' then number_reg <= shift_reg(31 downto 8); status_reg <= shift_reg(7 downto 6); - if shift_reg(36 downto 32) = "01010" and shift_reg(4 downto 0) = "10101" and xor_all(31 downto 5) = '0' then + if shift_reg(36 downto 32) = "01010" and shift_reg(4 downto 0) = "10101" and xor_all(shift_reg(31 downto 5)) = '0' then error_reg <= '0'; else error_reg <= '1'; -- 2.43.0