From 1f17471a76f17de257b3b16a373aebcea8408fe7 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 16 Nov 2023 15:45:05 +0100 Subject: [PATCH] added decoder to filelist, fixes errors management --- RecepteurLIN.core | 2 +- ReceptionTrame_lib/ReceptionTrame.core | 1 + ReceptionTrame_lib/receptionTrame_com.vhd | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/RecepteurLIN.core b/RecepteurLIN.core index 7905179..6753404 100644 --- a/RecepteurLIN.core +++ b/RecepteurLIN.core @@ -38,7 +38,7 @@ targets: analyze_options: - -fsynopsys run_options: - - --wave=waveform.ghw --stop-time=5ms + - --wave=waveform.ghw --stop-time=25ms parameters: synth: diff --git a/ReceptionTrame_lib/ReceptionTrame.core b/ReceptionTrame_lib/ReceptionTrame.core index 1800915..4046c33 100644 --- a/ReceptionTrame_lib/ReceptionTrame.core +++ b/ReceptionTrame_lib/ReceptionTrame.core @@ -8,6 +8,7 @@ filesets: - receptionTrame_op.vhd - receptionTrame.vhd - receptionTrame_com.vhd + - decoder_tbl.vhd file_type: vhdlSource depend: - ETN4:conceptionCircuits:LIN_TB:1.0.0 diff --git a/ReceptionTrame_lib/receptionTrame_com.vhd b/ReceptionTrame_lib/receptionTrame_com.vhd index a72fb93..62aa9f7 100644 --- a/ReceptionTrame_lib/receptionTrame_com.vhd +++ b/ReceptionTrame_lib/receptionTrame_com.vhd @@ -48,6 +48,10 @@ SIGNAL errs: errors; BEGIN +ErrorSet(1) <= errs.ErrorStartBit; +ErrorSet(2) <= errs.ErrorStopBit; +ErrorSet(3) <= errs.ErrorSync; + stateUpd : PROCESS(H, nRST) BEGIN IF(nRST = '0') THEN @@ -205,6 +209,7 @@ BEGIN nbData_EN <= '0'; RecByte_WR <= '0'; MsgRcv_SET <= '0'; + errs <= (others => '0'); CASE cState IS WHEN waiting =>