A new type of implementation device for starting switching chip
By designing a new startup switching chip implementation device, using serial EEPROM devices and synchronous clock signals, the problem of low automatic operation efficiency of existing Ethernet switches is solved, efficient and concise automatic control and data storage is achieved, and embedded applications are enhanced. Practicality.
Patent Information
- Application Number
- CN202011521897.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-21
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2040-12-21
AI Technical Summary
Existing Ethernet switches are inefficient and complex in automatic operation, making it difficult to achieve efficient and concise automatic configuration.
A new startup switching chip implementation device is designed, including a timing control module, a data storage module, a data receiving module, an instruction decoding module, an output control module and an output module. The serial EEPROM device is used to realize the automatic reception and transmission of data and instructions. Simplify the control process and realize the automatic operation of the switching circuit by synchronizing the clock signal and reset signal.
It improves the automatic control efficiency of the switching chip, enhances the practicality of embedded applications, is simple to operate, can expand storage capacity, and does not lose data after power failure, and has a clear control process.
Smart Images

Figure CN112612542B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of computer technology, and in particular relates to a new implementation device for starting a switching chip. Background Art
[0002] Ethernet technology is easy to use, low-priced, and has continuously increasing bandwidth, so it is widely used. As a technology that has been developed for many years, it can effectively support IP services, implement path learning through its own protocol, is simple to configure and maintain, supports multicast, and can well meet the access and bearer needs of future IP-based data services.
[0003] The Ethernet switch receives data packets from each port, and then compares the source MAC address and the destination MAC address with the dynamic lookup table inside the system. If the MAC layer address of the data packet is in the lookup table, the data packet is sent to the corresponding destination port. Otherwise, the source MAC address is added to the address table and the data is broadcast. The configuration of automatic operation of the Ethernet switch is an effective method. How to efficiently and concisely realize the automatic operation of the Ethernet switch has become one of the key technical issues in Ethernet switching research. Summary of the invention
[0004] The technology of the present invention solves the problem: overcomes the shortcomings of the prior art and provides a new device for starting a switching chip, which has a simple structure, a small area, low power consumption, and is easy to implement on a chip. When the switching chip is started using the present invention, the processing flow is simple and easy to control, which improves the efficiency of automatically controlling the switching chip and enhances the practicability of embedded applications.
[0005] In order to solve the above technical problems, the present invention discloses a novel implementation device for starting a switching chip, comprising:
[0006] A timing control module is used to generate a synchronous clock signal, a memory read signal and a chip select signal;
[0007] The data storage module is used to write the address of the unit to be read into the internal address pointer of the data storage module when the chip selection signal and the read memory signal are valid, and output the read data in series with the synchronous clock signal; after the reading of the unit to be read is completed, the internal address pointer automatically increases to point to the next unit to be read;
[0008] A data receiving module, used for outputting the data received from the data storage module in parallel to the instruction decoding module;
[0009] The instruction decoding module is used to decode the data received from the data receiving module to obtain the register address, device address and 16-bit data;
[0010] Output control module, used to select one of the register address, device address and 16-bit data for output;
[0011] The output module is used to convert the three-select-one output of the output control module into a serial signal for output.
[0012] In the implementation device of the above-mentioned new startup switching chip, the timing control module is also used to: after receiving the reset signal RST, generate a start address signal, and send the start address signal to the data storage module, so that the data storage module resets the internal address pointer according to the start address signal.
[0013] In the implementation device of the novel startup switching chip, the timing control module includes: a startup control unit and a clock generating unit; wherein the startup control unit includes: AND gate and21_0, AND gate and21_1, AND gate and21_2, D flip-flop dff_0, D flip-flop dff_1, D flip-flop dff_2, inverter inv_0, inverter inv_1, inverter inv_2, OR gate or31_0, OR gate or31_1, OR gate or31_2, OR gate or21_0 and NAND gate nand31_0;
[0014] The synchronous clock signal clk is connected to the clock terminals of the trigger dff_0, the trigger dff_1 and the trigger dff_2; the reset signal RST is connected to the reset terminals of the trigger dff_0, the trigger dff_1 and the trigger dff_2; the input signal A and the input enable signal en are respectively connected to the two input terminals of the AND gate and21_0, the output terminal of the AND gate and21_0 is connected to the data terminal D of the trigger dff_0, and the output terminal Q of the trigger dff_0 is connected to the input terminal of the inverter inv_0; the input signal B and the input enable signal en are respectively connected to the two input terminals of the AND gate and21_1, the output terminal of the AND gate and21_1 is connected to the data terminal D of the trigger dff_1, and the output terminal Q of the trigger dff_1 is connected to the input terminal of the inverter inv_1; the input signal C and the input enable signal en are respectively connected to the two input terminals of the AND gate and21_2, and the output terminal of the AND gate and21_2 is connected to the trigger dff _2, the output terminal Q of the trigger dff_2 is connected to the input terminal of the inverter inv_2; the input terminal of the OR gate or31_0 is respectively connected to the output terminal of the inverter inv_0, the output terminal of the inverter inv_1 and the output terminal Q of the trigger dff_2; the input terminal of the OR gate or31_1 is respectively connected to the output terminal of the inverter inv_0, the output terminal of the inverter inv_2 and the output terminal Q of the trigger dff_1; the input terminal of the OR gate or31_2 is respectively connected to the output terminal of the inverter inv_1, the output terminal Q of the trigger dff_0 and the output terminal Q of the trigger dff_2; the input terminal of the OR gate or21_0 is respectively connected to the output terminal of the OR gate or31_1 and the input signal D; the input terminal of the NAND gate nand31_0 is respectively connected to the output terminal of the OR gate or31_0, the output terminal of the OR gate or31_2 and the output terminal of the OR gate or21_0; the output terminal of the NAND gate nand31_0 is connected to the output signal out;
[0015] The clock generating unit is used to generate a synchronous clock signal of the data storage module according to the system clock.
[0016] In the implementation device of the above-mentioned new startup switching chip, the data storage module is a serial programmable memory; the port signals of the data storage module include: a synchronous clock signal clk, a chip select signal CS, a data input signal din, and a data output signal dout; wherein, when the chip select signal CS is valid, when the upper three bits of the input signal din are '110', the data storage module enters a read operation; the lower 6 bits of the input signal din are the first address of the unit to be read, and the lower 6 bits of the input signal din are written into the internal address pointer of the data storage module, and the read data is output serially together with the synchronous clock signal.
[0017] In the implementation device of the novel startup switching chip, the data receiving module includes: AND gate and21_3, AND gate and21_4, AND gate and21_5, AND gate and21_6, AND gate and21_7, AND gate and21_8, AND gate and21_9, AND gate and21_10, AND gate and21_11, AND gate and21_12, AND gate and21_13, AND gate and21_14, AND gate and21_15, AND gate and21_16, AND gate and21_17, AND gate and21_18, D trigger dff_3, D trigger dff_4, D trigger dff_5, D trigger dff_6, D trigger dff_7, D trigger dff_8, D Flip-flop dff_9, D flip-flop dff_10, D flip-flop dff_11, D flip-flop dff_12, D flip-flop dff_13, D flip-flop dff_14, D flip-flop dff_15, D flip-flop dff_16, D flip-flop dff_17, D flip-flop dff_18, tri-state gate tri_0, tri-state gate tri_1, tri-state gate tri_2, tri-state gate tri_3, tri-state gate tri_4, tri-state gate tri_5, tri-state gate tri_6, tri-state gate tri_7, tri-state gate tri_8, tri-state gate tri_9, tri-state gate tri_10, tri-state gate tri_11, tri-state gate tri_12, tri-state gate tri_13, tri-state gate tri_14 and tri-state gate tri_15;
[0018] The synchronous clock signal clk is connected to the clock end of the D flip-flops dff_3, dff_4, dff_5, dff_6, dff_7, dff_8, dff_9, dff_10, dff_11, dff_12, dff_13, dff_14, dff_15, dff_16, dff_17 and dff_18; the reset signal RST is connected to the clock end of the D flip-flops dff_ 3. The reset terminal of D flip-flop dff_4, D flip-flop dff_5, D flip-flop dff_6, D flip-flop dff_7, D flip-flop dff_8, D flip-flop dff_9, D flip-flop dff_10, D flip-flop dff_11, D flip-flop dff_12, D flip-flop dff_13, D flip-flop dff_14, D flip-flop dff_15, D flip-flop dff_16, D flip-flop dff_17, and D flip-flop dff_18; the two input terminals of AND gate and21_3 are respectively connected to the input signal shift and the input signal din The two input ends of the AND gate and21_4 are connected to the input signal shift and the Q end of the trigger dff_3 respectively, the two input ends of the AND gate and21_5 are connected to the input signal shift and the Q end of the trigger dff_4 respectively, the two input ends of the AND gate and21_5 are connected to the input signal shift and the Q end of the trigger dff_5 respectively, the two input ends of the AND gate and21_17 are connected to the input signal shift and the Q end of the trigger dff_17 respectively, the two input ends of the AND gate and21_18 are connected to the input signal shift and the Q end of the trigger dff_ 18; the two input ends of the three-state gate tri_0 are respectively connected to the input enable signal en and the Q end of the trigger dff_3, the two input ends of the three-state gate tri_1 are respectively connected to the input enable signal en and the Q end of the trigger dff_4, the two input ends of the three-state gate tri_2 are respectively connected to the input enable signal en and the Q end of the trigger dff_5, the two input ends of the three-state gate tri_14 are respectively connected to the input enable signal en and the Q end of the trigger dff_17, and the two input ends of the three-state gate tri_15 are respectively connected to the input enable signal en and the Q end of the trigger dff_18.
[0019] In the implementation device of the above-mentioned new startup exchange chip, the instruction decoding module includes: an instruction register unit, an instruction decoding unit and a result output unit; according to the instruction format, the data received from the data storage module is fetched, decoded, executed and written to the register through the instruction register unit, the instruction decoding unit and the result output unit, and the input signal shift and input enable signal en of the data receiving module are generated, and the output signal en1, output signal en2, output signal en3, 5-bit register address, 10-bit device address and 16-bit data are generated and sent to the output control module.
[0020] In the implementation device of the novel startup switching chip, the instruction decoding unit is used to:
[0021] Step 1: Read the first 16-bit instruction code from the data received from the data storage module;
[0022] Step 2: Determine whether the first 16-bit instruction code is all '1'; if so, generate the input signal shift and input enable signal en of the data receiving module, and generate the output signal en1, output signal en2, output signal en3 sent to the output control module, and execute the third step; otherwise, end the process;
[0023] Step 3: Generate a 5-bit register address, a 10-bit device address and 16-bit data according to the instruction type of the first 16-bit instruction code;
[0024] Step 4: After completing step 3, read the next 16-bit instruction code and proceed to step 2.
[0025] In the implementation device of the novel startup switching chip, the output control module is used to:
[0026] When the output signal en1 sent by the instruction decoding module is 1, the 5-bit register address is selected for output;
[0027] When the output signal en2 sent by the instruction decoding module is 1, the 10-bit device address is selected for output;
[0028] When the output signal en3 sent by the instruction decoding module is 1, 16-bit data is selected for output.
[0029] In the implementation device of the novel startup switching chip, the output module includes:
[0030] Register address unit, used to convert a 5-bit register address into a serial signal and output it;
[0031] The device address unit is used to convert a 1010-bit device address into a serial signal and output it;
[0032] The data unit is used to convert a 16-bit data into a serial signal and output it.
[0033] In the implementation device of the above-mentioned new startup switching chip, when the input enable signal en of the data receiving module is 1, it indicates entering the external program startup switching chip mode; when the reset signal RST of the startup control unit is valid, the output signal out is 0; the input signal A, input signal B, input signal C and input signal D are configured, and the output signal out outputs a 3-bit instruction code 110 and a 6-bit serial first address 000000.
[0034] The present invention has the following advantages:
[0035] (1) The present invention discloses a novel implementation device of a startup switching chip, which uses an external serial EEPROM device to automatically receive and send data and instructions; the implementation device can expand the storage capacity to store a large amount of instructions and data, and is easy to operate; the data in the serial EEPROM device will not be lost after power failure, and the storage content is automatically cleared when data is written; the implementation device adopts a synchronous clock design, which is convenient for timing inspection and verification, and enhances the practicality of embedded applications.
[0036] (2) When the switching chip is started by the present invention, only two mode control selection bits, a serial EEPROM chip selection signal, a synchronous clock signal and a reset signal are required to control the automatic operation of the switching circuit, and the control process is simple.
[0037] (3) The present invention completely covers four major categories of instructions: global instructions, PHY instructions, MAC instructions and control instructions, and conveniently expands external EEPROM devices to meet the needs of storing multiple instructions. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a structural schematic diagram of a device for implementing a novel startup switching chip in an embodiment of the present invention;
[0039] Figure 2 is a circuit diagram of a startup control unit in an embodiment of the present invention;
[0040] Figure 3 is a circuit diagram of a data receiving module in an embodiment of the present invention;
[0041] Figure 4 is a structural diagram of an instruction decoding module in an embodiment of the present invention;
[0042] Figure 5 is a structural diagram of an output module in an embodiment of the present invention;
[0043] Figure 6 It is a schematic diagram of an instruction format in an embodiment of the present invention. DETAILED DESCRIPTION
[0044] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments disclosed in the present invention will be further described in detail below with reference to the accompanying drawings.
[0045] like Figure 1 In this embodiment, the implementation device of the new startup switching chip includes:
[0046] The timing control module is used to generate synchronous clock signals, memory read signals and chip select signals.
[0047] The data storage module is used to write the address of the unit to be read into the internal address pointer of the data storage module when the chip selection signal and the read memory signal are valid, and output the read data serially together with the synchronous clock signal; after the reading of the unit to be read is completed, the internal address pointer automatically increases to point to the next unit to be read.
[0048] The data receiving module is used to output the data received from the data storage module in parallel to the instruction decoding module.
[0049] The instruction decoding module is used to decode the data received from the data receiving module to obtain the register address, device address and 16-bit data.
[0050] The output control module is used to select one of the register address, device address and 16-bit data for output.
[0051] The output module is used to convert the three-select-one output of the output control module into a serial signal for output.
[0052] In this embodiment, the timing control module may specifically include: a startup control unit and a clock generation unit. Figure 2 , start the control unit, including: AND gate and21_0, AND gate and21_1, AND gate and21_2, D flip-flop dff_0, D flip-flop dff_1, D flip-flop dff_2, inverter inv_0, inverter inv_1, inverter inv_2, OR gate or31_0, OR gate or31_1, OR gate or31_2, OR gate or21_0 and NAND gate nand31_0.
[0053] Preferably, the synchronous clock signal clk is connected to the clock terminals of the trigger dff_0, the trigger dff_1, and the trigger dff_2; the reset signal RST is connected to the reset terminals of the trigger dff_0, the trigger dff_1, and the trigger dff_2; the input signal A and the input enable signal en are respectively connected to the two input terminals of the AND gate and21_0, the output terminal of the AND gate and21_0 is connected to the data terminal D of the trigger dff_0, and the output terminal Q of the trigger dff_0 is connected to the input terminal of the inverter inv_0; the input signal B and the input enable signal en are respectively connected to the two input terminals of the AND gate and21_1, the output terminal of the AND gate and21_1 is connected to the data terminal D of the trigger dff_1, and the output terminal Q of the trigger dff_1 is connected to the input terminal of the inverter inv_1; the input signal C and the input enable signal en are respectively connected to the two input terminals of the AND gate and21_2, and the output terminal of the AND gate and21_2 is connected to the trigger d The data terminal D of ff_2 and the output terminal Q of the trigger dff_2 are connected to the input terminal of the inverter inv_2; the input terminal of the OR gate or31_0 is respectively connected to the output terminal of the inverter inv_0, the output terminal of the inverter inv_1 and the output terminal Q of the trigger dff_2; the input terminal of the OR gate or31_1 is respectively connected to the output terminal of the inverter inv_0, the output terminal of the inverter inv_2 and the output terminal Q of the trigger dff_1; the input terminal of the OR gate or31_2 is respectively connected to the output terminal of the inverter inv_1, the output terminal Q of the trigger dff_0 and the output terminal Q of the trigger dff_2; the input terminal of the OR gate or21_0 is respectively connected to the output terminal of the OR gate or31_1 and the input signal D; the input terminal of the NAND gate nand31_0 is respectively connected to the output terminal of the OR gate or31_0, the output terminal of the OR gate or31_2 and the output terminal of the OR gate or21_0; the output terminal of the NAND gate nand31_0 is connected to the output signal out.
[0054] Preferably, the clock generating unit is used to generate a synchronous clock signal of the data storage module according to the system clock.
[0055] In this embodiment, the data storage module is a serial programmable memory; the port signals of the data storage module include: a synchronous clock signal clk, a chip select signal CS, a data input signal din, and a data output signal dout; wherein, when the chip select signal CS is valid, when the upper three bits of the input signal din are '110', the data storage module enters a read operation; the lower 6 bits of the input signal din are the first address of the unit to be read, and the lower 6 bits of the input signal din are written into the internal address pointer of the data storage module, and the read data is output serially together with the synchronous clock signal.
[0056] In this embodiment, if Figure 3The data receiving module may specifically include: AND gate and21_3, AND gate and21_4, AND gate and21_5, AND gate and21_6, AND gate and21_7, AND gate and21_8, AND gate and21_9, AND gate and21_10, AND gate and21_11, AND gate and21_12, AND gate and21_13, AND gate and21_14, AND gate and21_15, AND gate and21_16, AND gate and21_17, AND gate and21_18, D flip-flop dff_3, D flip-flop dff_4, D flip-flop dff_5, D flip-flop dff_6, D flip-flop dff_7, D flip-flop dff_8, D flip-flop dff_ 9. D flip-flop dff_10, D flip-flop dff_11, D flip-flop dff_12, D flip-flop dff_13, D flip-flop dff_14, D flip-flop dff_15, D flip-flop dff_16, D flip-flop dff_17, D flip-flop dff_18, tri-state gate tri_0, tri-state gate tri_1, tri-state gate tri_2, tri-state gate tri_3, tri-state gate tri_4, tri-state gate tri_5, tri-state gate tri_6, tri-state gate tri_7, tri-state gate tri_8, tri-state gate tri_9, tri-state gate tri_10, tri-state gate tri_11, tri-state gate tri_12, tri-state gate tri_13, tri-state gate tri_14 and tri-state gate tri_15.
[0057] Preferably, the synchronous clock signal clk is connected to the clock end of the D flip-flops dff_3, d flip-flops dff_4, d flip-flops dff_5, d flip-flops dff_6, d flip-flops dff_7, d flip-flops dff_8, d flip-flops dff_9, d flip-flops dff_10, d flip-flops dff_11, d flip-flops dff_12, d flip-flops dff_13, d flip-flops dff_14, d flip-flops dff_15, d flip-flops dff_16, d flip-flops dff_17, and d flip-flops dff_18; the reset signal RST is connected to the clock end of the D flip-flops dff_3, d flip-flops dff_4, d flip-flops dff_5, d flip-flops dff_6, d flip-flops dff_7, d flip-flops dff_8, d flip-flops dff_9, The two input terminals of the AND gate and21_3 are connected to the input signal shift and the input signal dff_13, and the reset terminal of the D flip-flop dff_3, D flip-flop dff_4, D flip-flop dff_5, D flip-flop dff_6, D flip-flop dff_7, D flip-flop dff_8, D flip-flop dff_9, D flip-flop dff_10, D flip-flop dff_11, D flip-flop dff_12, D flip-flop dff_13, D flip-flop dff_14, D flip-flop dff_15, D flip-flop dff_16, D flip-flop dff_17, and D flip-flop dff_18 respectively; the two input terminals of the AND gate and21_3 are connected to the input signal shift and the input signal d in, the two input ends of the AND gate and21_4 are connected to the input signal shift and the Q end of the trigger dff_3 respectively, the two input ends of the AND gate and21_5 are connected to the input signal shift and the Q end of the trigger dff_4 respectively, the two input ends of the AND gate and21_5 are connected to the input signal shift and the Q end of the trigger dff_5 respectively, the two input ends of the AND gate and21_17 are connected to the input signal shift and the Q end of the trigger dff_17 respectively, and the two input ends of the AND gate and21_18 are connected to the input signal shift and the Q end of the trigger dff _18; the two input ends of the three-state gate tri_0 are respectively connected to the input enable signal en and the Q end of the trigger dff_3, the two input ends of the three-state gate tri_1 are respectively connected to the input enable signal en and the Q end of the trigger dff_4, the two input ends of the three-state gate tri_2 are respectively connected to the input enable signal en and the Q end of the trigger dff_5, the two input ends of the three-state gate tri_14 are respectively connected to the input enable signal en and the Q end of the trigger dff_17, and the two input ends of the three-state gate tri_15 are respectively connected to the input enable signal en and the Q end of the trigger dff_18.
[0058] In this embodiment, if Figure 4The instruction decoding module may specifically include: an instruction register unit, an instruction decoding unit and a result output unit. The instruction decoding module performs instruction fetching, decoding, execution and register writing operations on the data received from the data storage module through the instruction register unit, the instruction decoding unit and the result output unit according to the instruction format, generates the input signal shift and the input enable signal en of the data receiving module, and generates the output signal en1, the output signal en2, the output signal en3, the 5-bit register address, the 10-bit device address and the 16-bit data sent to the output control module.
[0059] Preferably, when the instruction decoding unit performs decoding, it specifically includes:
[0060] Step 1: Read the first 16-bit instruction code from the data received from the data storage module.
[0061] Step 2: Determine whether the first 16-bit instruction code is all '1'; if so, generate the input signal shift and input enable signal en of the data receiving module, and generate output signals en1, en2, and en3 sent to the output control module, and execute step 3; otherwise, end the process.
[0062] Step 3: Generate a 5-bit register address, a 10-bit device address and 16-bit data according to the instruction type of the first 16-bit instruction code.
[0063] Step 4: After completing step 3, read the next 16-bit instruction code and proceed to step 2.
[0064] In this embodiment, the output control module can be specifically used for: when the output signal en1 sent by the instruction decoding module is 1, selecting to output a 5-bit register address; when the output signal en2 sent by the instruction decoding module is 1, selecting to output a 10-bit device address; when the output signal en3 sent by the instruction decoding module is 1, selecting to output 16-bit data.
[0065] In this embodiment, if Figure 5 , the output module may specifically include:
[0066] The register address unit is used to convert a 5-bit register address into a serial signal and output it.
[0067] The device address unit is used to convert a 1010-bit device address into a serial signal and output it.
[0068] The data unit is used to convert a 16-bit data into a serial signal and output it.
[0069] In this embodiment, the timing control module is also used to: after receiving the reset signal RST, generate a start address signal, and send the start address signal to the data storage module, so that the data storage module resets the internal address pointer according to the start address signal. After the power-on reset is completed, the input signal A, the input signal B, the input signal C and the input signal D are respectively connected to a fixed level 1100, that is, the input signals A and B are pulled up, and the input signals C and D are pulled down.
[0070] In this embodiment, the workflow of starting the switching chip circuit is as follows: Figure 6 As shown, when the input enable signal en of the generated data receiving module is 1, it indicates entering the external program startup chip exchange mode; when the reset signal RST of the startup control unit is valid, the output signal out is 0; the input signal A, input signal B, input signal C and input signal D are configured, and the output signal out outputs a 3-bit instruction code 110 and a 6-bit serial first address 000000.
[0071] Preferably, the steps of reading data from an external serial EEPROM are as follows:
[0072] Step 1: Read the starting address 0X00.
[0073] Step 2: Read 16-bit instruction from current address.
[0074] Step 3: If the read instruction is all 1s, stop the serial EEPROM read operation and jump to step 8.
[0075] Step 4: The address is automatically incremented by 1. If the read instruction does not require data from the serial EEPROM, execute the command and then jump to step 2.
[0076] Step 5: Read the 16-bit register data in the next address and automatically add 1 to the address.
[0077] Step 6: Write register data to relevant locations according to the content of the previous instruction.
[0078] Step 7: Go to step 2.
[0079] Step 8: Set the EE status bit of the global register to 1 and generate an interrupt.
[0080] Step 9: The reading process is completed.
[0081] 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.
[0082] The contents not described in detail in the specification of the present invention belong to the common knowledge of the professionals in this field.
Claims
1. A novel device for implementing a startup switching chip, characterized in that: include: A timing control module is used to generate a synchronous clock signal, a memory read signal and a chip select signal; And, after receiving the reset signal RST, a start address signal is generated and sent to the data storage module so that the data storage module resets the internal address pointer according to the start address signal. A data storage module, used for writing the address of the unit to be read into the internal address pointer of the data storage module when the chip selection signal and the memory read signal are valid, and outputting the read data serially together with the synchronous clock signal; After the reading of the unit to be read is completed, the internal address pointer automatically increases and points to the next unit to be read; wherein the data storage module is a serial programmable memory; the port signals of the data storage module include: a synchronous clock signal clk, a chip select signal CS, a data input signal din, and a data output signal dout; when the chip select signal CS is valid, and the upper three bits of the input signal din are '110', the data storage module enters a read operation; the lower 6 bits of the input signal din are the first address of the unit to be read, and the lower 6 bits of the input signal din are written into the internal address pointer of the data storage module, and the read data is serially output together with the synchronous clock signal; A data receiving module, used for outputting the data received from the data storage module in parallel to the instruction decoding module; An instruction decoding module is used to decode the data received from the data receiving module to obtain the register address, the device address and the 16-bit data; wherein the instruction decoding module includes: an instruction register unit, an instruction decoding unit and a result output unit; according to the instruction format, the instruction register unit, the instruction decoding unit and the result output unit are used to fetch, decode, execute and write register operations on the data received from the data storage module, generate the input signal shift and the input enable signal en of the data receiving module, and generate the output signal en1, the output signal en2, the output signal en3, the 5-bit register address, the 10-bit device address and the 16-bit data sent to the output control module; Output control module, used to select one of the register address, device address and 16-bit data for output; The output module is used to convert the three-select-one output of the output control module into a serial signal for output; 2. The device for implementing the new startup switching chip according to claim 1 is characterized in that: The timing control module includes: a start control unit and a clock generating unit; wherein the start control unit includes: AND gate and21_0, AND gate and21_1, AND gate and21_2, D flip-flop dff_0, D flip-flop dff_1, D flip-flop dff_2, inverter inv_0, inverter inv_1, inverter inv_2, OR gate or31_0, OR gate or31_1, OR gate or31_2, OR gate or21_0 and NAND gate nand31_0; The synchronous clock signal clk is connected to the clock terminals of the trigger dff_0, the trigger dff_1 and the trigger dff_2; the reset signal RST is connected to the reset terminals of the trigger dff_0, the trigger dff_1 and the trigger dff_2; the input signal A and the input enable signal en are respectively connected to the two input terminals of the AND gate and21_0, the output terminal of the AND gate and21_0 is connected to the data terminal D of the trigger dff_0, and the output terminal Q of the trigger dff_0 is connected to the input terminal of the inverter inv_0; the input signal B and the input enable signal en are respectively connected to the two input terminals of the AND gate and21_1, the output terminal of the AND gate and21_1 is connected to the data terminal D of the trigger dff_1, and the output terminal Q of the trigger dff_1 is connected to the input terminal of the inverter inv_1; the input signal C and the input enable signal en are respectively connected to the two input terminals of the AND gate and21_2, and the output terminal of the AND gate and21_2 is connected to the trigger dff _2, the output terminal Q of the trigger dff_2 is connected to the input terminal of the inverter inv_2; the input terminal of the OR gate or31_0 is respectively connected to the output terminal of the inverter inv_0, the output terminal of the inverter inv_1 and the output terminal Q of the trigger dff_2; the input terminal of the OR gate or31_1 is respectively connected to the output terminal of the inverter inv_0, the output terminal of the inverter inv_2 and the output terminal Q of the trigger dff_1; the input terminal of the OR gate or31_2 is respectively connected to the output terminal of the inverter inv_1, the output terminal Q of the trigger dff_0 and the output terminal Q of the trigger dff_2; the input terminal of the OR gate or21_0 is respectively connected to the output terminal of the OR gate or31_1 and the input signal D; the input terminal of the NAND gate nand31_0 is respectively connected to the output terminal of the OR gate or31_0, the output terminal of the OR gate or31_2 and the output terminal of the OR gate or21_0; the output terminal of the NAND gate nand31_0 is connected to the output signal out; The clock generating unit is used to generate a synchronous clock signal of the data storage module according to the system clock.
3. The device for implementing the new startup switching chip according to claim 1 is characterized in that: The data receiving module includes: AND gate and21_3, AND gate and21_4, AND gate and21_5, AND gate and21_6, AND gate and21_7, AND gate and21_8, AND gate and21_9, AND gate and21_10, AND gate and21_11, AND gate and21_12, AND gate and21_13, AND gate and21_14, AND gate and21_15, AND gate and21_16, AND gate and21_17, AND gate and21_18, D flip-flop dff_3, D flip-flop dff_4, D flip-flop dff_5, D flip-flop dff_6, D flip-flop dff_7, D flip-flop dff_8, D flip-flop dff_9, D flip-flop dff_10, D flip-flop dff_11, D flip-flop dff_12, D flip-flop dff_13, D flip-flop dff_14, D flip-flop dff_15, D flip-flop dff_16, D flip-flop dff_17, D flip-flop dff_18, tri-state gate tri_0, tri-state gate tri_1, tri-state gate tri_2, tri-state gate tri_3, tri-state gate tri_4, tri-state gate tri_5, tri-state gate tri_6, tri-state gate tri_7, tri-state gate tri_8, tri-state gate tri_9, tri-state gate tri_10, tri-state gate tri_11, tri-state gate tri_12, tri-state gate tri_13, tri-state gate tri_14 and tri-state gate tri_15; The synchronous clock signal clk is connected to the clock end of the D flip-flops dff_3, dff_4, dff_5, dff_6, dff_7, dff_8, dff_9, dff_10, dff_11, dff_12, dff_13, dff_14, dff_15, dff_16, dff_17 and dff_18; the reset signal RST is connected to the clock end of the D flip-flops dff_ 3. The reset terminal of D flip-flop dff_4, D flip-flop dff_5, D flip-flop dff_6, D flip-flop dff_7, D flip-flop dff_8, D flip-flop dff_9, D flip-flop dff_10, D flip-flop dff_11, D flip-flop dff_12, D flip-flop dff_13, D flip-flop dff_14, D flip-flop dff_15, D flip-flop dff_16, D flip-flop dff_17, and D flip-flop dff_18; the two input terminals of AND gate and21_3 are respectively connected to the input signal shift and the input signal din The two input ends of the AND gate and21_4 are connected to the input signal shift and the Q end of the trigger dff_3 respectively, the two input ends of the AND gate and21_5 are connected to the input signal shift and the Q end of the trigger dff_4 respectively, the two input ends of the AND gate and21_5 are connected to the input signal shift and the Q end of the trigger dff_5 respectively, the two input ends of the AND gate and21_17 are connected to the input signal shift and the Q end of the trigger dff_17 respectively, the two input ends of the AND gate and21_18 are connected to the input signal shift and the Q end of the trigger dff_ 18; the two input ends of the three-state gate tri_0 are respectively connected to the input enable signal en and the Q end of the trigger dff_3, the two input ends of the three-state gate tri_1 are respectively connected to the input enable signal en and the Q end of the trigger dff_4, the two input ends of the three-state gate tri_2 are respectively connected to the input enable signal en and the Q end of the trigger dff_5, the two input ends of the three-state gate tri_14 are respectively connected to the input enable signal en and the Q end of the trigger dff_17, and the two input ends of the three-state gate tri_15 are respectively connected to the input enable signal en and the Q end of the trigger dff_18.
4. The device for implementing the new startup switching chip according to claim 2 is characterized in that: Instruction decoding unit, used to: Step 1: Read the first 16-bit instruction code from the data received from the data storage module; Step 2: Determine whether the first 16-bit instruction code is all '1'; if so, generate the input signal shift and input enable signal en of the data receiving module, and generate the output signal en1, output signal en2, output signal en3 sent to the output control module, and execute the third step; otherwise, end the process; Step 3: Generate a 5-bit register address, a 10-bit device address and 16-bit data according to the instruction type of the first 16-bit instruction code; Step 4: After completing step 3, read the next 16-bit instruction code and proceed to step 2.
5. The device for implementing the new startup switching chip according to claim 4 is characterized in that: Output control module for: When the output signal en1 sent by the instruction decoding module is 1, the 5-bit register address is selected for output; When the output signal en2 sent by the instruction decoding module is 1, the 10-bit device address is selected for output; When the output signal en3 sent by the instruction decoding module is 1, 16-bit data is selected for output.
6. The device for implementing the new startup switching chip according to claim 5 is characterized in that: Output modules, including: Register address unit, used to convert a 5-bit register address into a serial signal and output it; The device address unit is used to convert a 1010-bit device address into a serial signal and output it; The data unit is used to convert a 16-bit data into a serial signal and output it.
7. The device for implementing the new startup switching chip according to claim 1 is characterized in that: When the input enable signal en of the generated data receiving module is 1, it indicates entering the external program startup chip exchange mode; when the reset signal RST of the startup control unit is valid, the output signal out is 0; the input signal A, input signal B, input signal C and input signal D are configured, and the output signal out outputs the 3-bit instruction code 110 and the 6-bit serial first address 000000.
