CN107291655B - SoC bootstrap IP circuit with APB bus interface - Google Patents

SoC bootstrap IP circuit with APB bus interface Download PDF

Info

Publication number
CN107291655B
CN107291655B CN201710446920.XA CN201710446920A CN107291655B CN 107291655 B CN107291655 B CN 107291655B CN 201710446920 A CN201710446920 A CN 201710446920A CN 107291655 B CN107291655 B CN 107291655B
Authority
CN
China
Prior art keywords
interface
flash
data
apb
bus
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.)
Active
Application number
CN201710446920.XA
Other languages
Chinese (zh)
Other versions
CN107291655A (en
Inventor
张磊
汪健
刘彬
徐叔喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui North Microelectronics Research Institute Group Co ltd
Original Assignee
North Electronic Research Institute Anhui Co., Ltd.
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by North Electronic Research Institute Anhui Co., Ltd. filed Critical North Electronic Research Institute Anhui Co., Ltd.
Priority to CN201710446920.XA priority Critical patent/CN107291655B/en
Publication of CN107291655A publication Critical patent/CN107291655A/en
Application granted granted Critical
Publication of CN107291655B publication Critical patent/CN107291655B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7807System on chip, i.e. computer system on a single chip; System in package, i.e. computer system on one or more chips in a single package
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention discloses an SoC bootstrap IP circuit with an APB bus interface, which comprises a QSPI serial interface controller, an APB conversion logic interface and a Flash conversion logic interface; converting an address line, a write data line, a read data line, a write signal and a read signal of a control end of a standard QSPI serial interface controller into an APB bus interface signal through an APB conversion logic interface; and the QSPI serial interface controller converts an external interface clock, chip selection, data transmission and data reception into Flash interface signals through a Flash conversion logic interface. The IP is used for realizing SoC chip bootstrap, the inside can be directly connected through an APB bus, the outside can be directly connected with a serial Flash, and the QSPI is not required to be controlled to be connected with the Flash through an external controller, so that the use is simple and convenient.

Description

SoC bootstrap IP circuit with APB bus interface
Technical Field
The invention belongs to the field of IP design in a semiconductor integrated circuit, and particularly relates to an IP special integrated circuit with an APB bus interface, which is designed by adopting a QSPI method to realize SoC bootstrap.
Background
The bootstrap is a process of automatically running and loading a program stored in an off-chip Flash memory into a program register in a chip when the SoC chip is started, the bootstrap is a first step of normal operation of the SoC chip, and whether the success of the bootstrap determines whether the whole system operation environment can be normally constructed or not. At present, the SoC chip generally adopts SPI (Serial Peripheral interface) or QSPI (quad Serial Peripheral interface) to perform bootstrap by an external Flash memory, the SPI is a Serial interface bus proposed by Motorola, and is a high-speed, full-duplex, synchronous communication bus, and only four ports are provided outside, but only one Serial interface of the SPI performs data communication, and the transmission rate is slower, while the QSPI is a four-way Serial interface, and the transmission rate is four times of the SPI, and the SoC chip has increasingly used a QSPI external Flash device to perform bootstrap. And after the SoC chip is powered on, automatically moving data from the external Flash memory through the QSPI external interface and loading the data into the SoC chip. The QSPI external interfaces are clock ss _ clk, chip selection ss _ oe [3:0], data transmission ss _ txd [3:0] and data reception ss _ rxd [3:0], and the serial Flash external interfaces are data input DI, data output DO, write inclusion WP and HOLD signal HOLD. It can be seen that the QSPI interface signal cannot be directly connected to the Flash memory, and is also controlled by an external controller, which is very inconvenient to use.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provide the SoC bootstrap IP circuit with the APB bus interface, which is simple and convenient to use and does not need to control the QSPI to be connected with Flash through an external controller.
In order to solve the technical problem, the invention provides an SoC bootstrap IP circuit with an APB bus interface, which is characterized by comprising a QSPI serial interface controller, an APB conversion logic interface and a Flash conversion logic interface;
converting an address line address [7:0], a write data line wdata [7:0], a read data line rdata [7:0], a write signal write and a read signal read of a control end of a standard QSPI serial interface controller into APB bus interface signals through an APB conversion logic interface;
and converting an external interface clock ss _ clk, a chip selection ss _ oe [3:0], a data transmission ss _ txd [3:0] and a data reception ss _ rxd [3:0] of the QSPI serial interface controller into Flash interface signals through a Flash conversion logic interface.
The QSPI serial interface controller is directly connected with an SoC internal bus through an APB bus interface and directly connected with a serial Flash through a Flash interface.
An output clock ss _ clk of the QSPI serial interface controller is connected to a clock end SCLK of the Flash conversion logic interface, a chip selection ss _ oe is converted and output to a chip selection CS end according to logic control, a data sending ss _ txd and a data receiving ss _ rxd are respectively connected to a bidirectional port data input DI, a data output DO, a write inclusion WP and a HOLD signal HOLD according to a protocol of the Flash interface, and the sequence of a four-bit data line and the Flash interface is distributed.
The APB bus interface signals include a clock input PCLK, a reset input PRESETN, a write signal input PWRITE, an enable control input PENABLE, a bus select input PSEL, a write data bus input PWDATA [31:0], a write address bus input PADDR [7:0], and a read data bus output PRDATA [31:0 ].
The Flash interface signals include data input DI, data output DO, write contain WP, and HOLD signal HOLD.
The serial Flash is erased, programmed or read through the Flash conversion logic interface,
and directly accessing the Dual and the Quad SPI Flash through the Flash conversion logic interface.
The invention achieves the following beneficial effects:
the invention designs an SoC bootstrap IP circuit with an APB (advanced Peripheral bus) bus interface, wherein an APB bus is one of AMBA bus structures proposed by ARM company, and becomes a standard on-chip bus structure at present. The designed IP circuit takes a QSPI serial interface as a core, is internally connected with an SoC and designed into a common APB bus interface, and is externally connected with Flash and designed into a common serial Flash interface, such as Flash chips of GigaDevice company and Winbond company. The IP is used for realizing SoC chip bootstrap, the inside can be directly connected through an APB bus, the outside can be directly connected with a serial Flash, and the QSPI is not required to be controlled to be connected with the Flash through an external controller, so that the use is simple and convenient.
Drawings
FIG. 1 is an APB bus interface transition diagram;
FIG. 2 is a Flash interface conversion diagram;
fig. 3 is a SoC bootstrapped IP circuit with an APB bus interface.
Detailed Description
The invention is further described below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
As shown in fig. 1, fig. 2 and fig. 3, the present invention designs an SoC bootstrap IP circuit with an APB bus interface, the IP circuit uses a QSPI serial interface controller as a core, and an external interface has a standard APB bus interface: the clock input PCLK, reset input PRESETN, write signal input PWRITE, enable control input PENABLE, bus select input PSEL, write data bus input PWDATA [31:0], write address bus input PADDR [7:0], read data bus output PRDATA [31:0], which may be directly connected to the SoC internal bus via the APB bus. In addition, the interface connected with the serial Flash externally has data input DI, data output DO, write inclusion WP and a HOLD signal HOLD, and can be directly connected with the serial Flash through the serial Flash interface without any conversion control.
As the standard QSPI control end only has an address line address [7:0], a write data line wdata [7:0], a read data line rdata [7:0], a write signal write and a read signal read, which cannot be directly connected with the SoC on-chip bus, the signals are converted into standard APB bus interface signals, and input data, a write enable signal, output data and the like are respectively converted into corresponding interface signals of the QSPI according to an APB bus protocol. As shown in fig. 1.
In addition, the QSPI external interfaces are a clock ss _ clk, a chip selection ss _ oe [3:0], a data transmission ss _ txd [3:0] and a data reception ss _ rxd [3:0], and if the QSPI external interfaces are connected with a serial Flash, conversion control is needed. In the patent, firstly, a QSPI output clock ss _ clk is connected to a clock terminal SCLK of a Flash circuit, then a chip selection ss _ oe of the QSPI is converted and output to a chip selection CS terminal according to logic control, a data sending ss _ txd and a data receiving ss _ rxd are respectively connected to a bidirectional port data input DI, a data output DO, a write contained WP and a HOLD signal HOLD according to a protocol of a Flash interface, and the sequence of a four-bit data line and the Flash interface is distributed. As shown in fig. 2.
QSPI is a four serial peripheral interface controller, can visit Dual or Quad SPI Flash device, in this patent, through adding APB conversion logic interface and Flash conversion logic interface control, can directly link to each other with SoC internal bus when using this IP circuit, can directly meet with serial Flash when connecting the Flash device to the external, and do not need any conversion control, can directly carry on operations such as erasing and writing, programming, reading to the Flash device, and can directly visit the operation to Dual and Quad SPI Flash device. As shown in fig. 3.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (3)

1. An SoC bootstrap IP circuit with an APB bus interface is characterized by comprising a QSPI serial interface controller, an APB conversion logic interface and a Flash conversion logic interface;
converting an address line address [7:0], a write data line wdata [7:0], a read data line rdata [7:0], a write signal write and a read signal read of a control end of a standard QSPI serial interface controller into APB bus interface signals through an APB conversion logic interface;
converting an external interface clock ss _ clk, a chip selection ss _ oe [3:0], a data transmission ss _ txd [3:0] and a data reception ss _ rxd [3:0] of a QSPI serial interface controller into Flash interface signals through a Flash conversion logic interface;
the QSPI serial interface controller is directly connected with an SoC internal bus through an APB bus interface and directly connected with a serial Flash through a Flash interface;
an output clock ss _ clk of the QSPI serial interface controller is connected to a clock end SCLK of the Flash conversion logic interface, a chip selection ss _ oe [3:0] is converted and output to a chip selection CS end of the Flash conversion logic interface according to logic control, a data sending ss _ txd [3:0] and a data receiving ss _ rxd [3:0] are respectively connected to a bidirectional port data input DI, a data output DO, a write contained WP and a HOLD signal HOLD according to a protocol of the Flash interface, and the QSPI serial interface controller distributes the sequence of a four-bit data line and the Flash interface;
the APB bus interface signals include a clock input PCLK, a reset input PRESETN, a write signal input PWRITE, an enable control input PENABLE, a bus select input PSEL, a write data bus input PWDATA [31:0], a write address bus input PADDR [7:0], and a read data bus output PRDATA [31:0 ];
the Flash interface signals include data input DI, data output DO, write contain WP, and HOLD signal HOLD.
2. The SoC bootstrap IP circuit with APB bus interface of claim 1, wherein the serial Flash is erased, programmed or read through the Flash conversion logic interface.
3. The SoC bootstrap IP circuit with the APB bus interface as claimed in claim 1, characterized in that the Dual Flash and the Quad SPI Flash are directly accessed through the Flash conversion logic interface.
CN201710446920.XA 2017-06-14 2017-06-14 SoC bootstrap IP circuit with APB bus interface Active CN107291655B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710446920.XA CN107291655B (en) 2017-06-14 2017-06-14 SoC bootstrap IP circuit with APB bus interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710446920.XA CN107291655B (en) 2017-06-14 2017-06-14 SoC bootstrap IP circuit with APB bus interface

Publications (2)

Publication Number Publication Date
CN107291655A CN107291655A (en) 2017-10-24
CN107291655B true CN107291655B (en) 2020-10-09

Family

ID=60096428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710446920.XA Active CN107291655B (en) 2017-06-14 2017-06-14 SoC bootstrap IP circuit with APB bus interface

Country Status (1)

Country Link
CN (1) CN107291655B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114641763B (en) * 2019-11-05 2024-04-19 深圳市汇顶科技股份有限公司 Protocol converter module system and method for using the same
CN111897749A (en) * 2020-06-23 2020-11-06 中国船舶重工集团公司第七0七研究所 Quad-SPI (Serial peripheral interface) controller and externally-extended FLASH communication control system and method
CN111506529B (en) * 2020-06-30 2020-10-16 深圳市芯天下技术有限公司 High-speed SPI instruction response circuit applied to FLASH

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000597A (en) * 2007-01-17 2007-07-18 中山大学 IP kernel of embedded Java processor based on AMBA
CN202331441U (en) * 2011-11-17 2012-07-11 成都可为科技发展有限公司 FPGA-based expanded serial port
CN102968396A (en) * 2012-10-30 2013-03-13 北京华芯微特科技有限公司 Special data transmission module from flash chip to static random access memory (SRAM) chip
CN103354977A (en) * 2011-01-13 2013-10-16 吉林克斯公司 Extending a processor system within an integrated circuit
CN104462013A (en) * 2014-06-26 2015-03-25 深圳奥比中光科技有限公司 ASIC chip system special for optical three-dimensional sensing
CN105320637A (en) * 2015-10-23 2016-02-10 西安中科晶像光电科技有限公司 FLASH data read circuit
CN106374893A (en) * 2016-09-22 2017-02-01 北方电子研究院安徽有限公司 Configurable PWM wave generating circuit of universal dead zone in embedded SoC system
CN206224997U (en) * 2016-11-09 2017-06-06 华南理工大学 A kind of speech recognition Soc chip architectures

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000597A (en) * 2007-01-17 2007-07-18 中山大学 IP kernel of embedded Java processor based on AMBA
CN103354977A (en) * 2011-01-13 2013-10-16 吉林克斯公司 Extending a processor system within an integrated circuit
CN202331441U (en) * 2011-11-17 2012-07-11 成都可为科技发展有限公司 FPGA-based expanded serial port
CN102968396A (en) * 2012-10-30 2013-03-13 北京华芯微特科技有限公司 Special data transmission module from flash chip to static random access memory (SRAM) chip
CN104462013A (en) * 2014-06-26 2015-03-25 深圳奥比中光科技有限公司 ASIC chip system special for optical three-dimensional sensing
CN105320637A (en) * 2015-10-23 2016-02-10 西安中科晶像光电科技有限公司 FLASH data read circuit
CN106374893A (en) * 2016-09-22 2017-02-01 北方电子研究院安徽有限公司 Configurable PWM wave generating circuit of universal dead zone in embedded SoC system
CN206224997U (en) * 2016-11-09 2017-06-06 华南理工大学 A kind of speech recognition Soc chip architectures

Also Published As

Publication number Publication date
CN107291655A (en) 2017-10-24

Similar Documents

Publication Publication Date Title
CN106874224B (en) Multi-line SPI-Flash controller capable of automatically carrying and adapting to device
CN111008171B (en) Communication IP circuit with serial FLASH interface control
US7366029B2 (en) High-performance flash memory data transfer
KR101105489B1 (en) Command-based control of nand flash memory
CN107291655B (en) SoC bootstrap IP circuit with APB bus interface
US20060294295A1 (en) DRAM chip device well-communicated with flash memory chip and multi-chip package comprising such a device
US7525855B2 (en) Method of high-performance flash memory data transfer
CN109902042B (en) Method and system for realizing high-speed data transmission between DSP and ZYNQ
KR20090026267A (en) High-performance flash memory data transfer
US20140082250A1 (en) EMBEDDED MULTIMEDIA CARD (eMMC), HOST FOR CONTROLLING eMMC, AND METHOD OPERATION FOR eMMC SYSTEM
CN116450552B (en) Asynchronous batch register reading and writing method and system based on I2C bus
CN101820450A (en) The device of the method that parallel interface connects and this method of use
US9104401B2 (en) Flash memory apparatus with serial interface and reset method thereof
CN106776467B (en) SPI FLASH control chip for command receiving system
CN106919343A (en) Perimeter interface circuit and Perimeter memory system
CN209690908U (en) A kind of SPI serial ports based on FPGA turns the structure of the parallel port EBC
US20100037003A1 (en) Flash memory control apparatus having signal-converting module
US20090138673A1 (en) Internal memory mapped external memory interface
CN105573947A (en) APB (Advanced Peripheral Bus) based SD/MMC (Secure Digital/ MultiMedia Card) control method
CN110765065A (en) System on chip
CN107608927B (en) Design method of LPC bus host port supporting full function
CN109726149B (en) Method and device for accessing NAND FLASH through AXI bus
CN101436119A (en) System and method for media card communication
CN109684245B (en) Method and device for accessing SPI FLASH through APB bus
US8462561B2 (en) System and method for interfacing burst mode devices and page mode devices

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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 233040 No.10 Caiyuan Road, Bengbu City, Anhui Province

Patentee after: Anhui North Microelectronics Research Institute Group Co.,Ltd.

Address before: 233040 No.10 Caiyuan Road, Bengbu City, Anhui Province

Patentee before: NORTH ELECTRON RESEARCH INSTITUTE ANHUI Co.,Ltd.

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 233040 No.10 Caiyuan Road, Bengbu City, Anhui Province

Patentee after: Anhui North Microelectronics Research Institute Group Co.,Ltd.

Address before: 233040 No.10 Caiyuan Road, Bengbu City, Anhui Province

Patentee before: NORTH ELECTRON RESEARCH INSTITUTE ANHUI Co.,Ltd.

CP01 Change in the name or title of a patent holder