byte count fix

This commit is contained in:
leo 2023-11-17 16:14:24 +01:00
parent 498dcd12e3
commit 0a31cb2809
Signed by: leo
GPG Key ID: 0DD993BFB2B307DB
2 changed files with 23 additions and 21 deletions

View File

@ -65,6 +65,7 @@ ARCHITECTURE struct OF FrameReception IS
SIGNAL n_SELECT : std_logic;
SIGNAL nbData_EN : std_logic;
SIGNAL octetRecu_EN : std_logic;
SIGNAL RecByte_WR_int : std_logic;
-- Component Declarations
@ -128,26 +129,27 @@ ARCHITECTURE struct OF FrameReception IS
BEGIN
NbRecByte_Inc <= RecByte_WR_int;
RecByte_WR <= RecByte_WR_int;
-- ModuleWare code(v1.12) for instance 'U_2' of 'pbuf'
u_2seq_proc: PROCESS (octetRecu_EN)
BEGIN
IF (octetRecu_EN ='1' ) THEN
NbRecByte_Inc <= '1';
ELSIF (octetRecu_EN ='H' ) THEN
NbRecByte_Inc <= '1';
ELSIF (octetRecu_EN ='0' ) THEN
NbRecByte_Inc <= '0';
ELSIF (octetRecu_EN ='L' ) THEN
NbRecByte_Inc <= '0';
ELSIF (octetRecu_EN ='U' ) THEN
NbRecByte_Inc <= 'U';
ELSIF (octetRecu_EN ='X' ) THEN
NbRecByte_Inc <= 'X';
ELSIF (octetRecu_EN ='Z' ) THEN
NbRecByte_Inc <= 'X';
END IF;
END PROCESS u_2seq_proc;
-- u_2seq_proc: PROCESS (octetRecu_EN)
-- BEGIN
-- IF (octetRecu_EN ='1' ) THEN
-- NbRecByte_Inc <= '1';
-- ELSIF (octetRecu_EN ='H' ) THEN
-- NbRecByte_Inc <= '1';
-- ELSIF (octetRecu_EN ='0' ) THEN
-- NbRecByte_Inc <= '0';
-- ELSIF (octetRecu_EN ='L' ) THEN
-- NbRecByte_Inc <= '0';
-- ELSIF (octetRecu_EN ='U' ) THEN
-- NbRecByte_Inc <= 'U';
-- ELSIF (octetRecu_EN ='X' ) THEN
-- NbRecByte_Inc <= 'X';
-- ELSIF (octetRecu_EN ='Z' ) THEN
-- NbRecByte_Inc <= 'X';
-- END IF;
-- END PROCESS u_2seq_proc;
-- ModuleWare code(v1.12) for instance 'U_3' of 'pbuf'
u_3seq_proc: PROCESS (octetRecu_EN)
@ -188,7 +190,7 @@ BEGIN
n_0 => n_0,
BitNb_0 => BitsNb_0,
DataNb_0 => DataFieldNb_0,
RecByte_WR => RecByte_WR,
RecByte_WR => RecByte_WR_int,
RecByte_RST => RecByte_RST,
ErrorSet => ErrorSet,
MsgRcv_SET => MsgRcv_SET

View File

@ -96,7 +96,7 @@ BEGIN
END IF;
ELSE
IF (mw_U_1c_cnt = "0000") THEN
mw_U_1n_cnt <= "1111";
mw_U_1n_cnt <= "0000";
ELSE
mw_U_1n_cnt <= (unsigned(mw_U_1c_cnt) - '1');
END IF;