CN104915301B - A kind of plug-in RAM Interface data access system based on 8051 single-chip microcomputers - Google Patents

A kind of plug-in RAM Interface data access system based on 8051 single-chip microcomputers Download PDF

Info

Publication number
CN104915301B
CN104915301B CN201510291300.4A CN201510291300A CN104915301B CN 104915301 B CN104915301 B CN 104915301B CN 201510291300 A CN201510291300 A CN 201510291300A CN 104915301 B CN104915301 B CN 104915301B
Authority
CN
China
Prior art keywords
module
register
ram
chip microcomputers
wishbone
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
CN201510291300.4A
Other languages
Chinese (zh)
Other versions
CN104915301A (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 Wave Sincere Information Technology Co Ltd
Original Assignee
Inspur Group 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 Inspur Group Co Ltd filed Critical Inspur Group Co Ltd
Priority to CN201510291300.4A priority Critical patent/CN104915301B/en
Publication of CN104915301A publication Critical patent/CN104915301A/en
Application granted granted Critical
Publication of CN104915301B publication Critical patent/CN104915301B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • 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/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1605Handling requests for interconnection or transfer for access to memory bus based on arbitration
    • G06F13/161Handling requests for interconnection or transfer for access to memory bus based on arbitration with latency improvement

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Microcomputers (AREA)

Abstract

The present invention is more particularly directed to a kind of plug-in RAM Interface data access system based on 8051 single-chip microcomputers.The plug-in RAM Interface data access system based on 8051 single-chip microcomputers, including 8051 single-chip microcomputers, Wishbone master modules, fifo module, register module, RAM module, interruption control module and external equipment;8051 single-chip microcomputer, fifo module, register module and RAM module are connected to Wishbone master modules, and the fifo module and register module are connected by interruption control module with 8051 single-chip microcomputers.The plug-in RAM Interface data access system based on 8051 single-chip microcomputers, can correctly read and write the register of different submodules by plug-in RAM Interface, FIFO, RAM etc., can compatible different read latches submodule;In addition, present invention also adds temporary register, using twi-read order and the method for interruption delay so that 8051 single-chip microcomputers can correctly read the data of each submodule, the present invention has the characteristics that read latch compatibility is strong, is easy to implement, and has broad application prospects.

Description

A kind of plug-in RAM Interface data access system based on 8051 single-chip microcomputers
Technical field
The present invention relates to single chip application technical field, more particularly to a kind of plug-in RAM Interface based on 8051 single-chip microcomputers Data access system.
Background technology
Wishbone buses complete interconnection by establishing a general-purpose interface between IP kernel, can be used in soft core, admittedly Interconnected between core and stone.For other IP kernel interface specifications, Wishbone interface specifications have it is simple, Open, be efficient, beneficial to the features such as realization and completely free.Connect based on above-mentioned advantage, therefore using Wishbone buses Mouth design.However, when Wishbone buses are as 8051 SCM system bus protocol, 8051 single-chip microcomputer GPIO quantity is not It is enough.
Reading order of 8051 single-chip microcomputers to sub- module data, it is desirable in this rising edge clock or next of single-chip microcomputer order Individual rising edge clock reads back data, so when read operation order is sent, it is desirable to which the data of reading are already prepared to.Outside Portion's equipment can cause the data variation of fifo module and register module, be interrupted so as to produce, and 8051 single-chip microcomputers, which perform, interrupts journey Sequence, the new data of submodule is read out, but it is that may all occur any time to interrupt, and may interrupt 8051 monolithics The original read operation order of machine, after causing interrupt routine to be finished, the read operation order being interrupted can not be performed correctly.
It is inadequate for 8051 single-chip microcomputer GPIO quantity, and interrupt and cause single-chip microcomputer can not correctly perform read operation order The problems such as, the present invention proposes a kind of plug-in RAM Interface data access system based on 8051 single-chip microcomputers.It is intended to compatible different readings The submodule of delay is taken, and ensures that 8051 single-chip microcomputers can correctly read the data of each submodule.
The content of the invention
The defects of present invention is in order to make up prior art, there is provided a kind of compatibility it is strong based on the plug-in of 8051 single-chip microcomputers RAM Interface data access system.
The present invention is achieved through the following technical solutions:
A kind of plug-in RAM Interface data access system based on 8051 single-chip microcomputers, it is characterised in that:Including 8051 monolithics Machine, Wishbone master modules, fifo module, register module, RAM module, interruption control module and external equipment;Will Interface of the plug-in RAM Interface of 8051 single-chip microcomputer as Wishbone bus protocols, 8051 single-chip microcomputer are connected to Wishbone master modules, the fifo module, register module and RAM module are connected to by Wishbone buses Wishbone master modules, it is also associated with postponing control between the Wishbone master modules and Wishbone buses Module, the external equipment are connected to fifo module and register module, and the fifo module and register module pass through interruption Control module is connected with 8051 single-chip microcomputers.
The fifo module, register module and RAM module unified distribution Wishbone base address, the register module Multiple offset address are distributed with RAM module.
The fifo module, register module and RAM module further respectively have a temporary register, store respectively from The data that fifo module, register module and RAM module are read.
The temporary register unified distribution Wishbone base address of the fifo module, register module and RAM module.
The access method of plug-in RAM Interface data access system of the invention based on 8051 single-chip microcomputers, it is characterised in that:Institute State Wishbone master modules and the address of 8051 single-chip microcomputers, data and read-write enable signal are converted into standard Wishbone bus signals, and pass through Wishbone bus access fifo modules, register module, RAM module and FIFO moulds The temporary register of block, register module and RAM module three respectively;External equipment causes fifo module and register module Data variation, when producing interruption, interrupt signal is deferred to 8051 single-chip microcomputers by interruption control module, right again at the end of read command pair 8051 single-chip microcomputers are interrupted, and it is implemented as:
8051 single-chip microcomputer sends the address read operation life of fifo module, register module and any module of RAM module Respective modules are made, after certain delay, respective modules data are read into corresponding temporary register;8051 monolithic afterwards Temporary register address read operation order corresponding to machine transmission, the data of corresponding temporary register are read in into 8051 single-chip microcomputers; Now, interrupt signal is interrupted to 8051 single-chip microcomputers again.
The beneficial effects of the invention are as follows:The plug-in RAM Interface data access system based on 8051 single-chip microcomputers, by plug-in RAM Interface can correctly read and write the register of different submodules, FIFO, RAM etc., can compatible different read latches submodule Block;In addition, present invention also adds temporary register, using twi-read order and the method for interruption delay so that 8051 is single Piece machine can correctly read the data of each submodule, and the present invention has the characteristics that read latch compatibility is strong, is easy to implement, has Have broad application prospects.
Brief description of the drawings
Accompanying drawing 1 is illustrated for plug-in RAM Interface data access system logic module structure of the present invention based on 8051 single-chip microcomputers Figure.
Embodiment
The present invention is described in detail below in conjunction with the accompanying drawings.
The plug-in RAM Interface data access system based on 8051 single-chip microcomputers, including 8051 single-chip microcomputers, Wishbone Master modules, fifo module, register module, RAM module, interruption control module and external equipment;By 8051 monolithic Interface of the plug-in RAM Interface of machine as Wishbone bus protocols, 8051 single-chip microcomputer are connected to Wishbone master moulds Block, the fifo module, register module and RAM module are connected to Wishbone master modules by Wishbone buses, It is also associated with postponing control module between the Wishbone master modules and Wishbone buses, the external equipment connects Fifo module and register module are connected to, the fifo module and register module pass through interruption control module and 8051 single-chip microcomputers It is connected.
The fifo module, register module and RAM module unified distribution Wishbone base address are 16 ' h1000,16 ' H2000,16 ' h3000, the register module and RAM module distribute multiple offset address.
Because the same data of fifo module can only be read once, the fifo module, register module and RAM module are also A temporary register is respectively equipped with, stores the data read from fifo module, register module and RAM module respectively.
The temporary register unified distribution Wishbone base address of the fifo module, register module and RAM module is 16 ' h4000,16 ' h4001,16 ' h4002.
The access method of the plug-in RAM Interface data access system based on 8051 single-chip microcomputers, the Wishbone Master modules are converted to the address of 8051 single-chip microcomputers, data and read-write enable signal the Wishbone bus signals of standard, And pass through Wishbone bus access fifo modules, register module, RAM module and fifo module, register module and RAM The temporary register of module three respectively;External equipment causes the data variation of fifo module and register module, produces interruption When, during interruption control module is carried out to 8051 single-chip microcomputers again at the end of interrupt signal is deferred into 8051 single-chip microcomputer read commands pair It is disconnected.
8051 single-chip microcomputer sends the address read operation life of fifo module, register module and any module of RAM module Respective modules are made, after certain delay, respective modules data are read into corresponding temporary register;8051 monolithic afterwards Temporary register address read operation order corresponding to machine transmission, the data of corresponding temporary register are read in into 8051 single-chip microcomputers.
When reading fifo module data, 8051 single-chip microcomputers first send out 16 ' h1000 addresses read operation orders, prolong by certain Lag, fifo module data are read into fifo module data temporary register.16 ' h4000 addresses read operation lives are retransmited afterwards Order, the data of fifo module data temporary register are read in into 8051 single-chip microcomputers.
When reading register module data, 8051 single-chip microcomputers first send out 16 ' h2000 addresses read operation orders, by certain After delay, register module data are read into register module data temporary register.The reading of 16 ' h4001 addresses is retransmited afterwards Operational order, the data of register module data temporary register are read in into 8051 single-chip microcomputers.
When reading RAM module data, 8051 single-chip microcomputers first send out 16 ' h3000 addresses read operation orders, by certain delay Afterwards, RAM module data are read into RAM module data temporary register.16 ' h4002 addresses read operation orders are retransmited afterwards, will The data of RAM module data temporary register read in 8051 single-chip microcomputers.
It is likely to be interrupted at any time to interrupt in view of 8051 single-chip microcomputers, and then performs the read operation order for reading new data, The read operation order that may cause to be interrupted can not correctly read data after interrupt routine is finished.The present invention interrupts control Interrupt signal can be deferred to reading by molding block when 8051 single-chip microcomputers have also been not carried out a complete read operation order pair Order is interrupted to 8051 single-chip microcomputers again at the end of.

Claims (5)

  1. A kind of 1. plug-in RAM Interface data access system based on 8051 single-chip microcomputers, it is characterised in that:Including 8051 single-chip microcomputers, Wishbone master modules, fifo module, register module, RAM module, interruption control module and external equipment;By described in Interface of the plug-in RAM Interface of 8051 single-chip microcomputers as Wishbone bus protocols, 8051 single-chip microcomputer are connected to Wishbone Master modules, the fifo module, register module and RAM module are connected to Wishbone by Wishbone buses Master modules, it is also associated with postponing control module between the Wishbone master modules and Wishbone buses, it is described External equipment is connected to fifo module and register module, the fifo module and register module by interruption control module with 8051 single-chip microcomputers are connected.
  2. 2. the plug-in RAM Interface data access system according to claim 1 based on 8051 single-chip microcomputers, it is characterised in that: The fifo module, register module and RAM module unified distribution Wishbone base address, register module and the RAM mould Block distributes multiple offset address.
  3. 3. the plug-in RAM Interface data access system according to claim 1 based on 8051 single-chip microcomputers, it is characterised in that: The fifo module, register module and RAM module further respectively have a temporary register, store respectively from fifo module, The data that register module and RAM module are read.
  4. 4. the plug-in RAM Interface data access system according to claim 3 based on 8051 single-chip microcomputers, it is characterised in that: The temporary register unified distribution Wishbone base address of the fifo module, register module and RAM module.
  5. 5. the access of the plug-in RAM Interface data access system based on 8051 single-chip microcomputers according to claim 1,2,3 or 4 Method, it is characterised in that:The Wishbone master modules are by the address of 8051 single-chip microcomputers, data and read-write enable signal The Wishbone bus signals of standard are converted to, and pass through Wishbone bus access fifo modules, register module, RAM moulds Block and fifo module, the temporary register of register module and RAM module three respectively;External equipment cause fifo module and The data variation of register module, when producing interruption, interrupt signal is deferred to 8051 single-chip microcomputers, read command by interruption control module 8051 single-chip microcomputers are interrupted again at the end of, it is implemented as:8051 single-chip microcomputer sends fifo module, register The address read operation order of module and any module of RAM module is to respective modules, after certain delay, respective modules data It is read into corresponding temporary register;Temporary register address read operation order corresponding to 8051 single-chip microcomputers transmission afterwards, will be right The data for the temporary register answered read in 8051 single-chip microcomputers;Now, interrupt signal is interrupted to 8051 single-chip microcomputers again.
CN201510291300.4A 2015-06-01 2015-06-01 A kind of plug-in RAM Interface data access system based on 8051 single-chip microcomputers Active CN104915301B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510291300.4A CN104915301B (en) 2015-06-01 2015-06-01 A kind of plug-in RAM Interface data access system based on 8051 single-chip microcomputers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510291300.4A CN104915301B (en) 2015-06-01 2015-06-01 A kind of plug-in RAM Interface data access system based on 8051 single-chip microcomputers

Publications (2)

Publication Number Publication Date
CN104915301A CN104915301A (en) 2015-09-16
CN104915301B true CN104915301B (en) 2017-11-10

Family

ID=54084378

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510291300.4A Active CN104915301B (en) 2015-06-01 2015-06-01 A kind of plug-in RAM Interface data access system based on 8051 single-chip microcomputers

Country Status (1)

Country Link
CN (1) CN104915301B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116737601B (en) * 2023-08-11 2023-11-17 深圳市航顺芯片技术研发有限公司 Method, device and storage medium for expanding peripheral registers into system RAM

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2886683Y (en) * 2006-04-17 2007-04-04 四川大学 SoC chip with multimedia and network processing function
CN1975635A (en) * 2006-12-28 2007-06-06 陈曦 Enhanced wishbone on-chip bus for leading-in bus code
CN101000593A (en) * 2006-06-23 2007-07-18 华为技术有限公司 Device and method for implementing communication between processes
CN101615287A (en) * 2009-08-06 2009-12-30 黄以华 A kind of image processing IP core based on the Wishbone bus
CN102591817A (en) * 2011-12-30 2012-07-18 中山大学 Multi-bus bridge controller and implementing method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8169839B2 (en) * 2009-02-11 2012-05-01 Stec, Inc. Flash backed DRAM module including logic for isolating the DRAM

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2886683Y (en) * 2006-04-17 2007-04-04 四川大学 SoC chip with multimedia and network processing function
CN101000593A (en) * 2006-06-23 2007-07-18 华为技术有限公司 Device and method for implementing communication between processes
CN1975635A (en) * 2006-12-28 2007-06-06 陈曦 Enhanced wishbone on-chip bus for leading-in bus code
CN101615287A (en) * 2009-08-06 2009-12-30 黄以华 A kind of image processing IP core based on the Wishbone bus
CN102591817A (en) * 2011-12-30 2012-07-18 中山大学 Multi-bus bridge controller and implementing method thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于FPGA的8051SOC设计;农英雄;《《中国优秀硕士学位论文全文数据库 信息科技辑》》;20061115;15-50 *
基于Wishbone总线的8位MCU的设计与验证;王巍巍;《中国优秀硕士学位论文全文数据库 信息科技辑》;20111215;18-49 *

Also Published As

Publication number Publication date
CN104915301A (en) 2015-09-16

Similar Documents

Publication Publication Date Title
CN206557760U (en) A kind of hard disk of compatible with PCI E interface and SATA interface
CN104714907B (en) A kind of pci bus is converted to ISA and APB bus design methods
CN105512084A (en) Zynq platform data interaction device
CN205862322U (en) A kind of SPI/I2C interface convertor based on FPGA
CN203812236U (en) Data exchange system based on processor and field programmable gate array
CN108153686A (en) Multiplex roles CPU module
CN107194257A (en) A kind of trusted system based on domestic TCM chips
CN105786741A (en) SOC high-speed low-power-consumption bus and conversion method
CN108595356A (en) A kind of hard disk backboard and method of compatible RSSD hard disks and NVMe hard disks
CN105118441A (en) LED display screen control card for asynchronous control system
CN104915301B (en) A kind of plug-in RAM Interface data access system based on 8051 single-chip microcomputers
CN202282789U (en) SOE (SERCOS OVER EtherCAT) communication conversion card for servo driver
CN207780763U (en) Multiplex roles CPU module
CN202721696U (en) Ethernet switch hardware structure
CN203366045U (en) A digital quantity input-output device based on a CAN bus
CN102799549A (en) Multi-source-port data processing method and device
CN101452439A (en) CompactPCI communication card
CN205809774U (en) A kind of server and the server master board of inside thereof
CN203102274U (en) High speed data transmission connector
CN208905017U (en) A kind of communication master-salve station mainboard based on Cortex-M3 processor
CN206258694U (en) Digital channel machine interface circuit based on CPLD
CN108628793A (en) SPI communication circuit and method
CN107423249A (en) It is a kind of based on AHB lite bus protocols from end bus control unit design method
CN203838530U (en) Apparatus for sharing addresses of multiple identical I2C devices
CN202206415U (en) Gateway for communication conversion between Ethernet CAT (Ethernet for Control and Automation Technology) protocol and Profibus-DP (Process Field Bus-Decentralized Periphery) protocol

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20190322

Address after: 250100 Room 2710, S01 Building, No. 1036 Tidal Road, Jinan Hi-tech District, Shandong Province

Patentee after: Jinan Langchao Yueda Investment Management Co., Ltd.

Address before: No. 1036, Shandong high tech Zone wave road, Ji'nan, Shandong

Patentee before: Inspur Group Co., Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190627

Address after: 236000 South side of Qinghe Road in Wenfeng Bangkuixing Community, Yingzhou District, Fuyang City, Anhui Province

Patentee after: Anhui Wave Sincere Information Technology Co., Ltd.

Address before: 250100 Room 2710, S01 Building, No. 1036 Tidal Road, Jinan Hi-tech District, Shandong Province

Patentee before: Jinan Langchao Yueda Investment Management Co., Ltd.

TR01 Transfer of patent right