Commit Graph

143 Commits

Author SHA1 Message Date
Greek
9f8887e8c5 Testbench wide input_prc fix 2021-02-20 14:08:19 +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
fa28997ec6 Fix Syntax in rtps_reader 2021-02-17 17:56:00 +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
7244fffacd Memory Size of rtps_builtin_endpoint made Generic
Each Entity that contains a memory will have an independent size
generic. The testbench was modified to accomodate different RAM memory
sizes. This in effect makes all Memory related stuff pre-entity
dependant. The rtps_test_package needs updated Frame Sizes for the Tests
to work properly.
2021-02-17 10:51:57 +01:00
Greek
bfdc366273 Modify Endpoint Match Frame, Fix Test Suite
The reader falgs (Expects In-line QoS, Expects Historical Data, Is Best
Effort) of the remote reader is transfered in the Metatraffic Endpoint
Match Frame.
The Level 1 rtps_builtin_endpoint test was also fixed.
2021-02-15 13:50:48 +01:00
Greek
a3a51e2f52 Various Fixes in RTPS Reader/Writer
Amongst other changes the RTPS Reader now supportes VOLATILE Durability
(Will only request most recent change from new matched Writers)
2021-02-14 19:58:09 +01:00
Greek
348d036659 Blind Implementation of DDS Writer
A Serialized Key Generator Entity Hull (responsible for generating the
serialized Key) was also added.
2021-02-13 20:09:35 +01:00
Greek
2aedc0229d Various fixes in RTPS Reader/Writer and DDS Reader
Amongst other fixes the interface between RTPS-HC/DDS was changed.
The Liveliness Update metatraffic operation was also made QOS dependant
and put behind synthesis guards.
Instance Removal trigger was modified. While before at least 1 instance
slot needed to be empty at all times (similar to the sample slot), thsi
was changed to only remove instances on demand. This is controlled via
a signal that holds the current number of stale (removalble) instances.
2021-02-13 20:08:17 +01:00
Greek
80cffb8197 Fix unaligned payload handling in DDS Reader
Since the payload can only be padded until the next 4-byte aligned
address, we needed a way to read out only the actual payload in case the
payload was not aligned in the last payload slot (did not go until the
end of the payload slot). This is now handled by an additional bit flag
in the Sample Status Info which denotes if the payload is aligned. In
the case the payload is unaligned, the last address of the last payload
slot contains the offset of the actual payload end.
This commit also adds MEMORY RESET states for the Sample, payload, and
instance Memory.
2021-02-08 12:31:36 +01:00
Greek
e8670aaf59 Blind implementation of RTPS Writer 2021-02-07 18:02:55 +01:00
Greek
f0cc1e5432 Various fixes in RTPS Reader
Ignore unknown Metatraffic Operations.
Drop payload if not necessary (i.e. do not push payload if payload
contains serialized Key, but Key Hash is already provided).
Added Memory Reset State.
Misc fixes
2021-02-07 18:02:28 +01:00
Greek
6488918ede Fix Port Name Convention and RTPS/DDS Handshacking 2021-02-03 20:22:43 +01:00
Greek
dc8746c463 Support WITH_KEY=FALSE Topics in DDS and RTPS Reader
In the event of Keyless Topics less resources are used with the
help of "synthesis guards".
2021-02-03 18:28:37 +01:00
Greek
d3fb1cc176 Support MANUAL_BY_TOPIC Liveliness and various fixes in RTPS Reader 2021-02-02 23:51:10 +01:00
Greek
5b8206d539 Modify Lifespan Checktime
Make the time, at which the Lifespan of samples is checked dependant on
the actual Lifespans. This should prevent unnecessary memory bandwidth
waste.
2021-02-02 23:07:34 +01:00
Greek
bcaace1b8c Add documentation to DDS Reader 2021-02-02 18:56:38 +01:00
Greek
d1d95c4ec7 Redo Memory Interface of DDS Endpoint
Propagation of RTPS changes
2021-02-02 00:04:35 +01:00
Greek
d4795c1838 Add documentation to RTPS Reader, Best Efoort RELIABILITY uses less memory
RELIABILITY_QOS is checked, allowing BEST EFFORT to use less
memory.
2021-02-02 00:04:35 +01:00
Greek
d54bf55b46 Redo Memory Interface of RTPS Endpoint
The Memory Control Process is made more generic (with less specialised
code), to allow the main process more control. I.e. all Memory Frame
Fields are individually addressable (during GET and UPDATE).
The RAM instance is hidden behind a Memory Controller with Flow Control
Signals, allowing easy future integration to different Memory Interfaces
(e.g. AXI Lite).
2021-02-02 00:04:34 +01:00
Greek
63b8858af9 Implemented LIFESPAN_QOS
Samples are periodically checked if their Lifespans have expired and are
removed if so.
2021-02-02 00:04:30 +01:00
Greek
abdd14eb51 Implemented DEADLINE_QOS and REQUESTED_DEADLINE_MISSED_STATUS in DDS Reader 2021-01-27 13:42:08 +01:00
Greek
4914dbe5ea Added DATA_AVAILABLE_STATUS, and SAMPLE_REJECTED_STATUS in DDS Reader 2021-01-27 12:01:38 +01:00
Greek
607273e1c4 Add code to handle unaligned Payloads
If the payload is not directly aligned with the Payload slots, it has
to be ensured that the rest of the payload slot is zeroed.
If we ran out of payload slots during the write process (Which can
happen since we don't know the size of the payload beforehand), we have
to abort the Key Hash Generation before parsing the next sample.
2021-01-26 23:37:24 +01:00
Greek
8433006fb8 Fix on-demand Instance/Sample removal code 2021-01-26 20:45:59 +01:00
Greek
728a6964d3 Fix DESTINATION_ORDER_QOS in dds_endpoint
The rtps_endpoint only sends the source timestamp (TIME_INVALID if no
source timestamp provided). If ordering BY_RECEPTION, the sample is added
to the list tail. If ordering BY_SOURCE the samples are ordered
according to the source timestamp, but droped if the source timestamp is
earlier than a sample that has been read by the user or INVALID (Ensures
determenistic behavior).
2021-01-26 19:07:38 +01:00
Greek
164bd508c1 Blind implementation of READ/TAKE DDS READER operations
Finalized DDS Reader interface. Implemented read/take,
read_next_sample/take_next_sample, read_instance/take_instance,
read_next_instance/take_next_instance operations.
Instance Get operations were made generic to allow returning 2 variants
of instance data.
2021-01-25 20:04:55 +01:00
Greek
c3b656c654 Insert Instances in KEY_HASH numerical order
in order to support the read_next_instance/take_next_instance
operations, the instances have to have a a logical order. Whie the
previous implementation did have a logical order for inserted instances
(Since they are added in a linked list), we need to support relative
ordering also for non-inserted instances (acording to DDS Spec), so we
just order them in ascending order.
2021-01-22 13:24:37 +01:00
Greek
f152abc373 Remove GENERATION_COUNTERS Option
Generation Counters are always needed (e.g. for the calculation of the
view_state, since they are dependent on the reading of samples of the
last generation). As such, the Generation Counters were "converted" to
mandatory fields.
2021-01-22 12:01:16 +01:00
Greek
bdb397ae7d Major History Cache/DDS Endpoint Redesign
It was decided to connect the DDS Endpoint directly to the RTPS
Endpoint. The history_cache Entity will be converted to a generic
History Cache acording to the RTPS Specification.
Because of consistency requirements the implementation was changed to a
single process/single port RAM design.
This should fully (blindly) implement the RTPS Reader side of the DDS
Entity.
2021-01-21 12:51:39 +01:00
Greek
f2826ddd20 Change Sample Memory Format
The Sample Memory was changed to contain only the Instance Memory
Address instead of the whole Key Hash. This simplifies the B process and
reduces memory footprint.
The instance memory process was also updated to handle the conditional
fields defined in the previous commit.
2021-01-17 21:01:15 +01:00
Greek
7e84a15d54 Redo Blind Implementation of READER side (RTPS Endpoint & History Cache)
Redefined Sample Memory Format. The design decision was made to handle
most (if not all) of the DDS QOS inside the History Cache, which allows
storing needed information in a more efiicient way.
A (dual port) Instance Memory was added into the HC, to support the QOS
operations.
This commit only implements the A side processes for the READER case.
RESOURCE_LIMITS_QOS, TIME_BASED_FILTER_QOS, and HISTORY_QOS are handled.
The inter-entity communication was changed to allow the HC to mark
parsed changes as rejected, and allow future re-transmission (in the
case of Reliable communication).
2021-01-17 10:49:38 +01:00
Greek
d2f466d588 revert 06ed44c code refactor
Revert changes made in commit 06ed44c to the memory FSMs.
NOTE: This commit only reverts the changes in rtps_builtin_endpoint. The rest of the reverted changes are merged with following commits.
2021-01-16 18:14:40 +01:00
Greek
9ff39c6fea Remove HIGHEST_AVAILABLE_SN from local endpoint buffer 2021-01-11 18:45:37 +01:00
Greek
0574f9e69d Blind implementation of RTPS READER history Cache
Initial imeplementation of the RTPS Reader side of the history cache.
A key_hash_generator entity that will house the future MD5 hash
calculation was also added, along with the entity definition of
key_generator, which has to be implemented per-topic-type.
2021-01-11 12:21:36 +01:00
Greek
d0709db3a2 Blind implementation of READER rtps_endpoint 2021-01-11 12:18:59 +01:00
Greek
349db19edd Add True Dual Port RAM Implementation 2021-01-11 12:16:37 +01:00
Greek
dcd0b51c83 Code refactoring 2021-01-11 12:16:17 +01:00
Greek
35743b6f19 Add and update doc
Added documentation for MD5 HASH Cacluclation
Updated TODO and REF with new design decisions
2021-01-11 12:06:18 +01:00
Greek
a00f942826 change rtps_handler output format
While previously we sent the EntityID before the GUID Prefix (for some
reason), we changed swaped the order to allow easier decoding (by having
uniform format for all inputs)
2020-12-18 16:19:57 +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
929fbe5c80 * Update rtps_builtin_endpoint_test7
- Add participant Announcement check
* bug Fix in rtps_config_package
	- Fix Participant Announcement Generation
2020-12-06 18:25:19 +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
0ae131189b * partly revert commit ec4d44c
- Re-add max_participant_addr to prevent iterating through the whole memory area unnecessarily
	- Pointer points to last occuoied participant frame
2020-12-02 20:06:04 +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
c1bb9a7bd2 * Re-design rtps_handler
- Input format is now a decoded UDP Packet (Documented in REF.txt)
	  This allows the whole RTPS system to use universal input and output.
2020-11-30 15:48:47 +01:00
Greek
533b50f0f9 * Added rtps_builtin_endpoint_test5 (Sequence Number Handling)
- Compiling and Passing
2020-11-30 12:52:49 +01:00