Code refactoring
This commit is contained in:
parent
cf3daa12b0
commit
f759f0d201
@ -110,7 +110,7 @@ NAME DIRECTION CONNECTED
|
|||||||
* GET_<NAME>_LENGTH
|
* GET_<NAME>_LENGTH
|
||||||
The first decode_stage is similar to a 4-byte primitive decode stage and latches the length of the
|
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
|
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
|
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.
|
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.
|
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
|
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.
|
<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
|
||||||
-----
|
-----
|
||||||
Array is similar to the sequence, but has no length encoding (since it always has the same size).
|
Array is similar to the sequence, but has no length encoding (since it always has the same size).
|
||||||
|
|||||||
@ -129,7 +129,7 @@ begin
|
|||||||
stage_next <= RETURN_ROS;
|
stage_next <= RETURN_ROS;
|
||||||
end case;
|
end case;
|
||||||
-- RESET
|
-- RESET
|
||||||
abort_mem <= '1';
|
abort_mem <= '1';
|
||||||
else
|
else
|
||||||
-- ###GENERATED START###
|
-- ###GENERATED START###
|
||||||
-- MEMORY SIGNAL CONNECTIONS
|
-- MEMORY SIGNAL CONNECTIONS
|
||||||
|
|||||||
@ -16,7 +16,7 @@ use work.rtps_test_package.all;
|
|||||||
-- * Test RETCODE_ERROR response from DDS Reader
|
-- * Test RETCODE_ERROR response from DDS Reader
|
||||||
-- * Test RETCODE_ERROR response from DDS Writer
|
-- * Test RETCODE_ERROR response from DDS Writer
|
||||||
-- * Test Sample with No Valid response from DDS Reader
|
-- * 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
|
entity L1_AddTwoInts_ros_srv_test1 is
|
||||||
end entity;
|
end entity;
|
||||||
|
|||||||
@ -16,7 +16,7 @@ use work.rtps_test_package.all;
|
|||||||
-- * Test RETCODE_ERROR response from DDS Reader
|
-- * Test RETCODE_ERROR response from DDS Reader
|
||||||
-- * Test RETCODE_ERROR response from DDS Writer
|
-- * Test RETCODE_ERROR response from DDS Writer
|
||||||
-- * Test Sample with No Valid response from DDS Reader
|
-- * 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
|
entity L1_AddTwoInts_ros_srv_test2 is
|
||||||
end entity;
|
end entity;
|
||||||
|
|||||||
@ -17,7 +17,7 @@ use work.CancelGoal_package.all;
|
|||||||
-- * Test RETCODE_ERROR response from DDS Reader
|
-- * Test RETCODE_ERROR response from DDS Reader
|
||||||
-- * Test RETCODE_ERROR response from DDS Writer
|
-- * Test RETCODE_ERROR response from DDS Writer
|
||||||
-- * Test Sample with No Valid response from DDS Reader
|
-- * 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
|
entity L1_CancelGoal_ros_srv_test1 is
|
||||||
end entity;
|
end entity;
|
||||||
|
|||||||
@ -17,7 +17,7 @@ use work.CancelGoal_package.all;
|
|||||||
-- * Test RETCODE_ERROR response from DDS Reader
|
-- * Test RETCODE_ERROR response from DDS Reader
|
||||||
-- * Test RETCODE_ERROR response from DDS Writer
|
-- * Test RETCODE_ERROR response from DDS Writer
|
||||||
-- * Test Sample with No Valid response from DDS Reader
|
-- * 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
|
entity L1_CancelGoal_ros_srv_test2 is
|
||||||
end entity;
|
end entity;
|
||||||
|
|||||||
@ -16,7 +16,7 @@ use work.rtps_test_package.all;
|
|||||||
-- * Test RETCODE_ERROR response from DDS Reader
|
-- * Test RETCODE_ERROR response from DDS Reader
|
||||||
-- * Test RETCODE_ERROR response from DDS Writer
|
-- * Test RETCODE_ERROR response from DDS Writer
|
||||||
-- * Test Sample with No Valid response from DDS Reader
|
-- * 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
|
entity L1_Fibonacci_ros_action_goal_srv_test1 is
|
||||||
end entity;
|
end entity;
|
||||||
|
|||||||
@ -16,7 +16,7 @@ use work.rtps_test_package.all;
|
|||||||
-- * Test RETCODE_ERROR response from DDS Reader
|
-- * Test RETCODE_ERROR response from DDS Reader
|
||||||
-- * Test RETCODE_ERROR response from DDS Writer
|
-- * Test RETCODE_ERROR response from DDS Writer
|
||||||
-- * Test Sample with No Valid response from DDS Reader
|
-- * 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
|
entity L1_Fibonacci_ros_action_goal_srv_test2 is
|
||||||
end entity;
|
end entity;
|
||||||
|
|||||||
@ -17,7 +17,7 @@ use work.Fibonacci_package.all;
|
|||||||
-- * Test RETCODE_ERROR response from DDS Reader
|
-- * Test RETCODE_ERROR response from DDS Reader
|
||||||
-- * Test RETCODE_ERROR response from DDS Writer
|
-- * Test RETCODE_ERROR response from DDS Writer
|
||||||
-- * Test Sample with No Valid response from DDS Reader
|
-- * 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
|
entity L1_Fibonacci_ros_action_result_srv_test1 is
|
||||||
end entity;
|
end entity;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user