CN107526643A - The method and system that a kind of message delay is sent - Google Patents
The method and system that a kind of message delay is sent Download PDFInfo
- Publication number
- CN107526643A CN107526643A CN201710596584.7A CN201710596584A CN107526643A CN 107526643 A CN107526643 A CN 107526643A CN 201710596584 A CN201710596584 A CN 201710596584A CN 107526643 A CN107526643 A CN 107526643A
- Authority
- CN
- China
- Prior art keywords
- new information
- message
- sent
- module
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/221—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention relates to the method and system that a kind of message delay is sent, it is characterised in that comprises the following steps:Message is received, and the every message load time information received is formed into new information;New information is kept in push-up storage;The new information is read from push-up storage, the temporal information is taken out from the new information, and obtain the current count time;Wherein, the current count time is that counter is counted with Fixed Time Interval, and the count value corresponding when reading the new information;If the current count time is more than or equal to temporal information, the new information is sent.Realized and be delayed by load time banner message, the message that fifo storages are not sent, counting module is set, for being counted to clock clk;So that integrated circuit high-speed bus communications Protocol Design and the resource utilization of checking improve.
Description
Technical field
The invention belongs to hardware circuit design and verification technique field, and in particular to a kind of method that message delay is sent and
System.
Background technology
In integrated circuit high-speed bus communications Protocol Design and checking, receive a piece of news and be in no hurry to sometimes afterwards
Message is sent immediately but to wait for a period of time and retransmit away, can be with if the clock periodicity of midfeather is shorter
A few bat clock cycle deposit by loading register and then are sent, the method so done is easy.But when needs prolong
When multiple clock cycle when, this waste of resource that just seemed by way of loading register.This be the deficiencies in the prior art it
Place.
The content of the invention
It is an object of the present invention to sent in view of the above-mentioned drawbacks of the prior art, providing and designing a kind of message delay
Method and system, to solve above-mentioned technical problem.
In order to achieve the above object, the technical scheme is that:
A kind of method that message delay is sent, comprises the following steps:
Message is received, and the every message load time information received is formed into new information;
New information is kept in push-up storage;
The new information is read from push-up storage, the temporal information is taken out from the new information, and obtain
The current count time;Wherein, the current count time is that counter is counted with Fixed Time Interval, and described in reading
Corresponding count value during new information;If the current count time is more than or equal to temporal information, the new information is sent.
Preferably, temporal information is the count value of reception message hour counter and the time span sum of delay.
Preferably, counter adds 1 in rising edge clock or trailing edge, and the time is counted.
Preferably, push-up storage width is identical with new information width.
Preferably, this method also includes reading the new information from push-up storage, is taken from the new information
Go out the temporal information, and obtain the current count time;Wherein, if the current count time is less than temporal information, will read
The new information be newly stored into push-up storage, continue to read next from push-up storage.
The system that a kind of message delay is sent, including counter module, receiving module, memory module, processing module and hair
Send module;Counting module is connected to count system time with its exterior clock source;Receiving module disappears for reception
Cease and the message load time information of reception is formed into new information;Memory module is connected with receiving module, is received for storing
New information;Processing module is connected with memory module, sending module and counting module respectively, for handling new information;
Sending module is used to send message.
Preferably, the system also includes duration setup module, for setting the time span of message delay.
Preferably, described temporal information for receive message when counting module count value with delay time span it
With.
Preferably, memory module includes push-up storage, and push-up storage is used to store new information.
Preferably, processing module includes reading processing unit and comparator;Reading processing unit is used to read first in first out
New information in memory simultaneously takes out the temporal information of new information;Comparator is used for current count value and the reading for comparing counting module
The size of the temporal information of the new information of unit reading is taken, is judged, if the current count time is more than or equal to the described time and believed
During breath, message is sent.
The beneficial effects of the present invention are, realized and be delayed by load time banner message, fifo (file in file
Out push-up storages) message not sent is stored, counting module is set, for being counted to clock clk;Added by comparing
The temporal information being downloaded on origination message carries out the forwarding of former message with current time information or is newly stored into wait, sets one
Comparator, carry out the numeric ratio of temporal information compared with;So that integrated circuit high-speed bus communications Protocol Design and the resource of checking profit
Improved with rate.
In addition, design principle of the present invention is reliable, and it is simple in construction, there is very extensive application prospect.
As can be seen here, the present invention compared with prior art, has prominent substantive distinguishing features and significantly improved, it is implemented
Beneficial effect be also obvious.
Brief description of the drawings
Fig. 1 is that the present invention implements the method flow diagram that a kind of message delay of 1 offer is sent.
Fig. 2 is that the system that a kind of message delay provided by the invention is sent connects block diagram.
Wherein, 1- counting modules, 2- receiving modules, 3- memory modules, 4- processing modules, 5- sending modules, 6- durations are set
Put module, 3.1- push-up storages, 4.1- reading processing units, 4.2- comparators.
Embodiment
Below in conjunction with the accompanying drawings and the present invention will be described in detail by specific embodiment, and following examples are to the present invention
Explanation, and the invention is not limited in implementation below.
As shown in figure 1, the present embodiment provide a kind of message delay send method, including message loading deposit process and
The reading process of new information:
Message loading deposit process comprises the following steps:
Step 11:Counter reg1 is set, adds 1 in rising edge clock, the time is counted;
Step 12:Receive message m sg, added before message m sg temporal information reg2 composition new information reg3, reg3=reg2,
msg};The time span sum that described temporal information is delayed for the count value of reception message m sg hour counters with message m sg;
Step 13:New information reg3 is kept in push-up storage fifo;
Message reading process includes:
Step 21:New information is read from fifo, temporal information reg2 to be sent is taken out from the new information, when more current
Between reg1 and reg2 size, if current time reg1 is more than or equal to reg2, send msg message;Otherwise step 5 is performed;
Step 22:The new information of reading is newly stored into fifo, reads next, performs step 21.
Push-up storage fifo width is identical with new information reg3 width.
Another embodiment for a kind of method that message delay is sent, comprises the following steps:
Step 1:Counter reg1 is set, adds 1 in clock falling edge, the time is counted;
Step 2:Receive message m sg, added after message m sg temporal information reg2 composition new information reg3, reg3=reg2,
msg};The time span sum that described temporal information is delayed for the count value of reception message m sg hour counters with message m sg;
Step 3:New information reg3 is kept in push-up storage fifo;
Step 4:New information is read from fifo, temporal information reg2 to be sent is taken out from the new information, when more current
Between reg1 and reg2 size, if current time reg1 is more than or equal to reg2, send msg message, otherwise by the institute of reading
State new information to be newly stored into fifo, next is read from fifo.
Push-up storage fifo width is identical with new information reg3 width.
The system that a kind of message delay is sent, including counter module 1, receiving module 2, memory module 3, processing module 4
With sending module 5;The system also includes duration setup module 6, for setting the time span of message delay.
Counting module 1 is connected with the clock source of its exterior, for being counted to system time;
Receiving module 2 is used to receive message and the message load time information of reception is formed into new information, described temporal information
The count value of counting module and the time span sum of delay during to receive message;
Memory module 3 is connected with receiving module 2, and for storing the new information received, memory module 3 stores including first in first out
Device 3.1, push-up storage 3.1 are used to store new information.
Processing module 4 is connected with memory module 3, sending module 5 and counting module 1 respectively, to new information
Reason;Processing module 4 includes reading processing unit 4.1 and comparator 4.2;Reading processing unit 4.1 is deposited for reading first in first out
New information in reservoir 3.1 simultaneously takes out the temporal information of new information, and comparator 4.2 is used for the current count for comparing counting module 1
The size of the temporal information for the new information that value is read with reading unit, judge, if the current count time believes more than or equal to the time
During breath, sending module 5 sends message.
Disclosed above is only the preferred embodiment of the present invention, but the present invention is not limited to this, any this area
What technical staff can think does not have creative change, and some improvement made without departing from the principles of the present invention and
Retouching, should all be within the scope of the present invention.
Claims (10)
1. a kind of method that message delay is sent, it is characterised in that comprise the following steps:
Message is received, and the every message load time information received is formed into new information;
New information is kept in push-up storage;
The new information is read from push-up storage, the temporal information is taken out from the new information, and obtain
The current count time;Wherein, the current count time is that counter is counted with Fixed Time Interval, and described in reading
Corresponding count value during new information;
If the current count time is more than or equal to temporal information, the new information is sent.
2. the method that a kind of message delay according to claim 1 is sent, it is characterised in that temporal information is reception message
The count value of hour counter and the time span sum of delay.
3. the method that a kind of message delay according to claim 2 is sent, it is characterised in that counter, rise in clock
Add 1 when edge or trailing edge, the time is counted.
4. the method that a kind of message delay according to claim 3 is sent, it is characterised in that push-up storage width
It is identical with new information width.
5. the method that a kind of message delay according to claim 4 is sent, it is characterised in that if this method is also included currently
When gate time is less than temporal information, the new information of reading is newly stored into push-up storage.
6. the system that a kind of message delay is sent, it is characterised in that including counter module, receiving module, memory module, processing
Module and sending module;
Counting module is used to count system time;
Receiving module is used to receive message and the message load time information of reception is formed into new information;
Memory module is connected with receiving module, for storing the new information received;
Processing module connects respectively at counting module, memory module with sending module, for handling new information.
7. the system that a kind of message delay according to claim 6 is sent, it is characterised in that the system is also set including duration
Module is put, for setting the time span of message delay.
8. the system that a kind of message delay according to claim 7 is sent, it is characterised in that described temporal information is to connect
The count value of counting module and the time span sum of delay when receiving message.
9. the system that a kind of message delay according to claim 8 is sent, it is characterised in that memory module includes advanced elder generation
Go out memory, push-up storage is used to store new information.
10. the system that a kind of message delay according to claim 9 is sent, it is characterised in that processing module includes reading
Processing unit and comparator;
Reading processing unit is used to read the new information in push-up storage and takes out the temporal information of new information, comparator
The size of the temporal information for the new information that current count value for comparing counting module is read with reading processing unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710596584.7A CN107526643A (en) | 2017-07-20 | 2017-07-20 | The method and system that a kind of message delay is sent |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710596584.7A CN107526643A (en) | 2017-07-20 | 2017-07-20 | The method and system that a kind of message delay is sent |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107526643A true CN107526643A (en) | 2017-12-29 |
Family
ID=60748336
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710596584.7A Pending CN107526643A (en) | 2017-07-20 | 2017-07-20 | The method and system that a kind of message delay is sent |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107526643A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109726024A (en) * | 2018-12-28 | 2019-05-07 | 北京爱奇艺科技有限公司 | A kind of message delay delivering method, device and equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB9711101D0 (en) * | 1996-07-15 | 1997-07-23 | Plessey Telecomm | Communication links for transmission of data in fixed size packets |
US6466222B1 (en) * | 1999-10-08 | 2002-10-15 | Silicon Integrated Systems Corp. | Apparatus and method for computing graphics attributes in a graphics display system |
CN1719353A (en) * | 2005-06-21 | 2006-01-11 | 中国科学技术大学 | Time digital converter based on RPGA and its conversion method |
CN101079313A (en) * | 2006-05-25 | 2007-11-28 | 李�浩 | First in first out memory without read delay |
CN101212417A (en) * | 2007-12-25 | 2008-07-02 | 中国科学院软件研究所 | Time granularity based internet QoS assurance method |
CN101814984A (en) * | 2010-04-09 | 2010-08-25 | 华为技术有限公司 | Method and device for acquiring asymmetric delay time |
CN102377801A (en) * | 2010-08-19 | 2012-03-14 | 中国科学院计算技术研究所 | Sensor network for environmental monitoring and data transmission method |
-
2017
- 2017-07-20 CN CN201710596584.7A patent/CN107526643A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB9711101D0 (en) * | 1996-07-15 | 1997-07-23 | Plessey Telecomm | Communication links for transmission of data in fixed size packets |
US6466222B1 (en) * | 1999-10-08 | 2002-10-15 | Silicon Integrated Systems Corp. | Apparatus and method for computing graphics attributes in a graphics display system |
CN1719353A (en) * | 2005-06-21 | 2006-01-11 | 中国科学技术大学 | Time digital converter based on RPGA and its conversion method |
CN101079313A (en) * | 2006-05-25 | 2007-11-28 | 李�浩 | First in first out memory without read delay |
CN101212417A (en) * | 2007-12-25 | 2008-07-02 | 中国科学院软件研究所 | Time granularity based internet QoS assurance method |
CN101814984A (en) * | 2010-04-09 | 2010-08-25 | 华为技术有限公司 | Method and device for acquiring asymmetric delay time |
CN102377801A (en) * | 2010-08-19 | 2012-03-14 | 中国科学院计算技术研究所 | Sensor network for environmental monitoring and data transmission method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109726024A (en) * | 2018-12-28 | 2019-05-07 | 北京爱奇艺科技有限公司 | A kind of message delay delivering method, device and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101771627B (en) | Equipment and method for analyzing and controlling node real-time deep packet on internet | |
CN107948988A (en) | A kind of resource control method and relevant device | |
WO2016011811A1 (en) | Memory management method and apparatus, and storage medium | |
CN105024942B (en) | A kind of dynamic flow monitoring method | |
CN103945456A (en) | LTE (long term evolution) base station user plane efficient UDP (user datagram protocol) data transmission optimization method based on Linux system | |
CN102970244A (en) | Network message processing method of multi-CPU (Central Processing Unit) inter-core load balance | |
CN103577378B (en) | A kind of full duplex asynchronous serial communication method | |
CN103944880B (en) | A kind of method of ZigBee data transfers | |
CN105573711A (en) | Data caching methods and apparatuses | |
CN103582095A (en) | Wireless sensor network medium access scheduling method based on event trigger application | |
CN107318156A (en) | Data repeating method and device in wireless sensor network | |
CN104572498A (en) | Cache management method for message and device | |
CN107526643A (en) | The method and system that a kind of message delay is sent | |
CN105681864A (en) | IP-based transmission flow jitter removing method and device | |
CN101826145B (en) | Device and method for realizing label counting in radio frequency recognition system | |
CN105530196B (en) | A kind of dispatching method of the AFDX terminal systems based on fictitious link | |
CN102404225B (en) | Method for rapid enqueue of packet for differential queue service system | |
CN107483308A (en) | A kind of ethernet communication method based on timeslice token mechanism | |
CN103888372A (en) | Traffic shaping method and data processing equipment | |
CN102377576B (en) | Multicast realization method | |
CN101616365A (en) | A kind of short message retry system and method based on parallel queue | |
CN212727292U (en) | Quasi-real-time data acquisition system adaptive to competitive power market | |
JP7052865B2 (en) | Servers, communication systems, communication methods and programs | |
CN103490995A (en) | Message sending method and message sending device | |
US20210250995A1 (en) | Performance-guaranteed channel access control for security alarm and image sensors |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171229 |