Broadcast interface for sending broadcast codes

By designing the prescaler module, broadcast code interval module, register and control module of the broadcast interface, automatic transmission and flexible configuration of broadcast codes are realized, which solves the usage restrictions and operational complexity problems of broadcast code transmission in the existing technology, and is applicable Synchronization needs for SpaceWire network.

CN118631373APending Publication Date: 2024-09-10BEIJING MICROELECTRONICS TECH INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410540525.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing SpaceWire devices have limitations in broadcast code transmission, cannot implement automatic transmission functions, and are complex to operate.

Method used

A broadcast interface including a prescaler module, a broadcast code interval module, a broadcast code register and a broadcast code control module is designed to realize the automatic transmission and flexible configuration of broadcast codes, support manual mode and automatic mode, and pass 64 interval durations. Multiplexing of registers and registers simplifies operations.

Benefits of technology

It realizes the automatic sending function of broadcast codes, solves the problem of usage restrictions, saves internal resources, is simple to operate, is suitable for system synchronization requirements in various applications, and reduces circuit design resources and power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118631373A
    Figure CN118631373A
Patent Text Reader

Abstract

A broadcast interface for sending broadcast codes comprises a pre-frequency division module, a broadcast code spacing module, a broadcast code register, a sending module and a broadcast code control module. The pre-frequency division module is connected with the broadcast code interval module and is used for carrying out frequency division on an externally input system clock and generating a reference clock required by the broadcast code interval module; the broadcast code interval module is used for independently setting or setting the interval duration between two adjacent broadcast codes at one time, and a reference clock of the interval duration comes from the clock generated by the pre-frequency-division module; the broadcast code register is used for generating a broadcast code needing to be sent currently; the sending module serves as a broadcast code sending switch and is used for sending out the numerical value of the broadcast code register or forbidding sending, setting a broadcast code sending mode to be an automatic mode or a manual mode, and controlling to start or stop sending the broadcast code in the automatic mode; the broadcast code control module is used for configuring the size of a frequency division value; the broadcast code control module is used for controlling read-write operation of an interval duration register in the broadcast code interval module; the broadcast code control module is used for controlling read-write operation of the broadcast code register; and the broadcast code control module is used for controlling a broadcast code sending mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of integrated circuit design, is used for communication and data exchange between satellite-borne electronic devices, and relates to a broadcast interface for sending broadcast codes. Background Art

[0002] With the rapid development of aerospace technology, the number of space missions is increasing, the data processing capabilities of spacecraft systems are constantly increasing, and the communication synchronization between various high-speed devices has become more complicated. At present, the existing SpaceWire devices use broadcast codes to achieve communication synchronization of SpaceWire networks in most applications, but the broadcasting mode of broadcast codes is usually manually configured and requires intervention from the master control node. In addition, this transmission mode has high real-time requirements and requires corresponding high-precision controllers to process. Therefore, it is crucial for the hardware to realize automatic transmission of broadcast codes.

[0003] SpaceWire bus is a point-to-point, high-speed, serial bus for aerospace applications. It is a representative of medium- and high-speed buses for aerospace and has been widely used in space missions at home and abroad. At present, the typical product of SpaceWire bus is GR718B of COBHAM. This circuit realizes the time distribution of the system network through the broadcast code function, and through the time slot planning of the broadcast code, it can perform high real-time data interaction and ensure the reliability of the system network.

[0004] However, GR718B has the following main problems in application:

[0005] The lower 6 bits of the time code register of GR718B are read-only bits, which can only send valid time codes and cannot directly configure the registers for sending, so they are restricted in use; GR718B uses a dedicated external pin to control the sending of time codes in broadcast codes, which makes the sending of broadcast codes dependent on external devices and cannot realize its own automatic sending function; the sending of interrupt codes of GR718B requires multiple conditions to be met, and the operation is complicated. Summary of the invention

[0006] The technical problem to be solved by the present invention is to overcome the shortcomings of the prior art and solve the problem of usage restrictions on broadcast code transmission.

[0007] The purpose of the present invention is achieved through the following technical solutions:

[0008] A broadcast interface for sending broadcast codes comprises a pre-frequency division module, a broadcast code interval module, a broadcast code register, a sending module and a broadcast code control module.

[0009] The pre-frequency division module is connected to the broadcast code interval module and is used for dividing the frequency of the external input system clock to generate the reference clock of the broadcast code interval module.

[0010] The broadcast code interval module is connected to the broadcast code register and is used to independently set or once-for-all set the interval duration between two adjacent broadcast codes. The reference clock of the interval duration is derived from the clock generated by the pre-division module. The broadcast code interval module has 64 interval duration registers, and the serial numbers of the 64 registers are 0 to 63, which have a one-to-one correspondence with the numerical values ​​of the broadcast codes. The sending of the time code uses the 64 registers, the sending of the interrupt code uses the first 32 registers, and the sending of the interrupt response code uses the last 32 registers.

[0011] The broadcast code register is connected to the sending module and is used to generate the broadcast code that needs to be sent currently. The broadcast code register stores the values ​​of the time code, the interrupt code and the interrupt response code.

[0012] The sending module is used as a switch for sending broadcast codes, for sending the value of the broadcast code register or prohibiting sending, setting the mode of broadcast code sending to automatic mode or manual mode, and setting the start or stop of broadcast code sending in automatic mode.

[0013] The broadcast code control module is connected to the pre-division module to configure the size of the division value, generate a suitable reference clock and send it to the broadcast code interval module; the broadcast code control module is connected to the broadcast code interval module to control the read and write operations of 64 interval duration registers; the broadcast code control module is connected to the broadcast code register to control the read and write operations of the broadcast code register; the broadcast code control module is connected to the sending module to control the broadcast code sending mode, and the sending mode in the automatic mode is single value sending or full value sending.

[0014] The broadcast code sending modes are manual mode and automatic mode: the manual mode means that each time a broadcast code is sent, a value must be written into the broadcast code register through the broadcast code control module, and the broadcast code is sent out through the sending module. In this mode, the pre-dividing module and the broadcast code interval module do not play any role, and the interval time between sending two broadcast codes is controlled manually; the automatic mode means that after the frequency division value of the pre-dividing module, the interval time of the broadcast code interval module, and the initial value of the broadcast code register are configured, the sending module is set to start through the broadcast code control module, and the broadcast code will be automatically sent out according to the single value mode or the full value mode, according to the interval time set by the broadcast code interval module, and then the sending module is set to stop through the broadcast code control module, the broadcast code will stop sending, and the broadcast code sending operation is ended.

[0015] The broadcast code includes a time code, an interrupt code and an interrupt response code. The hexadecimal representation range of the time code is a continuous value from 0x0 to 0x3f, which corresponds to 64 register numbers 0 to 63 of the broadcast code interval module, the hexadecimal representation range of the interrupt code is a continuous value from 0x80 to 0x9f, which corresponds to the first 32 register numbers 0 to 31 of the broadcast code interval module, and the hexadecimal representation range of the interrupt response code is a continuous value from 0xa0 to 0xbf, which corresponds to the last 32 register numbers 32 to 63 of the broadcast code interval module.

[0016] There are two ways to configure the 64 interval duration registers in the broadcast code interval module, both of which are written through the broadcast code control module. One is a one-time configuration method, by writing the interval duration register value of the serial number 0 and setting the full configuration enable position to 1, the interval duration registers of other serial numbers are automatically written with the same value as the register with serial number 0; the other is an independent configuration method, writing the interval duration register value of each serial number through the broadcast code control module, and setting the intervals of different broadcast codes respectively. Here, the one-time configuration method can only set equal interval time, while the independent configuration method can set equal interval or unequal interval time.

[0017] The time code function bit in the broadcast code control module is valid, and only the time code can be sent at this time. The 64 interval duration registers of the broadcast code interval module can be configured at one time or independently configured, and the broadcast code register can only write the time code, and the time code can be sent in manual mode or automatic mode; the interrupt code function bit in the broadcast code control module is valid, and only the interrupt code can be sent at this time. The first 32 interval duration registers of the broadcast code interval module can be configured at one time or independently configured, and the last 32 interval duration registers cannot be operated. The broadcast code register can only write the interrupt code, and the interrupt code can be sent in manual mode or automatic mode; the interrupt response code function bit in the broadcast code control module is valid, and only the interrupt response code can be sent at this time. The last 32 interval duration registers of the broadcast code interval module can be configured at one time or independently configured, and the first 32 interval duration registers cannot be operated. The broadcast code register can only write the interrupt response code, and the interrupt response code can be sent in manual mode or automatic mode.

[0018] In the automatic mode of the broadcast interface, there are two types of broadcast code transmission: single value transmission and full value transmission. Single value transmission refers to cyclically transmitting the broadcast code according to the value of the current broadcast code register and the time interval of the corresponding interval length register, and full value transmission refers to cyclically transmitting the broadcast code according to the time interval of each broadcast code corresponding interval length register with the value of the current broadcast code register as the initial value.

[0019] In the sending module, when the sending module is prohibited from sending the broadcast code, the broadcast code cannot be sent out in both the manual mode and the automatic mode.

[0020] Compared with the prior art, the present invention has the following beneficial effects:

[0021] (1) The present invention solves the problem of usage restrictions on broadcast code transmission by configuring registers in manual mode; realizes the function of automatic broadcast code transmission by setting broadcast code transmission in automatic mode; and saves internal resources and simplifies operation by sharing broadcast code registers and interval duration registers through interrupt codes, interrupt response codes and time codes.

[0022] (2) The broadcast interface for sending broadcast codes of the present invention solves the problem of automatic sending of broadcast codes in a SpaceWire network. Meanwhile, the flexible broadcast code types sent also solve the problem of system synchronization requirements in various application scenarios.

[0023] (3) By configuring the broadcast code interval once, the operation is simple and can quickly and efficiently solve the configuration problem of equal interval duration.

[0024] (4) In the broadcast code interval module, the interrupt code and the interrupt response code reuse the 64 register spaces corresponding to the time code, reducing circuit design resources and power consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a structural schematic diagram of a broadcast interface for sending broadcast codes of the present invention;

[0026] Figure 2 This is the register group structure of the broadcast code interval module of the present invention.

[0027] Figure 3 This is a flowchart of the broadcast code sending process of the present invention. DETAILED DESCRIPTION

[0028] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0029] like Figure 1 As shown, the present invention is a broadcast interface for sending broadcast codes, including a pre-frequency division module, a broadcast code interval module, a broadcast code register, a sending module and a broadcast code control module.

[0030] The pre-frequency division module is connected to the broadcast code interval module and is used for dividing the frequency of the external input system clock to generate the reference clock of the broadcast code interval module.

[0031] In this embodiment, the external input system clock is 50MHz, that is, the period is 20ns. The pre-division module contains a 32-bit pre-division register, and the value of bit [15:0] is the division value. In this way, the reference clock period range of the broadcast code interval module is 20ns to 1.31ms, which can meet the application requirements of different scenarios.

[0032] The broadcast code interval module is connected to the broadcast code register and is used to independently set or once-for-all set the interval duration between two adjacent broadcast codes. The reference clock of the interval duration is derived from the clock generated by the pre-division module. The broadcast code interval module has 64 interval duration registers, and the serial numbers of the 64 registers are 0 to 63, which have a one-to-one correspondence with the numerical values ​​of the broadcast codes. The sending of the time code uses the 64 registers, the sending of the interrupt code uses the first 32 registers, and the sending of the interrupt response code uses the last 32 registers.

[0033] In this embodiment, the 64 interval time registers are as follows: Figure 2 As shown in the figure, all of them are 32-bit wide registers, where the value of bit[19:0] is the interval value. The interval time range between the set broadcast codes is 20ns to 1374s, which can be used in a wide range. The names of the 64 registers are bcode0 to bcode63. When sending time codes, they correspond to the values ​​of the time codes 0x0 to 0x3f one by one; when sending interrupt codes, bcode0 to bcode31 correspond to the values ​​of the interrupt codes 0x80 to 0x9f one by one; when sending interrupt response codes, bcode32 to bcode63 correspond to the values ​​of the interrupt response codes 0xa0 to 0xbf one by one.

[0034] The broadcast code register is connected to the sending module and is used to generate the broadcast code that needs to be sent currently. The broadcast code register stores the values ​​of the time code, the interrupt code and the interrupt response code.

[0035] In this embodiment, the broadcast code register is a 32-bit register, and only the value of bit[9:0] is valid, where bit[7:0] is the current value of the broadcast code, bit[8] sets whether the value of bit[7:0] can be modified, and bit[9] sets whether bit[7:0] is sent to the sending module.

[0036] The sending module is used as a switch for sending broadcast codes, for sending the value of the broadcast code register or prohibiting sending, setting the mode of broadcast code sending to automatic mode or manual mode, and setting the start or stop of broadcast code sending in automatic mode.

[0037] The broadcast code control module is connected to the pre-division module to configure the size of the division value, generate a suitable reference clock and send it to the broadcast code interval module; the broadcast code control module is connected to the broadcast code interval module to control the read and write operations of 64 interval duration registers; the broadcast code control module is connected to the broadcast code register to control the read and write operations of the broadcast code register; the broadcast code control module is connected to the sending module to control the broadcast code sending mode, and the sending mode in the automatic mode is single value sending or full value sending.

[0038] The broadcast code sending modes are manual mode and automatic mode: the manual mode means that each time a broadcast code is sent, a value must be written into the broadcast code register through the broadcast code control module, and the broadcast code is sent out through the sending module. In this mode, the pre-dividing module and the broadcast code interval module do not play any role, and the interval time between sending two broadcast codes is controlled manually; the automatic mode means that after the frequency division value of the pre-dividing module, the interval time of the broadcast code interval module, and the initial value of the broadcast code register are configured, the sending module is set to start through the broadcast code control module, and the broadcast code will be automatically sent out according to the single value mode or the full value mode, according to the interval time set by the broadcast code interval module, and then the sending module is set to stop through the broadcast code control module, the broadcast code will stop sending, and the broadcast code sending operation is ended.

[0039] In this embodiment, the broadcast code sending process flow chart is as follows: Figure 3 As shown, the broadcast code control module first determines whether the transmission is in manual mode or automatic mode. When sending in manual mode, the broadcast code register is written to update the register value, and then the updated register is sent out under the condition that the sending module sends the broadcast code. If the sending module is not enabled to send the broadcast code, the broadcast code cannot be sent out; when sending in automatic mode, it is determined whether the sending mode is single-value sending or full-value sending. If it is single-value sending, it is determined which of the three code types of the time code, interrupt code and interrupt response code is valid. According to the current value of the broadcast code register and the value of the corresponding broadcast code register, the register value is sent out under the condition that the sending module starts the broadcast code sending. If the sending module stops sending the broadcast code, the broadcast code sending ends. The process of full-value sending is similar to that of single-value sending, except that the sent broadcast code is incremented and cyclical.

[0040] The broadcast code includes a time code, an interrupt code and an interrupt response code. The hexadecimal representation range of the time code is a continuous value from 0x0 to 0x3f, which corresponds to 64 register numbers 0 to 63 of the broadcast code interval module, the hexadecimal representation range of the interrupt code is a continuous value from 0x80 to 0x9f, which corresponds to the first 32 register numbers 0 to 31 of the broadcast code interval module, and the hexadecimal representation range of the interrupt response code is a continuous value from 0xa0 to 0xbf, which corresponds to the last 32 register numbers 32 to 63 of the broadcast code interval module.

[0041] There are two ways to configure the 64 interval duration registers in the broadcast code interval module, both of which are written through the broadcast code control module. One is a one-time configuration method, by writing the interval duration register value of the serial number 0 and setting the full configuration enable position to 1, the interval duration registers of other serial numbers are automatically written with the same value as the register with serial number 0; the other is an independent configuration method, writing the interval duration register value of each serial number through the broadcast code control module, and setting the intervals of different broadcast codes respectively. Here, the one-time configuration method can only set equal interval time, while the independent configuration method can set equal interval or unequal interval time.

[0042] The time code function bit in the broadcast code control module is valid, and only the time code can be sent at this time. The 64 interval duration registers of the broadcast code interval module can be configured at one time or independently configured, and the broadcast code register can only write the time code, and the time code can be sent in manual mode or automatic mode; the interrupt code function bit in the broadcast code control module is valid, and only the interrupt code can be sent at this time. The first 32 interval duration registers of the broadcast code interval module can be configured at one time or independently configured, and the last 32 interval duration registers cannot be operated. The broadcast code register can only write the interrupt code, and the interrupt code can be sent in manual mode or automatic mode; the interrupt response code function bit in the broadcast code control module is valid, and only the interrupt response code can be sent at this time. The last 32 interval duration registers of the broadcast code interval module can be configured at one time or independently configured, and the first 32 interval duration registers cannot be operated. The broadcast code register can only write the interrupt response code, and the interrupt response code can be sent in manual mode or automatic mode.

[0043] In this embodiment, if Figure 2 As shown, the function bits of the time code, interrupt code and interrupt response code are effectively implemented in the broadcast code control module. When the time code function bit is effective, Figure 2 bcode0~bcode63 in the register can be configured. If bit

[20] of bcode0 register is set to 1, the value of bit[19:0] of bcode0 register will be automatically copied to bit[19:0] of bcode1~bcode63. When the interrupt code function bit is valid, Figure 2Only bcode0 to bcode31 can be configured. If bit

[20] of bcode0 register is set to 1, the value of bit[19:0] of bcode0 register will be automatically copied to bit[19:0] of bcode1 to bcode31. When the interrupt response code function bit is valid, Figure 2 Only bcode32 to bcode63 are configurable. If bit

[20] of the bcode0 register is set to 1, the value of bit[19:0] of the bcode0 register will be automatically copied to bit[19:0] of bcode32 to bcode63.

[0044] In the automatic mode of the broadcast interface, there are two types of broadcast code transmission: single value transmission and full value transmission. Single value transmission refers to cyclically transmitting the broadcast code according to the value of the current broadcast code register and the time interval of the corresponding interval length register, and full value transmission refers to cyclically transmitting the broadcast code according to the time interval of each broadcast code corresponding interval length register with the value of the current broadcast code register as the initial value.

[0045] In this embodiment, the broadcast codes sent in single value, full value and manual mode include the sending of time code, interruption code and interruption response code.

[0046] In the sending module, when the sending module is prohibited from sending the broadcast code, the broadcast code cannot be sent out in both the manual mode and the automatic mode.

[0047] The contents not described in detail in the specification of the present invention belong to the common knowledge of those skilled in the art.

[0048] Although the present invention has been disclosed as above in the form of a preferred embodiment, it is not intended to limit the present invention. Any person skilled in the art may make possible changes and modifications to the technical solution of the present invention by using the methods and technical contents disclosed above without departing from the spirit and scope of the present invention. Therefore, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention shall fall within the protection scope of the technical solution of the present invention.

Claims

1. A broadcast interface for sending a broadcast code, characterized in that: It includes a pre-frequency division module, a broadcast code interval module, a broadcast code register, a sending module and a broadcast code control module; The pre-frequency division module is connected to the broadcast code interval module and is used to divide the external input system clock to generate the reference clock required by the broadcast code interval module; The broadcast code interval module is connected to the broadcast code register and is used to independently set or set the interval time between two adjacent broadcast codes at one time. The reference clock of the interval time is derived from the clock generated by the pre-scaling module. The broadcast code register is connected to the sending module and is used to generate the broadcast code that needs to be sent currently; The sending module is used as a switch for sending broadcast codes, to send out the value of the broadcast code register or prohibit sending, to set the mode of sending broadcast codes to automatic mode or manual mode, and to control the start or stop of sending broadcast codes in automatic mode; The broadcast code control module is connected to the pre-frequency division module to configure the size of the frequency division value; the broadcast code control module is connected to the broadcast code interval module to control the read and write operations of the interval duration register in the broadcast code interval module; the broadcast code control module is connected to the broadcast code register to control the read and write operations of the broadcast code register; the broadcast code control module is connected to the sending module to control the mode of broadcast code sending.

2. The broadcast interface for sending broadcast codes according to claim 1, characterized in that: The broadcast code interval module is provided with a plurality of interval duration registers, and the serial number of each register has a one-to-one correspondence with the broadcast code value.

3. The broadcast interface for sending broadcast codes according to claim 1, characterized in that: The broadcast code register stores the values ​​of the time code, interrupt code and interrupt response code. The sending of the time code uses all the registers; the sending of the interrupt code uses half of the registers, and the sending of the interrupt response code uses the other half of the registers.

4. The broadcast interface for sending broadcast codes according to claim 3, characterized in that: The hexadecimal representation range of the time code is a continuous value from 0x0 to 0x3f, which corresponds one to one with the 64 register numbers 0 to 63 of the broadcast code interval module. The hexadecimal representation range of the interrupt code is a continuous value from 0x80 to 0x9f, which corresponds one to one with the first 32 register numbers 0 to 31 of the broadcast code interval module. The hexadecimal representation range of the interrupt response code is a continuous value from 0xa0 to 0xbf, which corresponds one to one with the last 32 register numbers 32 to 63 of the broadcast code interval module.

5. The broadcast interface for sending broadcast codes according to claim 3, characterized in that: When the time code function bit in the broadcast code control module is valid, only the time code can be sent, and all the interval duration registers of the broadcast code interval module can be configured at one time or independently; the broadcast code register can only write the time code, and the time code is sent in manual mode or automatic mode; when the interrupt code function bit in the broadcast code control module is valid, only the interrupt code can be sent, and the interval duration registers storing the interrupt code in the broadcast code interval module can be configured at one time or independently, and the other interval duration registers cannot be operated, and the broadcast code register can only write the interrupt code, and the interrupt code is sent in manual mode or automatic mode; when the interrupt response code function bit in the broadcast code control module is valid, only the interrupt response code can be sent, and the interval duration registers storing the interrupt response code in the broadcast code interval module can be configured at one time or independently, and the other interval duration registers cannot be operated, and the broadcast code register can only write the interrupt response code, and the interrupt response code is sent in manual mode or automatic mode.

6. The broadcast interface for sending broadcast codes according to claim 1, characterized in that: The sending methods in automatic mode include single-value sending or full-value sending; single-value sending refers to cyclically sending the broadcast code according to the value of the current broadcast code register and the time interval of the corresponding interval duration register; full-value sending refers to cyclically sending the broadcast code according to the time interval of the interval duration register corresponding to each broadcast code, with the value of the current broadcast code register as the initial value.

7. The broadcast interface for sending broadcast codes according to claim 1, characterized in that: The broadcast code sending modes include manual mode and automatic mode: the manual mode means that each time a broadcast code is sent, a value must be written to the broadcast code register through the broadcast code control module, and the broadcast code is sent out through the sending module. In this mode, the pre-frequency division module and the broadcast code interval module do not play any role, and the interval time between two broadcast codes is controlled manually; the automatic mode means that after the frequency division value of the pre-frequency division module, the interval time of the broadcast code interval module, and the initial value of the broadcast code register are configured, the sending module is set to start through the broadcast code control module. The broadcast code will be automatically sent out according to the single value mode or the full value mode, according to the interval time set by the broadcast code interval module, and then the sending module is set to stop through the broadcast code control module, the broadcast code will stop sending, and the broadcast code sending operation will end.

8. The broadcast interface for sending broadcast codes according to claim 1, characterized in that: There are two ways to configure the 64 interval duration registers in the broadcast code interval module, both of which are written through the broadcast code control module; one is a one-time configuration method, by writing the interval duration register value of serial number 0 and setting the full configuration enable position to 1, the interval duration registers of other serial numbers are automatically written with the same value as the register with serial number 0; the other is an independent configuration method, writing the interval duration register value of each serial number through the broadcast code control module, and setting the intervals of different broadcast codes respectively.

9. The broadcast interface for sending broadcast codes according to claim 8, characterized in that: The one-time configuration method can only set equal intervals, while the independent configuration method can set equal or unequal intervals.

10. The broadcast interface for sending broadcast codes according to claim 1, characterized in that: When the sending module prohibits sending broadcast codes, the broadcast codes cannot be sent in both manual mode and automatic mode.