Commit Graph

53 Commits

Author SHA1 Message Date
Greek
63ce5642de Add AddTwoInts ROS Service Implementation
A complete ROS service server and client implementation of the
example_interfaces AddTwoInts service is done, along with an acompaning
testbench.
2022-01-24 17:53:07 +01:00
Greek
3ee4769c52 Rename *_wrapper to *_interface
Since the Type Specific user facing entities did not actually wrap the
DDS entities, but connected to them through port signals, a more
semantically correct name would be "interface", since they are the user
facing interface of the DDS entities.
2022-01-03 14:25:27 +01:00
Greek
4b81cf9484 Propagate LIFESPAN through ENDPOINT_MATCH_FRAME instead of inline QoS
Since we disabled the 'expectsInlineQoS' Flag due to Cyclone DDS
compatibility, we no longer have access to the lifespan of the remote
writers.
The Endpoint Match Format was changed to also send the Lifespan Duration
from the rtps_builtin_endpoint.
2021-12-23 16:20:18 +01:00
Greek
97e55ff623 Modify rtps_writer
ACK HANDLING
------------
If there are no remote reliable reader endpoints the new Cache Changes
are immediately ACKed/removed from the HC.
Internal Global ACK SN is set to SEQUENCENUMBER_UNKNOWN, and
only initialized on first reliable remote reader endpoint.
If all remote reliable reader endpints are unmatched the internal Global
ACK SN is set to SEQUENCENUMBER_UNKNOWN and all Cache Changes are
ACKed/removed from the HC.
PUSH MODE
---------
Historical DATA is no longer send on remote endpoint match, if PUSH mode
is FALSE.
TESTBENCH
---------
Level 1 Test2 of rtps_writer was split into 2 tests.
2021-12-23 12:19:11 +01:00
Greek
20dff4a208 BUG FIX: Default Reliability is different for Readers and Writers 2021-12-15 16:49:32 +01:00
Greek
02f0fbfb98 Add PREFER_MULTICAST generic in rtps_buildin_endpoint
Until now the rtps_builtin_endpoint was using the last parsed Locator as
the Locator of choice.
The rtps_builtin_endpoint was extended with a PREFER_MULTICAST boolean
generic that allows to influence which locators are used.
Test1 of rtps_builtin_endpoint was split in two, to test both settings
of the generic.
2021-12-13 14:31:33 +01:00
Greek
48468d1131 BUG FIX: PID is affected by endianness 2021-12-11 12:20:52 +01:00
Greek
c88d4ccf07 Modify rtps_out to use Dual Port RAM 2021-12-09 19:44:40 +01:00
Greek
e0453657ba Add Test2 Level 2 testbench
A loopback is implemented between 2 seperate systems with one reader and
one writer each. Type1 Topic Type is used.
2021-12-09 19:44:39 +01:00
Greek
830d6c1409 Bug Fix and Redesign of TEMPLATE_key_holder
Until now it was assumed that a serialized key is the PLAIN_CDR2
Big Endian encoding of a <TYPENAME>KeyHolder Object [DDS_XTYPES v1.3, 7.6.8]
(I.e. the same blob that computes the MD5 key hash).
Taking other DDS implementations as reference (e.g. Cyclone DDS), it
seems they are using a normal Payload containing a KeyHolder(<TYPENAME>)
Object [DDS_XTYPES v1.3, 7.2.2.4.7] as the serialized key.
The Key Holder Template (together with the Type1 and Type2
implementations) were updated to reflect this change.
A bug fix were the Key Hash was not reset on a 'PUSH_SERIALIZED_KEY'
opcode was also fixed (together with the testbench).
2021-12-09 19:44:38 +01:00
Greek
9cc4907a2f Add complete Level2 System Test
Using seperately compiled Libraries we interconnect two systems, and
test their communication and interaction.
A bug in rtps_builtin_endpoint was fixed (were if only the SUB data was
to be sent, it was never actually sent).
2021-11-17 14:23:53 +01:00
Greek
308703f754 Add missing 'abort' port to key_holder 2021-11-17 13:56:23 +01:00
Greek
9ae15430f6 Add Type1 test type
Add IDL Definition, Reader/Writer Wrapper, Key Holder, and Testbenches
for a simple type.
2021-11-11 20:40:27 +01:00
Greek
27aa801e74 Add Level 1 Test 1 of TYPE2 key_holder
The writer_wrapper is used to push normal payloads, and the serialized
key is hardcoded and compared to the output.
2021-11-07 16:19:31 +01:00
Greek
eef62e17ce Add Level 1 Test 1 for Type2 Reader and Writer Wrapper
By connecting the output of the writer_wrapper to the input of the
reader_wrapper we can effectively test the encoding/decoding.
Since the writer_wrapper only uses Big Endian we cannot test Little
Endian handling.
2021-11-05 14:26:45 +01:00
Greek
609ed2d686 Code Refactor 2021-05-15 20:39:56 +02:00
Greek
90a4c7928a Backport Memory Controller to rtps_builtin_endpoint
Backport Memory Controller and Memory FSM from RTPS/DDS Endpoints to
RTPS Builtin Endpoint.
The Memory is now using a single linked list and the FSM uses Frame Field
Flags.
The main FSM uses check_time to initiate stale checks, and the stale
checks are done in the main FSM.
Testbench was modified to accomodate the changes (Previous L0 Test4 was
removed and integrated in L0 Test 1).
2021-05-11 13:23:55 +02:00
Greek
131ee48f2a Add test 6 of DDS Reader
Test the Lifespan Handling of the DDS Reader
2021-04-30 14:48:32 +02:00
Greek
4fc9029554 REMOVE_WRITER DDS Operation generates Samples
The REMOVE_WRITER DDS Operation of DDS Reader now generates Samples if
the Instance State changes.
Updated testbench.
Added checks for DATA_AVAILABLE communication status.
2021-04-30 13:03:13 +02:00
Greek
996c1fe962 Add test 5 of DDS Reader
Test Sample Rejected Status Handling.
Test GET_SAMPLE_REJECTED_STATUS DDS Operation.
Extend Sample Rejected Status Kind by REJECTED_BY_PAYLOAD_MEMORY_LIMIT
2021-04-26 20:47:00 +02:00
Greek
7a096de5c1 Add test 4 of DDS Reader
Test Deadline Handling of the DDS Reader.
Test the GET_REQUESTED_DEADLINE_MISSED_STATUS DDS Operation.
Add Documentation to some Testbenches.
2021-04-26 12:57:09 +02:00
Greek
0beafe13b3 Add test 3 of the DDS Reader
Test the DDS READ, TAKE, READ_NEXT_SAMPLE, TAKE_NEXT_SAMPLE,
READ_INSTANCE, TAKE_INSTANCE, READ_NEXT_INSTANCE, TAKE_NEXT_INSTANCE
Operations.
Backport fixes to previous testbenches.
Change handling of DISPOSE Samples of unknown Instances.
2021-04-25 16:12:22 +02:00
Greek
5a0eeef1e6 Add test 2 of DDS Reader
Test TIME_BASED_FILTER QoS Handling.
2021-04-18 16:17:24 +02:00
Greek
bac011905a Add Test 1 of DDS Reader
Test RTPS Operations ADD_CACHE_CHANGE, and REMOVE_WRITER of DDS Reader.
Port changes and code refoctoring in DDS Writer.
2021-04-11 16:39:17 +02:00
Greek
4a67a18df2 Add Test 5 of DDS Writer
Test Lifespan Handling of DDS Writer.
2021-03-29 17:55:11 +02:00
Greek
501f67a67f Add Test4 of DDS Writer
Test Liveliness handling of RTPS Writer.
Test GET_LIVELINESS_LOST_STATUS and ASSERT_LIVELINESS DDS Operations
2021-03-29 14:13:26 +02:00
Greek
7c2978e863 Add Test3 of DDS Writer
Test Deadline Handling of DDS Writer.
Test GET_OFFERED_DEADLINE_MISSED_STATUS DDS Operation.
2021-03-29 14:13:08 +02:00
Greek
069657ee3b Add Test2 of DDS Writer
Test for WAIT_FOR_ACKNOWLEDGEMENT DDS Operation
2021-03-28 19:59:05 +02:00
Greek
a6802cc538 Add Test1 of DDS Writer
Test RTPS GET_MIN_SN, GET_MAX_SN, GET_CACHE_CHANGE, REMOVE_CACHE_CHANGE,
ACK_CACHE_CHANGE, and NACK_CACHE_CHANGE Operations.
Test DDS Register, Unregister, Write, Dispose, and Lookup Instance
Operations.
2021-03-21 18:49:59 +01:00
Greek
3ba5fae871 Add Test4 of RTPS Writer
Test remote Reader Liveliness handling of RTPS Writer.
Backport fix to RTPS Reader.
Compiling and Passing
2021-03-03 18:40:36 +01:00
Greek
09e74e9ddb Add Test3 of RTPS Writer
Test RTPS Output (HEARTBEAT Message Generation & Manual By Topic
Liveliness Assertion) of the RTPS Writer.
Compiling and Passing
2021-03-03 12:24:23 +01:00
Greek
f96af25a6a Add Test2 of RTPS Writer
Test RTPS Output (DATA and GAP Message Generation) of the RTPS Writer.
Backport some small changes to Test1.
Compiling and Passing
2021-03-02 18:48:01 +01:00
Greek
c9f0d70979 Add Test1 of RTPS Writer
Test metatraffic behaviour of RTPS Writer.
Compiling and Passing.
2021-02-26 14:39:53 +01:00
Greek
597edb5f94 Add test 4 of RTPS Reader (Level 1)
Check the output handling (ACKNACK Response) of the RTPS Reader.
Compiling and Passing
2021-02-26 14:39:43 +01:00
Greek
260acba5b6 Add test 3 of RTPS Reader
Test Liveliness Handling of RTPS Reader.
Test 2 expanded with extra case for Little Endian Handling.
Compiling and Passing
2021-02-22 12:16:47 +01:00
Greek
0f7750bd5a Expanded test 1 and test 2 of RTPS Reader with different Generics
Tests are added for different Generics Settings (Durability,
Reliability, Keyed Topic).
Test 2 of RTPS Reader (User Tarffic Handling) is extended with a few
extra test cases.
2021-02-21 15:20:27 +01:00
Greek
4530688c8b Add test 2 of RTPS Reader
Test user traffic handling (DATA, HEARTBEAT, GAP).
Compiling and Passing
2021-02-21 00:02:22 +01:00
Greek
1dc1d89f98 Add Test1 of RTPS Reader
Test metatraffic behaviour of RTPS Reader.
Compiling and Passing.
2021-02-20 14:08:06 +01:00
Greek
52bd4053d1 Add mem_ctrl Level 0 Test 1
mem_ctrl fixed and testbench implemented
2021-02-17 14:01:49 +01:00
Greek
3566eb1282 * Added rtps_builting_endpoint_test7
- Compiling and Passing
2020-12-06 23:55:28 +01:00
Greek
b9dff6bd71 * General Testbench Update
- Change Testbench naming Convention (File and Internal)
	- Remove Component declarations and use direct instantiating
* Add more static generated SLVs in rtps_config_package
2020-12-06 19:32:40 +01:00
Greek
0f50e66942 * Add FWFT FIFO
* Added rtps_builtin_endpoint_test7 Level 1 testbench
	- Compiling and Passing
* Various Bug Fixes in rtps_builtin_endpoint
2020-12-06 17:26:15 +01:00
Greek
035ff837b0 * Add rtps_builtin_endpoint_test6
- Compiling and Passing
* Bug Fix in rtps_builtin_endpoint to make testbench pass
2020-12-03 12:56:37 +01:00
Greek
e18c6e15ce * Bug fix input_prc of testbenches
- packet_sent signal of by one cycle
* Bug fix in rtps_handler
	- Exit condition of Gap Parsing
2020-12-02 17:02:13 +01:00
Greek
f8debfb086 * Add rtps_out Entity
- Use round robin to select output from endpoints and generate the expected uniform RTPS system output
* Add rtps_out_test1
	- Compiling and Passing
2020-12-02 14:21:27 +01:00
Greek
fec81c0b43 * Re-design rtps_builtin_endpoint
- Remove endpoint data from memory. Store only participant data
	- Write PARTICIPANT_UNMATCH_FRAME to all endpoints on remote participant removal
	- Write ENDPOINT_MATCH and ENDPOINT_UNMATCH frames for all remote endpoints
* Update testbenches to accomodate re-design
* Streamline scorboard reference pushing and testbench completion detection
2020-11-29 23:34:28 +01:00
Greek
1812eaa41a * Added rtps_builtin_test4
- Memory Handling
	- Compiling and Passing
2020-11-29 10:28:30 +01:00
Greek
472af656b3 * Added rtps_builtin_endpoint_test3
- Compiling and Passing
2020-11-28 10:12:35 +01:00
Greek
32fd1ac31e * Add modelsim.ini File in gitignore
* Small change in rtps_builtin_endpoint_test1
	- Empty Signal was not toggling
* Added rtps_builtin_endpoint_test2
	- Compiling and Passing
* Update rtps_test_package
* Various bug Fixes in rtps_builtin_endpoint
2020-11-26 18:04:59 +01:00
Greek
521e2466f5 * Add new DEFAULT values in packages
* Add test RAM (Used for testbenches)
* Add Data Structures and functions to check memory contents
* Add rtps_builtin_endpoint_test1
	- Compiles and Passes
* Various bug fixes in rtps_builtin_endpoint to Pass testbench
2020-11-23 12:20:05 +01:00