CN105528300B - A kind of DDR Memory Controller Hub and its access monitoring method - Google Patents

A kind of DDR Memory Controller Hub and its access monitoring method Download PDF

Info

Publication number
CN105528300B
CN105528300B CN201410515709.5A CN201410515709A CN105528300B CN 105528300 B CN105528300 B CN 105528300B CN 201410515709 A CN201410515709 A CN 201410515709A CN 105528300 B CN105528300 B CN 105528300B
Authority
CN
China
Prior art keywords
order
premonitoring
data flow
write
register
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
CN201410515709.5A
Other languages
Chinese (zh)
Other versions
CN105528300A (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.)
Actions Technology Co Ltd
Original Assignee
Juxin (zhuhai) Science & Technology 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 Juxin (zhuhai) Science & Technology Co Ltd filed Critical Juxin (zhuhai) Science & Technology Co Ltd
Priority to CN201410515709.5A priority Critical patent/CN105528300B/en
Publication of CN105528300A publication Critical patent/CN105528300A/en
Application granted granted Critical
Publication of CN105528300B publication Critical patent/CN105528300B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a kind of DDR Memory Controller Hub and its access monitoring method, this method comprises: receiving the order for carrying out autonomous device, the order is parsed and is executed;The data flow being written in the data flow and/or order implementation procedure read in the content and/or order implementation procedure of field is set in monitoring order;According to the premonitoring object configured in the register of DDR Memory Controller Hub in advance, when determining that the content for setting field in the order monitored and/or the data flow of reading and/or the data flow of write-in belong to premonitoring object, information relevant to order execution is recorded in a register.The present invention may be implemented to be monitored the corresponding order implementation procedure of premonitoring object, obtain the relevant information of order execution, to greatly facilitate scheme d ebug and IC verifying.

Description

A kind of DDR Memory Controller Hub and its access monitoring method
Technical field
The present invention relates to technical field of integrated circuits more particularly to a kind of DDR Memory Controller Hub and its access monitoring method.
Background technique
With the rapid development of smart phone and tablet computer, modern SOC (System on Chip, system level chip) Scale is increasing, and built-in hardware acceleration unit is more and more.It is verified at Integrated circuit IC (Integrated Circuit) Some problems are frequently encountered with the solution development stage, need to judge to be software issue or hardware problem.
With the raising of the complexity of SOC system, the promotion of corresponding debug means also becomes necessary.System at present Debug means can only monitor some register information/instruction and datas in CPU, for other CPU inside SOC Main equipment master in addition lacks effectively accurate debug means.If debug means are not caught up with, on higher level Application will be helpless.
And DDR (DDR SDRAM, Double Data Rate synchronous DRAM) Memory Controller Hub, inside a SOC Device (including CPU and almost all of hardware acceleration unit) is substantially all the slave equipment to be accessed (from equipment), as The storage center of program and data inside IC, importance are self-evident.Simultaneously, it is contemplated that essentially all of number in SOC According to will be interacted by DDR Memory Controller Hub and outside DDR device.The access to DDR Memory Controller Hub how is utilized Debug and IC is facilitated to verify, there is presently no corresponding solutions.
Summary of the invention
The present invention provides a kind of DDR Memory Controller Hub and its access monitoring method, passes through the access to DDR Memory Controller Hub It is monitored, greatly facilitates debug and IC verifying.
The present invention provides a kind of access monitoring method of DDR Memory Controller Hub, comprising:
The order for carrying out autonomous device is received, the order is parsed and executed;
The data flow read in the content and/or order implementation procedure of field is set in monitoring order and/or order executes The data flow being written in the process;
According to the premonitoring object configured in the register of DDR Memory Controller Hub in advance, determine in the order monitored When the content and/or the data flow of reading and/or the data flow of write-in of setting field belong to premonitoring object, remember in a register Record information relevant to order execution.
Preferably, it when the premonitoring object configured in a register in advance is the address of premonitoring, is set in monitoring order The content of field, specifically includes:
The content of field relevant to address in monitoring order;
When determining that the content for setting field in the order monitored belongs to premonitoring object, record and the life in a register It enables and executes relevant information, specifically include:
If the address that the order is directed toward belongs to the address of premonitoring, record in a register relevant to order execution Information;
Or
The premonitoring object that configures in a register is the address of premonitoring, the action type of premonitoring and/or pre- in advance When the main equipment of monitoring, the content of field is set in monitoring order, is specifically included:
Monitor field relevant to access address in order, instruction action type field and/or master identification field Content;
When determining that the content for setting field in the order monitored belongs to premonitoring object, record and the life in a register It enables and executes relevant information, comprising:
According to the content of field relevant to access address in order, determines the address that the order is directed toward, grasped according to instruction The content for making type field, which determines the action type of the order and/or determined according to the content of master identification field, sends the life The main equipment of order;
If the address that the order is directed toward belongs to the address of premonitoring, the action type of the order is the action type of premonitoring And/or when sending main equipment of the main equipment of the order for premonitoring, letter relevant to order execution is recorded in a register Breath.
Preferably, described to record information relevant to order execution in a register, it specifically includes:
It will be in field relevant to access address in the order, the field for indicating action type, master identification field Appearance is recorded in register.
Preferably, the premonitoring object configured in a register in advance is the data flow of reading and/or the write-in of premonitoring When characteristic information, the data flow of reading and/or the data flow of write-in are monitored;
When determining that the data flow of reading monitored and/or the data flow of write-in belong to premonitoring object, in a register Information relevant to order execution is recorded, is specifically included:
Determine that the feature of the data flow of the reading and/or write-in that monitor meets the number of reading and/or the write-in of premonitoring When according to characteristic information, by the data flow of the reading monitored and/or write-in, reading and/or write instructions information, read and/or The master identification of the data flow of write-in is recorded in register.
Preferably, it when the premonitoring object configured in a register in advance is the main equipment of premonitoring, is set in monitoring order Determine the content of field and/or the data flow of reading and/or the data flow of write-in, specifically include:
The content of relevant to access address field and master identification field in monitoring order, and monitor the data of reading Stream and/or the data flow of write-in;
It determines and sets the content of field and/or the data flow of reading and/or the data flow category of write-in in the order monitored When premonitoring object, information relevant to order execution is recorded in a register, is specifically included:
Determine that the main equipment for sending the order is that the master of premonitoring sets according to the content of the master identification field in order When standby, determine that the main equipment write request and/or read request are accessed according to the content of field relevant to access address in order Data volume, according to the data flow of the data flow of reading and/or write-in determine main equipment actual read number according to and/or write data and produce Raw data volume, by data volume and actual read number that master devices request write request and/or the read request are accessed according to and/or write number It is recorded in register according to the data volume of generation.
Preferably, it when the premonitoring object configured in a register in advance further includes enable time, is set in monitoring order The content of field and/or the data flow of reading and/or the data flow of write-in, specifically include:
When determining arrival enable time point, start field relevant to access address and master identification word in monitoring order The content of section, and monitor the data flow of reading and/or the data flow of write-in.
Preferably, in a register after record information relevant to order execution, further includes:
Interrupt signal is sent to central processor CPU, notice CPU is read reads holding with the order for record from register The relevant information of row.
The present invention also provides a kind of DDR Memory Controller Hub, comprising:
Write data channel is used for transmission the data flow of main equipment transmission;
Data channel is read, is used for data stream transmitting to main equipment;
Command analysis execution module is parsed and is executed to the order for receiving the order for carrying out autonomous device, life It enables reading data flow in implementation procedure and is sent to corresponding main equipment, or the data that main equipment is sent by reading data channel Corresponding address is written by write data channel in stream;
The register of DDR Memory Controller Hub, for storing preconfigured premonitoring object;
DDR Memory control monitoring unit, connect with the register of DDR Memory Controller Hub, executes mould with command analysis respectively Block, write data channel are connected with data channel is read, and the content of field is set in the order of monitoring command analysis execution module parsing And/or the data flow being written in the data flow and/or write data channel that read in data channel is read, according to preparatory DDR memory control The premonitoring object configured in the register of device processed determines the number of content and/or reading that field is set in the order monitored When belonging to premonitoring object according to the data flow of stream and/or write-in, information relevant to order execution is recorded in a register.
Preferably, when the premonitoring object configured in a register in advance is the address of premonitoring, the monitoring of DDR Memory control Unit monitoring enables the content of setting field in the order of parsing execution module parsing, specifically includes:
The content of field relevant to address in monitoring order;
When DDR Memory control monitoring unit determines that the content for setting field in the order monitored belongs to premonitoring object, Information relevant to order execution is recorded in a register, is specifically included:
If the address that the order is directed toward belongs to the address of premonitoring, record in a register relevant to order execution Information;Or
The premonitoring object that configures in a register is the address of premonitoring, the action type of premonitoring and/or pre- in advance When the main equipment of monitoring, DDR Memory control monitoring unit, which monitors, sets field in the order of command analysis execution module parsing Content specifically includes:
Monitoring order in field relevant to access address content, monitoring order in indicate action type field and/or The content of master identification field;
When DDR Memory control monitoring unit determines that the content for setting field in the order monitored belongs to premonitoring object, Information relevant to order execution is recorded in a register, comprising:
According to the content of field relevant to access address in order, determines the address that the order is directed toward, grasped according to instruction The content for making type field determines the action type of the order and/or determines the master for sending the order according to master identification field Equipment;
If the address that the order is directed toward belongs to the address of premonitoring, the action type of the order is the action type of premonitoring And/or when sending main equipment of the main equipment of the order for premonitoring, letter relevant to order execution is recorded in a register Breath.
Preferably, the premonitoring object configured in a register in advance is the data flow of reading and/or the write-in of premonitoring When characteristic information, the data flow of data flow and/or write-in that the monitoring of DDR Memory control monitoring unit is read;
DDR Memory control monitoring unit determines that the data flow of reading monitored and/or the data flow of write-in belong to premonitoring When surveying object, information relevant to order execution is recorded in a register, is specifically included:
Determine that the feature of the data flow of the reading and/or write-in that monitor meets the number of reading and/or the write-in of premonitoring When according to characteristic information, by the data flow of the reading monitored and/or write-in, reading and/or write instructions information, read and/or The master identification of the data flow of write-in is recorded in register.
Preferably, when the premonitoring object configured in a register in advance is the main equipment of premonitoring, DDR Memory control prison The content of field and/or the data flow of reading are set in the order of control unit monitoring command analysis execution module parsing and/or are write The data flow entered, specifically includes:
The content of relevant to access address field and master identification field in monitoring order, and monitor the data of reading Stream and/or the data flow of write-in;
DDR Memory control monitoring unit, which determines, sets the content of field and/or the data flow of reading in the order monitored And/or the data flow of write-in records information relevant to the order executions, specifically packet when belonging to premonitoring object in a register It includes:
Determine that the main equipment for sending the order is that the master of premonitoring sets according to the content of the master identification field in order When standby, determine that the main equipment write request and/or read request are accessed according to the content of field relevant to access address in order Data volume, according to the data flow of the data flow of reading and/or write-in determine main equipment actual read number according to and/or write data and produce Raw data volume, by data volume and actual read number that master devices request write request and/or the read request are accessed according to and/or write number It is recorded in register according to the data volume of generation.
Preferably, when the premonitoring object configured in a register in advance further includes enable time, the monitoring of DDR Memory control The content of field and/or the data flow of reading and/or the data flow of write-in are set in unit monitoring order, is specifically included:
When determining arrival enable time point, start field relevant to access address and master identification word in monitoring order The content of section, and monitor the data flow of reading and/or the data flow of write-in.
Preferably, after DDR Memory control monitoring unit records information relevant to order execution in a register, also For:
Interrupt signal is sent to central processor CPU, notice CPU is read reads holding with the order for record from register The relevant information of row.
Using DDR Memory Controller Hub provided by the invention and its access monitoring method, has the advantages that and pass through prison It surveys in order and sets the content of field and/or the data flow of reading and/or the data flow of write-in, may be implemented to premonitoring object Corresponding order implementation procedure is monitored, and the relevant information of order execution is obtained, to greatly facilitate scheme d ebug It is verified with IC.
Detailed description of the invention
Fig. 1 is the access monitoring method flow chart of DDR Memory Controller Hub of the present invention;
Fig. 2 is the access monitoring method flow chart of DDR Memory Controller Hub in the embodiment of the present invention 1;
Fig. 3 is the access monitoring method flow chart of DDR Memory Controller Hub in the embodiment of the present invention 2;
Fig. 4 is a kind of structure chart of DDR Memory Controller Hub provided in an embodiment of the present invention.
Specific embodiment
DDR Memory Controller Hub provided by the invention and its access monitoring method are carried out more with reference to the accompanying drawings and examples It explains in detail.
The embodiment of the present invention provides a kind of access monitoring of Double Data Rate synchronous DRAM DDR Memory Controller Hub Method, as shown in Figure 1, comprising:
Step 101, the order for carrying out autonomous device is received, the order is parsed and executed;
Inside large-scale SOC system, the order command format inside DDR Memory Controller Hub has unified order lattice Formula, it is long that address, read-write type, master identification Master ID, read-write data are contained inside every command prompt CMD Degree etc. may be implemented to read corresponding data flow from DDR memory device or to DDR by parsing the command and execute Corresponding data flow is written in memory device.
Step 102, set in monitoring order in the content and/or order implementation procedure of field the data flow that reads and/or The data flow being written in order implementation procedure;
As previously mentioned, the order command format inside DDR Memory Controller Hub has a unified command format, every Address (can be initial address), read-write type, master identification Master ID, read-write are contained inside command prompt CMD Data length etc., therefore the content that field can be set from order obtains the address information of this command access, is read operation Or which main equipment write operation and access DDR Memory Controller Hub are, pass through the number of data flow and/or write-in that monitoring is read According to stream, may be implemented to be monitored the data flow that order generates.
Step 103, according to the premonitoring object configured in the register of DDR Memory Controller Hub in advance, determination is monitored Order in set the content of field and/or when the data flow of reading and/or the data flow of write-in belong to premonitoring object, posting Information relevant to order execution is recorded in storage.
The embodiment of the present invention increases monitoring function in DDR Memory Controller Hub, can according to need configuration premonitoring Object, so that obtaining order relevant to the object executes relevant information, so as to implementation debug and IC verifying.
When specifically carrying out the configuration of premonitoring object, the one or more premonitoring objects of configuration, realization pair can according to need Certain monitoring specifically accessed is also configurable to the data requested access to for a period of time and the data volume actually generated Monitoring can such as configure premonitoring master identification, realize the monitoring to some main equipment order executive condition, can configure pre- The address information of monitoring realizes the monitoring to certain address space access, can also configure premonitoring data characteristic information etc., real Now to the monitoring etc. of certain specific data streams, the several preferred embodiments of the present invention are given below.
Embodiment 1
The embodiment of the present invention sets the content of field by monitoring in order, for realizing what is specifically accessed for certain Monitoring.
Can according to master id field/origing address field (OAF)/read-write data length/read-write type field in order come Further refinement trigger recording order executes the condition of relevant information, once qualified command is triggered, DDR memory Controller can generate interruption to CPU, and the command is not used as the synchronizing information of trigger condition to registering register It is referred to inside register for debug.
The present embodiment is that the triggering mode trigger recording order based on address stream executes relevant information.
For the triggering mode of address stream, firstly, the address information to be monitored is configured in the register of DDR controller, During command analysis, according to the content of field relevant to address in order (such as initial address and read-write data length), Once the order be directed toward address and required monitoring address matching, interruptions will be triggered, in a register record and The order executes relevant information, this function can be extended to the monitoring to certain a piece of address area by mask.
According to another preferred embodiment, trigger condition can also be further refined, is such as wanted in addition to configuring in a register The address information of monitoring can also further configure the action type of premonitoring and/or the main equipment of premonitoring, then solve in order During analysis, field relevant to access address in order, instruction action type field and/or master identification field are monitored Content;According to the content of field relevant to access address in order, the address that the order is directed toward is determined, class is operated according to instruction The content of type-word section, which determines the action type of the order and/or determined according to the content of master identification field, sends the order Main equipment;If the address that the order is directed toward belongs to the address of premonitoring, the action type of the order is the action type of premonitoring And/or when sending main equipment of the main equipment of the order for premonitoring, letter relevant to order execution is recorded in a register Breath.
The description that the present embodiment realizes the register monitored to certain specific access is given as shown in table 1:
Table 1
If Fig. 2 is the access monitoring flow chart that the embodiment of the present invention realizes DDR Memory Controller Hub, following step is specifically included It is rapid:
Step 201, the internal storage access address Monitor_Addr of the configuration monitoring and Mask of monitored address in a register Signal Monitor_Addr_Mask;
Step 202, configuration address monitors enabled Monitor_Ctrl in a register, enables address monitoring;
Step 203, it registers and interrupts to CPU;
Step 204, operation needs the program of debug, which is the program for needing to monitor, which can access DDR Memory Controller Hub, DDR controller can execute corresponding order and read-write data flow, during command analysis, monitoring order In field relevant to access address content;
Step 205, judge whether to generate interruption, with specific reference to the content of field relevant to access address in order, really The address that the fixed order is directed toward;If the address that the order is directed toward belongs to the address of premonitoring, determine and generate interruption, executes step 206, if it is not, return step 204 continues to run the program for needing debug;
The premonitoring address of configuration of the embodiment of the present invention can be an address, be also possible to multiple addresses, in configuration Premonitoring address is multiple addresses, can be only one address of configuration, according to the address according to setting Rule Extended as one section of ground Location such as removes minimum n of the address corresponding address range when refilling.Such as such as a specific address 0x10010012, then corresponding address range is that last 4bit is just extended to the address of a range to after going 0x10010010~0x1001001f.
It is of course also possible to which two registers are arranged, one is used to be arranged initial address, and one for being arranged end address Limit the address range of premonitoring.
The Monitor_Addr of configuration of the embodiment of the present invention is an address, and configuration Monitor_Addr_Mask represents logical Cross in shielding Monitor_Addr rear n realize the monitoring of a sector address range.
Step 206, into monitoring interrupt service routine, i.e., information relevant to order execution is recorded in a register;
Preferably, by field relevant to access address in the order, the field for indicating action type, master identification word The content record of section is into register, it is, of course, also possible to which recording the order executes relevant other contents.
Step 207, CPU reads the information relevant to order execution that record is read from register.
Embodiment 2
The data flow of data flow and/or write-in that the embodiment of the present invention is read by monitoring, for realizing for certain spy The monitoring of fixed access.
The present embodiment is that the triggering mode trigger recording order based on data flow executes relevant information.
For the triggering mode of data flow, equally, the data characteristics to be monitored first is configured in the register of DDR controller Information can such as configure the data stream monitoring to certain specific type pattern, once monitoring data stream and required monitoring Data Matching, then interruption will be triggered, this function can be extended to by mask and be supervised to certain specific pattern Control, and can specify to trigger when read operation or write operation and interrupt.
Read and/or the data flow of write-in in include master identification, specifically, it is determined that the reading that monitors and/or writing When the feature of the data flow entered meets the data characteristic information of reading and/or write-in of premonitoring, by the reading monitored and/or The master identification of the data flow of write-in, reading and/or write instructions information, reading and/or the data flow of write-in, which is recorded, posts In storage.
The description that the present embodiment realizes the register monitored to certain specific access is given as shown in table 2.
Table 2
If Fig. 3 is the access monitoring flow chart that the embodiment of the present invention realizes DDR Memory Controller Hub, following step is specifically included It is rapid:
Step 301, the Mask signal of the internal storage data Monitor_Data of configuration monitoring and monitoring data in a register Monitor_Addr_Mask;
Step 302, configuration data monitors enabled Monitor_Ctrl in a register, enables data monitoring;
Step 303, it registers and interrupts to CPU;
Step 304, operation needs the program of debug, which is the program for needing to monitor, which can access DDR Memory Controller Hub, DDR controller can execute corresponding order and read-write data flow, in data reading/writing process, prison Survey the data flow of the data flow and/or write-in that read;
Step 305, judge whether to generate interruption, the feature of the specific data flow for determining the reading and/or write-in that monitor Whether the data characteristic information of reading and/or the write-in of premonitoring is met;If meeting, determine and generate interruption, executes step 306, If it is not, return step 304 continues to run the program for needing debug;
The Monitor_Data of configuration of the embodiment of the present invention represents certain specific data type, Monitor_Addr_Mask Representative is extended to by mask is monitored the data flow of the type.
Step 306, into monitoring interrupt service routine, i.e., information relevant to order execution is recorded in a register;
Preferably, by the data flow of the reading monitored and/or write-in, reading and/or write instructions information, read and/ Or the master identification of the data flow of write-in is recorded in register, it is, of course, also possible to which it is relevant other to record order execution Content.
Step 307, CPU reads the information relevant to order execution that record is read from register.
The access monitoring of DDR Memory Controller Hub provided in an embodiment of the present invention is preferably applied to AXI (Advanced EXtensible Interface) bus system, i.e., AXI interface communication is used between DDR Memory Controller Hub and each main equipment. It is of course also possible to be applied to other bus systems.
It should be noted that due in bus protocol AXI order and data access be separation, so, address stream Address and data flow data cannot become trigger condition simultaneously, and trigger condition at most can only be monitoring address+master identification Master ID+ read-write type write/read or the data flow data+ master identification master ID+ read-write type of monitoring write/read.When being triggered using address, master identification master ID+ reads and writes data length+read-write type These information of write/read can be after condition triggering inside reactionary slogan, anti-communist poster to register;When being triggered using data, only master ID and write/read information meeting reactionary slogan, anti-communist poster is into register.
Embodiment 3
The embodiment of the present invention configures the main equipment of premonitoring in a register in advance, then life is monitored during command analysis The content of relevant to access address field and master identification field in order is monitored during the read/write of data and is read The data flow of the data flow and/or write-in that take;It is determined according to the content of the master identification field in order and sends the order When main equipment is the main equipment of premonitoring, determine that triggering is interrupted, the content according to field relevant to access address in order is true The data volume that fixed main equipment write request and/or the read request are accessed, the data flow according to the data flow of reading and/or write-in are true Fixed main equipment actual read number evidence and/or the data volume for writing data generation, by the master devices request write request and/or read request institute Data volume and the actual read number evidence of access and/or the data volume for writing data generation are recorded in register, it is, of course, also possible to record The order executes relevant other contents.
Preferably, it also configures enable time in a register in advance, the content and/or reading of field is set in monitoring order Data flow and/or write-in data flow, specifically include:
When determining arrival enable time point, start field relevant to access address and master identification word in monitoring order The content of section, and monitor the data flow of reading and/or the data flow of write-in.
The monitoring counted to the internal storage access of some period may be implemented in the embodiment of the present invention, specifically can will be each The read-write requests data volume that a Master is issued is added in one group of register, while the read-write data volume that will actually generate It is added in the different register of another set, user can pass through reading when system is not written and read DDR The mode of I/O register observes each Master read-write requests data volume and actually the data volume that generates compares, to determine Whether the data path of each Master has exception.
It is described as shown in table 3 for the information register for all acess control values.
Table 3
The statistical function of monitoring is only needed to make to can control register Monitor_Stat_En in the case of necessary, Then when system is not written and read DDR, the read-write data accumulation state of each Master is observed by register ?.
The embodiment of the present invention can be realized simultaneously the monitoring to certain specific access or the system to some period amount of access Meter, it is similar that a simple logic analyser is mounted with inside SOC, it can to internal system certain to DDR Memory control The access of device is monitored and triggers, and the requirements for access information of each Master and practical yield are counted, will It triggers above obtained access information and statistical value feedback to the control register of system, so that progress debug and IC be assisted to test Card.
As shown in figure 4, the embodiment of the present invention provides one kind based on ARM (Advanced Reduced Instruction Set machine, Advanced RISC Machine) framework and with access monitoring function DDR Memory Controller Hub structural block diagram, comprising:
Write data channel is used for transmission the data flow of main equipment transmission;
Data channel is read, is used for data stream transmitting to main equipment;
Command analysis execution module is parsed and is executed to the order for receiving the order for carrying out autonomous device, life It enables reading data flow in implementation procedure and is sent to corresponding main equipment, or the data that main equipment is sent by reading data channel Corresponding address is written by write data channel in stream;
The register of DDR Memory Controller Hub, for storing preconfigured premonitoring object;
DDR Memory control monitoring unit passes through the interface and DDR Memory Controller Hub of the register of DDR Memory Controller Hub Register connection is connect with command analysis execution module, write data channel and reading data channel respectively, and monitoring command analysis executes The content of field is set in the order of module parsing and/or is read in the data flow and/or write data channel that read in data channel The data flow of write-in determines the order monitored according to the premonitoring object configured in the register of preparatory DDR Memory Controller Hub When the content and/or the data flow of reading and/or the data flow of write-in of middle setting field belong to premonitoring object, in a register Record information relevant to order execution.
DDR Memory control monitoring unit monitoring data includes: information (such as address information) in AXI order path writes road Diameter data information reads three road signal of path data information, and monitored results is embodied on the register of DDR controller.
In Fig. 4, multiple main equipments respectively by different AXI interfaces respectively with order arbitration unit, write data channel and Data channel connection is read, the sequence that executes of order is determined by order arbitration unit, and by ordering the channel FIFO to be input to order Resolution executing is parsed and is executed order, in order implementation procedure, through DDR PHY module from DDR memory device It reads data and is sent to corresponding main equipment, or the data for sending main equipment by write data channel by reading data channel Stream is written in DDR memory device.The information that DDR Memory control monitoring unit obtains monitoring, passes through DDR Memory Controller Hub The interface of register is written in register.
Preferably, when the premonitoring object configured in a register in advance is the address of premonitoring, the monitoring of DDR Memory control Unit monitoring enables the content of setting field in the order of parsing execution module parsing, specifically includes:
The content of field relevant to address in monitoring order;
When DDR Memory control monitoring unit determines that the content for setting field in the order monitored belongs to premonitoring object, Information relevant to order execution is recorded in a register, is specifically included:
If the address that the order is directed toward belongs to the address of premonitoring, record in a register relevant to order execution Information;Or
The premonitoring object that configures in a register is the address of premonitoring, the action type of premonitoring and/or pre- in advance When the main equipment of monitoring, DDR Memory control monitoring unit, which monitors, sets field in the order of command analysis execution module parsing Content specifically includes:
Monitoring order in field relevant to access address content, monitoring order in indicate action type field and/or The content of master identification field;
When DDR Memory control monitoring unit determines that the content for setting field in the order monitored belongs to premonitoring object, Information relevant to order execution is recorded in a register, comprising:
According to the content of field relevant to access address in order, determines the address that the order is directed toward, grasped according to instruction The content for making type field determines the action type of the order and/or determines the master for sending the order according to master identification field Equipment;
If the address that the order is directed toward belongs to the address of premonitoring, the action type of the order is the action type of premonitoring And/or when sending main equipment of the main equipment of the order for premonitoring, letter relevant to order execution is recorded in a register Breath.
Preferably, the premonitoring object configured in a register in advance is the data flow of reading and/or the write-in of premonitoring When characteristic information, the data flow of data flow and/or write-in that the monitoring of DDR Memory control monitoring unit is read;
DDR Memory control monitoring unit determines that the data flow of reading monitored and/or the data flow of write-in belong to premonitoring When surveying object, information relevant to order execution is recorded in a register, is specifically included:
Determine that the feature of the data flow of the reading and/or write-in that monitor meets the number of reading and/or the write-in of premonitoring When according to characteristic information, by the data flow of the reading monitored and/or write-in, reading and/or write instructions information, read and/or The master identification of the data flow of write-in is recorded in register.
Preferably, when the premonitoring object configured in a register in advance is the main equipment of premonitoring, DDR Memory control prison The content of field and/or the data flow of reading are set in the order of control unit monitoring command analysis execution module parsing and/or are write The data flow entered, specifically includes:
The content of relevant to access address field and master identification field in monitoring order, and monitor the data of reading Stream and/or the data flow of write-in;
DDR Memory control monitoring unit, which determines, sets the content of field and/or the data flow of reading in the order monitored And/or the data flow of write-in records information relevant to the order executions, specifically packet when belonging to premonitoring object in a register It includes:
Determine that the main equipment for sending the order is that the master of premonitoring sets according to the content of the master identification field in order When standby, determine that the main equipment write request and/or read request are accessed according to the content of field relevant to access address in order Data volume, according to the data flow of the data flow of reading and/or write-in determine main equipment actual read number according to and/or write data and produce Raw data volume, by data volume and actual read number that master devices request write request and/or the read request are accessed according to and/or write number It is recorded in register according to the data volume of generation.
Preferably, when the premonitoring object configured in a register in advance further includes enable time, the monitoring of DDR Memory control The content of field and/or the data flow of reading and/or the data flow of write-in are set in unit monitoring order, is specifically included:
When determining arrival enable time point, start field relevant to access address and master identification word in monitoring order The content of section, and monitor the data flow of reading and/or the data flow of write-in.
Preferably, after DDR Memory control monitoring unit records information relevant to order execution in a register, also For:
Interrupt signal is sent to central processor CPU, notice CPU is read reads holding with the order for record from register The relevant information of row.
The scale of modern SOC is increasing, and the complexity of system is higher and higher, how quickly to find problem accurately, rapidly Debug shortens the solution development time, timely introduces product to the market, it appears particularly important.Scheme of the present invention for SOC Exploitation and debug have biggish practical significance.The embodiment of the present invention is rich by the way that accurate and function is added inside DDR controller Rich debug interface will greatly facilitate scheme d ebug and IC verifying.
Pervious system lacks effectively accurate debug means for other master of the inside SOC in addition to CPU.And It is single that the monitoring of DDR Memory control is added as the storage center of program and data inside IC in DDR Memory Controller Hub inside it Member greatly facilitates scheme d ebug and IC verifying, shortens the time of scheme d ebug, the method inside SOC just like putting Enter a simple logic analyser.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (13)

1. a kind of access monitoring method of Double Data Rate synchronous DRAM DDR Memory Controller Hub, which is characterized in that packet It includes:
The order for carrying out autonomous device is received, the order is parsed and executed;
The data flow and/or order implementation procedure read in the content and/or order implementation procedure of field is set in monitoring order The data flow of middle write-in;
According to the premonitoring object configured in the register of DDR Memory Controller Hub in advance, determines and set in the order monitored When the content of field and/or the data flow of reading and/or the data flow of write-in belong to premonitoring object, in a register record with The order executes relevant information;
Wherein, the premonitoring object includes some or all of in following:
The address of premonitoring;
The data flow characteristics information of reading and/or the write-in of premonitoring;
The main equipment of premonitoring;
The action type of premonitoring;
Enable time.
2. the method as described in claim 1, which is characterized in that the premonitoring object configured in a register in advance is premonitoring Address when, monitoring order in set field content, specifically include:
The content of field relevant to address in monitoring order;
When determining that the content for setting field in the order monitored belongs to premonitoring object, record is held with the order in a register The relevant information of row, specifically includes:
If the address that the order is directed toward belongs to the address of premonitoring, letter relevant to order execution is recorded in a register Breath;
Or
The premonitoring object configured in a register in advance is the action type and/or premonitoring of the address of premonitoring, premonitoring Main equipment when, monitoring order in set field content, specifically include:
The content of field relevant to access address, instruction action type field and/or master identification field in monitoring order;
When determining that the content for setting field in the order monitored belongs to premonitoring object, record is held with the order in a register The relevant information of row, comprising:
According to the content of field relevant to access address in order, the address that the order is directed toward is determined, class is operated according to instruction The content of type-word section, which determines the action type of the order and/or determined according to the content of master identification field, sends the order Main equipment;
If the address that the order is directed toward belongs to the address of premonitoring, the action type of the order be premonitoring action type and/ Or when sending main equipment of the main equipment of the order for premonitoring, information relevant to order execution is recorded in a register.
3. method according to claim 2, which is characterized in that described to record letter relevant to order execution in a register Breath, specifically includes:
By field relevant to access address in the order, the field for indicating action type, the content of master identification field note It records in register.
4. the method as described in claim 1, which is characterized in that the premonitoring object configured in a register in advance is premonitoring Reading and/or write-in data flow characteristics information when, monitor the data flow of reading and/or the data flow of write-in;
When determining that the data flow of reading monitored and/or the data flow of write-in belong to premonitoring object, record in a register Information relevant to order execution, specifically includes:
Determine that the feature of the data flow of the reading and/or write-in that monitor meets the data spy of reading and/or the write-in of premonitoring When reference ceases, by the data flow of the reading monitored and/or write-in, reading and/or write instructions information, reading and/or write-in The master identification of data flow be recorded in register.
5. the method as described in claim 1, which is characterized in that the premonitoring object configured in a register in advance is premonitoring Main equipment when, set the content of field and/or the data flow of reading and/or the data flow of write-in in monitoring order, it is specific to wrap It includes:
The content of relevant to access address field and master identification field in monitoring order, and monitor the data flow of reading And/or the data flow of write-in;
It is pre- to determine that the content that field is set in the order monitored and/or the data flow of reading and/or the data flow of write-in belong to When monitoring object, information relevant to order execution is recorded in a register, is specifically included:
When determining that the main equipment for sending the order is the main equipment of premonitoring according to the content of the master identification field in order, The data that main equipment write request and/or the read request are accessed are determined according to the content of field relevant to access address in order Amount determines main equipment actual read number evidence according to the data flow of the data flow of reading and/or write-in and/or writes the number of data generation According to amount, by data volume and actual read number that master devices request write request and/or the read request are accessed according to and/or write data and generate Data volume be recorded in register.
6. method as claimed in claim 5, which is characterized in that the premonitoring object configured in a register in advance further includes making When the energy time, the content of field and/or the data flow of reading and/or the data flow of write-in are set in monitoring order, is specifically included:
It determines when reaching enable time point, starts field relevant to access address and master identification field in monitoring order Content, and monitor the data flow of reading and/or the data flow of write-in.
7. the method as described in claim 1, which is characterized in that record in a register relevant to order execution information it Afterwards, further includes:
Interrupt signal is sent to central processor CPU, what notice CPU reading reading from register recorded executes phase with the order The information of pass.
8. a kind of DDR Memory Controller Hub characterized by comprising
Write data channel is used for transmission the data flow of main equipment transmission;
Data channel is read, is used for data stream transmitting to main equipment;
Command analysis execution module is parsed and is executed to the order, order is held for receiving the order for carrying out autonomous device Reading data flow and corresponding main equipment is sent to by reading data channel during row, or the data that main equipment is sent circulate It crosses write data channel and corresponding address is written;
The register of DDR Memory Controller Hub, for storing preconfigured premonitoring object;
DDR Memory control monitoring unit, connect with the register of DDR Memory Controller Hub, respectively with command analysis execution module, write Data channel with read data channel connect, monitoring command analysis execution module parsing order in setting field content and/or The data flow being written in the data flow and/or write data channel that read in data channel is read, according to preparatory DDR Memory Controller Hub The premonitoring object configured in register, determine set in the order that monitors the content of field and/or the data flow of reading and/ Or the data flow of write-in records information relevant to the order execution when belonging to premonitoring object in a register;
Wherein, the premonitoring object includes some or all of in following:
The address of premonitoring;
The data flow characteristics information of reading and/or the write-in of premonitoring;
The main equipment of premonitoring;
The action type of premonitoring;
Enable time.
9. DDR Memory Controller Hub as claimed in claim 8, which is characterized in that the premonitoring pair configured in a register in advance When as address for premonitoring, the monitoring of DDR Memory control monitoring unit enables in the order of parsing execution module parsing and sets field Content, specifically include:
The content of field relevant to address in monitoring order;
When DDR Memory control monitoring unit determines that the content for setting field in the order monitored belongs to premonitoring object, posting Information relevant to order execution is recorded in storage, is specifically included:
If the address that the order is directed toward belongs to the address of premonitoring, letter relevant to order execution is recorded in a register Breath;Or
The premonitoring object configured in a register in advance is the action type and/or premonitoring of the address of premonitoring, premonitoring Main equipment when, DDR Memory control monitoring unit monitor command analysis execution module parsing order in set field content, It specifically includes:
The content of field relevant to access address in monitoring order monitors and indicates that action type field and/or master are set in order The content of standby identification field;
When DDR Memory control monitoring unit determines that the content for setting field in the order monitored belongs to premonitoring object, posting Information relevant to order execution is recorded in storage, comprising:
According to the content of field relevant to access address in order, the address that the order is directed toward is determined, class is operated according to instruction The content of type-word section determines the action type of the order and/or determines that the master for sending the order sets according to master identification field It is standby;
If the address that the order is directed toward belongs to the address of premonitoring, the action type of the order be premonitoring action type and/ Or when sending main equipment of the main equipment of the order for premonitoring, information relevant to order execution is recorded in a register.
10. DDR Memory Controller Hub as claimed in claim 8, which is characterized in that the premonitoring pair configured in a register in advance As reading and/or write-in for premonitoring data flow characteristics information when, DDR Memory control monitoring unit monitoring read data Stream and/or the data flow of write-in;
DDR Memory control monitoring unit determines that the data flow of reading monitored and/or the data flow of write-in belong to premonitoring pair As when, record relevant to order execution information in a register, specifically include:
Determine that the feature of the data flow of the reading and/or write-in that monitor meets the data spy of reading and/or the write-in of premonitoring When reference ceases, by the data flow of the reading monitored and/or write-in, reading and/or write instructions information, reading and/or write-in The master identification of data flow be recorded in register.
11. DDR Memory Controller Hub as claimed in claim 8, which is characterized in that the premonitoring pair configured in a register in advance When as main equipment for premonitoring, is set in the order of DDR Memory control monitoring unit monitoring command analysis execution module parsing The content of field and/or the data flow of reading and/or the data flow of write-in, specifically include:
The content of relevant to access address field and master identification field in monitoring order, and monitor the data flow of reading And/or the data flow of write-in;
DDR Memory control monitoring unit determine set in the order that monitors the content of field and/or the data flow of reading and/or When the data flow of write-in belongs to premonitoring object, information relevant to order execution is recorded in a register, is specifically included:
When determining that the main equipment for sending the order is the main equipment of premonitoring according to the content of the master identification field in order, The data that main equipment write request and/or the read request are accessed are determined according to the content of field relevant to access address in order Amount determines main equipment actual read number evidence according to the data flow of the data flow of reading and/or write-in and/or writes the number of data generation According to amount, by data volume and actual read number that master devices request write request and/or the read request are accessed according to and/or write data and generate Data volume be recorded in register.
12. DDR Memory Controller Hub as claimed in claim 11, which is characterized in that the premonitoring configured in a register in advance When object further includes enable time, the content of field and/or the number of reading are set in the monitoring order of DDR Memory control monitoring unit According to stream and/or the data flow of write-in, specifically include:
It determines when reaching enable time point, starts field relevant to access address and master identification field in monitoring order Content, and monitor the data flow of reading and/or the data flow of write-in.
13. DDR Memory Controller Hub as claimed in claim 8, which is characterized in that DDR Memory control monitoring unit is in register After relevant to the order execution information of middle record, it is also used to:
Interrupt signal is sent to central processor CPU, what notice CPU reading reading from register recorded executes phase with the order The information of pass.
CN201410515709.5A 2014-09-29 2014-09-29 A kind of DDR Memory Controller Hub and its access monitoring method Active CN105528300B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410515709.5A CN105528300B (en) 2014-09-29 2014-09-29 A kind of DDR Memory Controller Hub and its access monitoring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410515709.5A CN105528300B (en) 2014-09-29 2014-09-29 A kind of DDR Memory Controller Hub and its access monitoring method

Publications (2)

Publication Number Publication Date
CN105528300A CN105528300A (en) 2016-04-27
CN105528300B true CN105528300B (en) 2019-01-08

Family

ID=55770542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410515709.5A Active CN105528300B (en) 2014-09-29 2014-09-29 A kind of DDR Memory Controller Hub and its access monitoring method

Country Status (1)

Country Link
CN (1) CN105528300B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107958438A (en) * 2017-12-06 2018-04-24 中国航空工业集团公司西安航空计算技术研究所 A kind of OpenGL creates display listing circuitry
JP6890153B2 (en) * 2019-06-10 2021-06-18 株式会社日立製作所 Storage device and backup method to set a peculiar event as a restore point
CN111091854A (en) * 2019-11-21 2020-05-01 中国航空工业集团公司西安航空计算技术研究所 Command processor and DDR read-write access circuit
CN111984562B (en) * 2020-09-07 2022-05-10 苏州盛科通信股份有限公司 Method for controlling burst access to register, electronic device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050091028A1 (en) * 2003-10-22 2005-04-28 Takahiro Kondo Simulator and simulation method
CN101068260A (en) * 2007-06-08 2007-11-07 黄晖 Long-distance controlling method, system and wireless application protocol server
CN103064774A (en) * 2013-01-16 2013-04-24 北京君正集成电路股份有限公司 Bus monitoring method and device applied to embedded system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050091028A1 (en) * 2003-10-22 2005-04-28 Takahiro Kondo Simulator and simulation method
CN101068260A (en) * 2007-06-08 2007-11-07 黄晖 Long-distance controlling method, system and wireless application protocol server
CN103064774A (en) * 2013-01-16 2013-04-24 北京君正集成电路股份有限公司 Bus monitoring method and device applied to embedded system

Also Published As

Publication number Publication date
CN105528300A (en) 2016-04-27

Similar Documents

Publication Publication Date Title
US8935574B2 (en) Correlating traces in a computing system
US9952963B2 (en) System on chip and corresponding monitoring method
EP3369015B1 (en) Methods and circuits for debugging circuit designs
CN105528300B (en) A kind of DDR Memory Controller Hub and its access monitoring method
US9639447B2 (en) Trace data export to remote memory using remotely generated reads
US8874801B1 (en) On chip performance tracking for a system on a chip
CN105808396A (en) Chip debugging device, debugging method and SOC (System of Chip) chip system
CN103593271A (en) Method and device for chip tracking debugging of system on chip
US10078568B1 (en) Debugging a computing device
CN106708679A (en) System-on-chip bus behavior detection method and apparatus
US20150356050A1 (en) Interface Emulator using FIFOs
US9396145B1 (en) In-chip bus tracer
CN105487953B (en) A kind of bus performance analysis method and device
US8321604B2 (en) Real-time USB class level decoding
US8452910B1 (en) Capture of USB packets into separate USB protocol streams based on different USB protocol specifications
CN104572515B (en) Tracking module, method, system and on-chip system chip
CN117130569A (en) Information display method, device, equipment and storage medium
CN101998135A (en) System for collecting and playing mobile television signal and control method
WO2018026452A1 (en) System and method for distributing and replaying trigger packets via a variable latency bus interconnect
JP2004310749A (en) Method and apparatus for performing bus tracing in data processing system having distributed memory
US9678852B2 (en) Tracing the operations of a data processing apparatus using trace data source identifiers to respond to flush requests
CN111158339B (en) CAN bus simulation monitoring system
WO2021031082A1 (en) Performance monitoring device and method, system on chip, movable platform, and camera
Santos et al. Linux device driver for Radial Neutron Camera in view of ITER long pulses with variable data throughput
CN115952074B (en) Performance verification method and device for system on chip

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

Address after: 519085 High-tech Zone, Tangjiawan Town, Zhuhai City, Guangdong Province

Patentee after: ACTIONS TECHNOLOGY Co.,Ltd.

Address before: 519085 High-tech Zone, Tangjiawan Town, Zhuhai City, Guangdong Province

Patentee before: ACTIONS (ZHUHAI) TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder