Code refactoring

This commit is contained in:
John Ring 2022-03-02 11:00:37 +01:00
parent cf3daa12b0
commit f759f0d201
9 changed files with 12 additions and 9 deletions

View File

@ -110,7 +110,7 @@ NAME DIRECTION CONNECTED
* GET_<NAME>_LENGTH
The first decode_stage is similar to a 4-byte primitive decode stage and latches the length of the
sequence into the <NAME>_len_latch. If the length is equal zero, the decode_stage of the next
declared member is taken, instead of the GET_<NAME>. If on the other hand, the length if greater
declared member is taken, instead of the GET_<NAME>. If on the other hand, the length is greater
than the MAX sequence length specified in the type package, the length is set to the value of the
type package. A special <NAME>_cnt counter (used to index the type specific memory) is initialized to 0.
NOTE: It could be configured, that instead of truncating larger sequences, a decode error is triggered.
@ -121,6 +121,9 @@ NAME DIRECTION CONNECTED
respective size, the <NAME>_cnt is incremented, and if the current <NAME>_cnt is equal to
<NAME>_len-1, the decode_stage of the next declared member is taken.
A 'abort_mem' signal is defined and connected (ORed) to the reset port of all memories. The 'abort_mem'
signal is pulled high when leaving from the IDLE stage to clear all memory output latches.
ARRAY
-----
Array is similar to the sequence, but has no length encoding (since it always has the same size).

View File

@ -129,7 +129,7 @@ begin
stage_next <= RETURN_ROS;
end case;
-- RESET
abort_mem <= '1';
abort_mem <= '1';
else
-- ###GENERATED START###
-- MEMORY SIGNAL CONNECTIONS

View File

@ -16,7 +16,7 @@ use work.rtps_test_package.all;
-- * Test RETCODE_ERROR response from DDS Reader
-- * Test RETCODE_ERROR response from DDS Writer
-- * Test Sample with No Valid response from DDS Reader
-- * Test Big Endian Encoding/Decoding of AddTwoInts Service Messages
-- * Test Big Endian Encoding/Decoding of Service Messages
entity L1_AddTwoInts_ros_srv_test1 is
end entity;

View File

@ -16,7 +16,7 @@ use work.rtps_test_package.all;
-- * Test RETCODE_ERROR response from DDS Reader
-- * Test RETCODE_ERROR response from DDS Writer
-- * Test Sample with No Valid response from DDS Reader
-- * Test Little Endian Encoding/Decoding of AddTwoInts Service Messages
-- * Test Little Endian Encoding/Decoding of Service Messages
entity L1_AddTwoInts_ros_srv_test2 is
end entity;

View File

@ -17,7 +17,7 @@ use work.CancelGoal_package.all;
-- * Test RETCODE_ERROR response from DDS Reader
-- * Test RETCODE_ERROR response from DDS Writer
-- * Test Sample with No Valid response from DDS Reader
-- * Test Big Endian Encoding/Decoding of AddTwoInts Service Messages
-- * Test Big Endian Encoding/Decoding of Service Messages
entity L1_CancelGoal_ros_srv_test1 is
end entity;

View File

@ -17,7 +17,7 @@ use work.CancelGoal_package.all;
-- * Test RETCODE_ERROR response from DDS Reader
-- * Test RETCODE_ERROR response from DDS Writer
-- * Test Sample with No Valid response from DDS Reader
-- * Test Little Endian Encoding/Decoding of AddTwoInts Service Messages
-- * Test Little Endian Encoding/Decoding of Service Messages
entity L1_CancelGoal_ros_srv_test2 is
end entity;

View File

@ -16,7 +16,7 @@ use work.rtps_test_package.all;
-- * Test RETCODE_ERROR response from DDS Reader
-- * Test RETCODE_ERROR response from DDS Writer
-- * Test Sample with No Valid response from DDS Reader
-- * Test Big Endian Encoding/Decoding of AddTwoInts Service Messages
-- * Test Big Endian Encoding/Decoding of Service Messages
entity L1_Fibonacci_ros_action_goal_srv_test1 is
end entity;

View File

@ -16,7 +16,7 @@ use work.rtps_test_package.all;
-- * Test RETCODE_ERROR response from DDS Reader
-- * Test RETCODE_ERROR response from DDS Writer
-- * Test Sample with No Valid response from DDS Reader
-- * Test Little Endian Encoding/Decoding of AddTwoInts Service Messages
-- * Test Little Endian Encoding/Decoding of Service Messages
entity L1_Fibonacci_ros_action_goal_srv_test2 is
end entity;

View File

@ -17,7 +17,7 @@ use work.Fibonacci_package.all;
-- * Test RETCODE_ERROR response from DDS Reader
-- * Test RETCODE_ERROR response from DDS Writer
-- * Test Sample with No Valid response from DDS Reader
-- * Test Big Endian Encoding/Decoding of AddTwoInts Service Messages
-- * Test Big Endian Encoding/Decoding of Service Messages
entity L1_Fibonacci_ros_action_result_srv_test1 is
end entity;