Commit Graph

219 Commits

Author SHA1 Message Date
Greek
965e7fbb4a TIMING CLOSURE: Further Sub-Split FIND_NEXT_INSTANCE in dds_reader
The FIND_NEXT_INSTANCE stage of the dds_reader was doing a 128-bit
comparison (Key Hash) in 1 clock cycle.
The comparison was split among 4 clock cycles.
2021-12-09 23:32:18 +01:00
Greek
4841d0a6bb Add synthesis Test6 2021-12-09 23:32:18 +01:00
Greek
1fdf2198ba TIMING CLOSURE: Further Sub-Split PARTICIPANT_STALE_CHECK in rtps_builtin_endpoint
The PARTICIPANT_STALE_CHECK stage of the rtps_builtin_endpoint was doing
4 consecutive 64-bit comparisons in the same clock cycle.
The stage was further sub-split to make one 64-bit comparison per clock cycle.
2021-12-09 23:32:18 +01:00
Greek
f13d28d811 Add/Modify synthesis entities to synthesize test_loopback 2021-12-09 23:32:08 +01:00
Greek
4896929e1b code refactoring 2021-12-09 19:44:40 +01:00
Greek
3e387b9513 Bug Fix in TYPENAME_writer_wrapper
Default output was missing, inferring latch in synthesis
2021-12-09 19:44:40 +01:00
Greek
c88d4ccf07 Modify rtps_out to use Dual Port RAM 2021-12-09 19:44:40 +01:00
Greek
622ebf6083 Add Dual Port Memory Controller 2021-12-09 19:44:40 +01:00
Greek
46ca2228b6 Add and Redefine existing Dual Port RAM Implementations
Simple Dual Port (Read and Write Port), and True Dual Port RAM
implementations, together with their respective Altera implementations
were added.
The 'arch' Architectures should have the same behaviour as the Altera
Implementations (single_port_ram was modified to achieve that)
2021-12-09 19:44:40 +01:00
Greek
1871adac6d Add a Verbatim Key Hash Generator
Add a Key Hash Generator that just generates a Key Hash with the
verbatim contents of the Type Key Fields.
This is the case for all Types with a combined Key Field size less than
16 Bytes.
2021-12-09 19:44:39 +01:00
Greek
6662935514 Add dds_top TEMPLATE 2021-12-09 19:44:39 +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
70549853d5 code refactoring 2021-12-09 19:44:39 +01:00
Greek
4420a62d63 Fix Bug in Key Holder
The Key Holder was sending only the 1st Byte of 4-Byte Key Fields.
2021-12-09 19:44:39 +01:00
Greek
ddc331d9ba Redesign Interface and Instance Handle Responses of dds_writer
The REGISTER_INSTANCE and LOOKUP_INSTANCE DDS Writer Operations return
an Instance Handle. Until now this instance Handle was returned via the
Data output interface of the dds_writer (ready_out, valid_out,
data_out_last_word_out).
This was changed, so that the dds_writer directly outputs the Instance
Handle via a dedicated port while asserting the done Signal.
This has the result that the <TYPENAME>_writer_wrapper no longer
"exports" data out signals from the dds_writer.
All relevant instantiations and testcases are changed accordingly
2021-12-09 19:44:38 +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
5d9acb6f41 Add directive to allow QSYS Compilation
QSYS does not allow to change the VHDL version of processed files.
All respective files have to have a comment directive forcing the VHDL version.
2021-12-09 19:44:38 +01:00
Greek
746b273cff Fix Avalon_MM_wrapper Byte Ordering
According to Avalon MM Interface Specification, the Bus is in Little
Endian.
2021-12-09 19:44:38 +01:00
Greek
0ede0537b7 Add test entities to test PL-PS communication 2021-12-09 19:44:37 +01:00
Greek
4b194f09c9 Add Avalon MemoryMapped Interface Wrapper
Add Entity that connects an input and output FWFT_FIFO to a Avalon MM
Interface.
NOTE: The Implementation has no sync process. It relies on all FIFO
Signals being synchronous. (May affect timing closure)
2021-12-09 19:44:37 +01:00
Greek
6e20b8958d Add VHDL configuration for single_port_ram and FWFT_FIFO
Allow single_port_ram and FWFT_FIFO to have Altera specific
architectures.
2021-12-09 19:43:56 +01:00
Greek
b47d409f13 Make codebase Quartus synthesizable
Remove non-Quartus-supported VHDL 2008 features.
Remove inferred Latches.
Add test Entities to see resulting hw synthesis of various code
segments.
2021-12-07 13:05:24 +01:00
Greek
cffaafb284 Code refactoring 2021-11-20 16:01:57 +01:00
Greek
63465e8e30 Remove default signal initialization from entire codebase 2021-11-19 18:50:18 +01:00
Greek
385257e271 Fix WITH_KEY branching in DDS Entities 2021-11-19 18:24:32 +01:00
Greek
4830645a5a Move key_holder inside the DDS Entities 2021-11-19 12:00:07 +01:00
Greek
e87d84ba24 Modify ports of rtps_builtin_endpoint according to port naming convention
The ports to rtps_out from the rtps_reader and rtps_writer entities were
also modified to apply a uniform naming.
2021-11-18 16:44:42 +01:00
Greek
399bd2bbda Modify ports of rtps_handler according to port naming convention 2021-11-18 12:20:20 +01:00
Greek
8f9f445f21 Add documentation 2021-11-17 14:27:30 +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
af1de8bab8 Make Templates for reader/writer wrapper and key_holder
Templates with the pre-defined code hull for the reader_wrapper,
writer_wrapper, and key_holder were created.
A "cookbook" of how to expand this TEMPLATES to create type specific IDL
conversions was also added.
The "code generation" is kept general to allow a code generator to
automatically produce this wrappers in the future.
2021-11-11 20:19:26 +01:00
Greek
d907a85c07 Add Level 1 Test 2 of TYPE2 wrapper and key_holder
The writer_wrapper was modified to allow changing the used endian via
generic. This allows to test Little Endian handling in simulations.
The Test2 are basically Test1 with Little Endian
2021-11-07 16:21:20 +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
57128bcea3 Add KEY_HOLDER implementation for TYPE2 2021-11-05 17:45:16 +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
2b3e3ae23b Implement TYPE2_WRITER_WRAPPER 2021-11-04 14:16:53 +01:00
Greek
5a22d51974 Define Type2 IDL and implement TYPE2_READER_WRAPPER
A test type is defined in IDL, and then manually implemented in the
Reader Wrapper.
2021-11-04 14:16:32 +01:00
Greek
ee67fe9493 Minor declaration & documentation fixes 2021-11-03 20:07:14 +01:00
Greek
e33d982182 Add 'si_ack' to DDS Reader
Previously the simaple info data was valid for exectly 1 clock cycle,
in which the user had to pull the 'get_data' signal if he wanted the
associated payload.
This change allows the user to control how long the sample info data is
shown.
2021-11-03 18:33:35 +01:00
Greek
609ed2d686 Code Refactor 2021-05-15 20:39:56 +02:00
Greek
4392aa8288 Parse PID_STATUS_INFO in RTPS Builtin Endpoint
The inline-QoS of PDP Packets is parsed, and Participants/Endpoints can
be unmatched by Unregister/Dispose Status Info Updates.
Test 1,2,3 was extended to test this functionality.
NOTE: PID_KEY_HASH is a requirement (at least for unmatching Endpoints),
as serialized key payloads are unsupported.
2021-05-14 12:08:21 +02:00
Greek
8cd1c29518 Backport GAP parsing logic to RTPS Builtin Endpoint
The GAP parsing logic was backported from RTPS Reader, so that the RTPS
Builtin Endpoint can parse all kind of GAP without making assumptions.
The Test 4 of the RTPS Builtin Endpoint was extended to test HAERTBEAT and GAP Handling of the RTPS
Builting endpoint, and Test 2 of the RTPS Reader was extended with an
additional Test (GAP with next expected SN not marked in bitmap)
2021-05-13 13:31:00 +02:00
Greek
293d89f083 NACK SN in ACKNACk Response of RTPS Builtin Endpoint
Until now the ACKNACK Response of the RTPS Builtin Endpoint had an empty
Bitmap, effectively ACKing SNs, but never NACKing any (i.e. not
requesting any).
Similar to the RTPS Endpoints we request the next 32 SNs on every
ACKNACK Response.
The ParticipantMessageData SN Handling was also implemented.
2021-05-12 12:09:29 +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
7f7b7a6164 Add Documentation to rtps_test_package 2021-05-06 15:59:07 +02:00
Greek
e067952e49 Add test 7 of DDS Reader
Test the bitmap writer conversion to/from memory.
2021-04-30 16:33:06 +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