CN1161694C - One-step interrupt debugging card unit for PCI bus period and its operation process - Google Patents

One-step interrupt debugging card unit for PCI bus period and its operation process Download PDF

Info

Publication number
CN1161694C
CN1161694C CNB001348590A CN00134859A CN1161694C CN 1161694 C CN1161694 C CN 1161694C CN B001348590 A CNB001348590 A CN B001348590A CN 00134859 A CN00134859 A CN 00134859A CN 1161694 C CN1161694 C CN 1161694C
Authority
CN
China
Prior art keywords
signal
address
instruction
bus
pci 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.)
Expired - Fee Related
Application number
CNB001348590A
Other languages
Chinese (zh)
Other versions
CN1357834A (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.)
Mitac International Corp
Original Assignee
Mitac International Corp
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 Mitac International Corp filed Critical Mitac International Corp
Priority to CNB001348590A priority Critical patent/CN1161694C/en
Publication of CN1357834A publication Critical patent/CN1357834A/en
Application granted granted Critical
Publication of CN1161694C publication Critical patent/CN1161694C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Bus Control (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to a single step debugging card with the application of a PCI interface. In the present invention, a bus master controller sends out an REQ# signal during the period of a PCI bus cycle to be inspected so as to ask for the master control right of a next bus cycle, and the address, the data, the instructions and the bit enabling (BE#) property and other signal states of the current bus cycle are latched and displayed by an LED so as to be used as single step debugging inspection bases. A TRDY# preparation signal is finally sent out through the change-over operation of a change-over circuit switch, and a device selecting signal (DEVSEL#) is maintained at a high level simultaneously when the TRDY# preparation signal ends so as to inform the bus master controller on the single step interruption debugging card of ending the cycle. Consequently, the function of single step debugging is reached.

Description

Pci bus cycle one-step interrupt debugging card unit and method thereof
Technical field
The present invention relates to a kind of one-step debugging card, particularly a kind of application peripheral component connects (Peripheral Component Interconnect, PCI) one-step debugging card at interface alternately.
Background technology
Fig. 1 shows the structure calcspar of present the computer system of widely using.CPU 10 is connected with NB (North bridge is a wafer set) 30 by cpu bus 20; And NB 30 also links to each other with AGP VGA card 60 by AGP bus 50 except joining with storer 40 (can be storeies such as SDRAM, EDORAM).In addition, 30 of NB join with SB (South bridge also is a wafer set) 80 via pci bus 70, in order to Data transmission and information; And SB80 except with hard disk (HD) 90, CD player (CD ROM) 100, USB (universal serial bus) (UniversalSerial Bus, USB) 110, input media (such as mouse, keyboard etc.) 120 joins, outside access or input data, also respectively by XD bus 130 and isa bus 140, join with Basic Input or Output System (BIOS) (BIOS) 150 and acoustic apparatus (Audio, for example adlib) 160.
Traditional one-step interrupt debugging card is applied in industrial standard architectures form bus (IndustryStandard Architecture BUS, ISA BUS) on, force by the IOCHRDY signal that is used for finishing the isa bus cycle and to maintain low level, reaching the purpose that prolongs these bus cycles, and make relative address and data line bus state be able to be inspected.
And on pci bus, CPU needs by the PCI/ISA bridge read cycle to be transferred to isa bus by pci bus for reading of legacy system BIOS, treat that the BIOS data by after being positioned at ROM on the isa bus and reading, send data back to pci bus by isa bus by the PCI/ISA bridge again.Because the BIOS data read cycle must be responded by the PCI/ISA bridge on pci bus, that is relevant pci cycle control signal such as DEVSEL#, TRDY# etc. produce by the PCI/ISA bridge, therefore can not just reach the purpose of suspending the bus cycles merely by maintaining high level in order to signal such as the TRDY# that finishes pci cycle.
And the present Debug Card that is applied on the market on the pci bus, or still need to interrupt the auxiliary of Debug Card by isa bus, maintain low level by forcing in order to the IOCHRDY signal that finishes the isa bus cycle, and reach the purpose that prolongs these bus cycles, or just part BIOS data and address latch are read to memory buffer more one by one in the start initial stage, and tool does not really suspend the bus cycles, and and then makes the function inspect immediately.
With regard to a normal pci bus cycle, when the FRAME# signal becomes low level by high level, promptly represent the beginning of pci bus cycle.At this moment, what present on the AD bus is the address of addressing that pci bus cycle is desired, and on the C/BE# bus, present be the instruction.Whether all devices can be decoded to this address and instruction on the pci bus cycle, itself be the destination apparatus (target device) of this pci bus cycle to determine.If then send the DEVSEL# signal, and the DEVSEL# signal maintained low level, with as responding.When this destination apparatus is finished read-write, can send TRDY# signalisation host pci and carry out follow-up data transfer operation, if during these bus cycles, there is any bus master controller (bus master) to send the control of REQ# semaphore request bus, and PCI moderator (arbiter) is also responded the GNT# signal, after then finishing in these bus cycles, to obtain the ownership of next bus cycles by this bus master controller, that is relevant pci bus control signal such as FRAME#, IRDY# and address, instruction etc. will be sent by this bus master controller.
Summary of the invention
The one-step debugging card at application PCI interface proposed by the invention promptly utilizes described bus master controller function.With desire to inspect the ownership that sends next bus cycles of REQ# semaphore request during the pci bus cycle, and address that should the bus cycles, data, instruction, signal conditions such as BE# are latched and are shown by LED, after the PCI arbiter is responded the approval of GNT# signal, one-step interrupt debugging card promptly sends specific address in following one-period, instruction and FRAME#, signals such as IRDY#, address that this is specific and instruction are after the destination apparatus on the one-step interrupt debugging card (TargetDevice) decoding, send the DEVSEL# signal by this destination apparatus, and it is maintained low level.Suspend operation pci bus on by this in bus master controller cycle, make the address of being latched during the last bus cycles, data, instruction, signal condition such as BE# thereby always be shown on the LED is as the foundation of inspecting of step-by-step debugging.And switch switch by one at last, and send a TRDY# signal, and when this TRDY# signal ended, be high level with the DEVSEL# signal boost simultaneously, finish this cycle with the bus master controller on the notice one-step interrupt debugging card.
The invention provides a kind of pci bus cycle single step and interrupt the method for debug, this method comprises the following step at least: send a request signal (REQ#) by bus master controller, require the control of these bus cycles; Address, data, instruction and the hyte of this bus cycles enabled signal conditions such as (BE#) to be latched and is shown by display; After the PCI moderator is responded a handshaking signal (ACK#) approval, should send this specific address, this instruction, frame signal (FRAME#) and IRDY# the bus cycles in next and signal such as be ready for; The address that this is specific, instruction are sent a device by this destination apparatus and are selected signal (DEVSEL#) after destination apparatus decoding; Showing signal conditions such as the address, data, instruction and the hyte that are latched during the last bus cycles enable on the display; And, send a TRDY# and be ready for signal, to finish this pci bus cycle by a switching switch.
The present invention also provides a kind of pci bus cycle one-step interrupt debugging card, and this Debug Card comprises at least: control logic circuit is latched in address/instruction, in order to producing this address/instruction control signal, and by this address/instruction of an address/instruction latches; Address/instruction buffer control logic circuit controls signal to one address/instruction buffer by described this address of latching/instruction output one; Data/hyte enable signal latchs control logic circuit, in order to producing the latch control signal that this data/hyte enables bus, and lives this data/hyte enable signal by one data/hyte enable signal latches; The bus master controller control signal produces logical circuit, in order to send the control that request signal (REQ#) requires this bus, described bus master controller control signal produces logical circuit, also produce logical circuit by a bus master controller address/data, latch this address/data signal state during making last pci bus cycle, and this address/data signal shown on this display, described bus master controller control signal produces logical circuit, also enable to produce logical circuit by a bus master controller instruction/hyte, latch this instruction/hyte enable signal state during making last this pci bus cycle, and should instruct/the hyte enable signal is shown on this display; Reach one and switch switch, send a TRDY# and be ready for signal, finish this pci bus cycle to notify this bus master controller on this pci bus cycle one-step interrupt debugging card.
Description of drawings
Fig. 1 is the structure calcspar of known computer systems;
Fig. 2 is the present embodiment sequential chart, describes the different bus transmission frequency, the relation of the timing that is produced with foundation pci bus transmission frequency; And
Fig. 3 is that debug signal flow synoptic diagram is interrupted in the single step of the embodiment of the invention.
Embodiment
Relevant detailed content of the present invention and technology, accompanying drawings is as follows.
The sequential chart of the embodiment of the invention as shown in Figure 2, Fig. 2 shows the different bus transmission frequency, the relation of the timing that is produced with foundation pci bus transmission frequency.With regard to (Peripheral Component Interconnect bus cycle of the normal mutual connecting bus of the peripheral component cycle; PCI buscycle), when frame signal (FRAME#) when becoming low level, promptly represent the beginning of pci bus cycle by high level.At this moment, what present on the AD bus is the address (address) of addressing that pci bus cycle is desired, and on the C/BE# bus, present be the instruction (command).Whether and all devices can be decoded to this address and instruction on the pci bus cycle, itself be the destination apparatus (target device) of this pci bus cycle to determine.If then carrying device is selected signal (DEVSEL#), and the DEVSEL# signal is maintained low level, with as response.When this destination apparatus is finished read-write, can send TRDY# is ready for the signalisation host pci and carries out follow-up data transfer operation, if during these bus cycles, there is any bus master controller (bus master) to send the control of REQ# semaphore request bus, and PCI moderator (arbiter) is also responded a GNT# signal, after then finishing in these bus cycles, to obtain the ownership of next bus cycles by this bus master controller, that is relevant pci bus control signal such as FRAME#, IRDY# and address, instruction etc. will be sent by this bus master controller.
The one-step debugging card at application PCI interface proposed by the invention promptly utilizes described bus master controller function.With desire to inspect the ownership that sends next bus cycles of REQ# semaphore request during the pci bus cycle, and signal condition such as address that should the bus cycles, data, instruction, BE# is latched and is shown by LED, after the PCI moderator is responded the approval of GNT# signal, one-step interrupt debugging card promptly sends signals such as specific address, instruction and FRAME#, IRDY# in following one-period, address that this is specific and instruction are after destination apparatus on the one-step interrupt debugging card (Target Device) decoding, send the DEVSEL# signal by this destination apparatus, and it is maintained low level.Suspend operation pci bus on by this in bus master controller cycle, make signal condition such as the address of being latched during the last bus cycles, data, instruction, BE# thereby be shown on the LED always, as the foundation of inspecting of step-by-step debugging.And switch by commutation circuit at last, send a TRDY# and be ready for signal, and when this TRDY# is ready for signal ended, simultaneously the DEVSEL# signal is drawn and be high level, finish this cycle with the bus master controller on the notice one-step interrupt debugging card.
Fig. 3 is that debug signal flow synoptic diagram is interrupted in the single step of the embodiment of the invention, further specifies as follows in conjunction with Fig. 2.
When the pci bus cycle desiring to inspect when beginning, host pci (as the Northbridge among Fig. 1 30) can with the unit address (device address) of desire addressing place the AD bus, and pci bus instruction (bus command) is placed C/BE#, and the FRAME# signal drawn be low level.At this moment, all devices (device) can be decoded to address and instruction on the pci bus, determining itself whether being the destination apparatus (target device) of these bus cycles, the destination apparatus that decoding meets the DEVSEL# signal can be drawn into low level as response.Latch the control signal that control logic circuit 170 is produced by address/instruction, desire to inspect address and the instruction of bus cycles and be latched within address/instruction latch 180.
Host pci draws the IRDY# signal to be low level in beginning to read and write when handling.And destination apparatus is when finishing read-write and handle, and TRDY# drawn be low level.Data/BE# signal latch control logic circuit 240 within data/BE# latch 250, and shows the Data of desire to inspect bus cycles and BE# signal latch when IRDY# and TRDY# are low level simultaneously by display circuit 260.Simultaneously, the output by the control signal that the address/instruction buffer control circuit 210 is produced is opened impact damper 220 shows address and the instruction that is latched in latch 180 by display circuit 230.The output of impact damper 220 only when IRDY# and TRDY# are low level, open during bus cycles of desiring to inspect, all keep under all the other situations closing.
During these bus cycles, bus primary controller control signal generation logical circuit 270 draws REQ# and is low level, in order to require the ownership of follow-up bus cycles to PCI moderator (being positioned at North bridge 30).After the PCI moderator draws the GNT# signal into low level response approval, after the bus master controller on the one-step interrupt debugging card finished in these bus cycles, obtain the control of bus.
When the bus master controller cycle begins, the bus master controller address/data produce circuit 280 and Command/BE# produce logical circuit 290 will specific address and instruction place AD and C/BE# bus respectively, the bus master controller control signal produces logical circuit 270 and priority and FRAME# and IRDY# are drawn is low level.For avoiding on the bus other devices to send DEVSEL# during the bus master controller cycle and the TRDY# signal causes end cycle, this specific address is the specific objective device that is used on the addressing one-step interrupt debugging card.By latch 180 latch addresses and instruction, and through after the address/190 decodings of instruction decode logic circuit meet, this destination apparatus produces logical circuit 200 by the DEVSEL# signal and DEVSEL# is drawn to low level responds this cycle.And because the output of impact damper 220 keeps closed condition, so particular address and instruction that bus master controller is sent can't be shown.
After change-over switch 300 is pressed, produces an on/off switch signal, and suppress circuit 310 by spring and eliminate bounce when switching.Destination apparatus produces logical circuit 320 by the TRDY# signal and the TRDY# signal is drawn is low level, continues behind the pci cycle it is drawn to be high level.And produce logical circuit 200 by the DEVSEL# signal and the DEVSEL# signal is drawn be high level, bus master controller also draws IRDY# by bus master controller control signal generation circuit 270 and is high level simultaneously, finishes this bus master controller cycle.Signal conditions such as the address of latching, cushioning and show by bus master controller, data, instruction, BE#, also thereby be able to show by display circuit 230 and 260 always.And bus master controller control signal generation circuit 270 is drawn REQ# during the bus master controller cycle and is high level, make bus master controller when the bus master controller end cycle, return the ownership of bus, and make pci bus proceed to be interrupted the following one-period in cycle.
Though the present invention is described with aforesaid preferable enforcement; but this embodiment is not in order to limit the present invention; those of ordinary skills; under the premise without departing from the spirit and scope of the present invention; can make amendment to the present invention, so protection scope of the present invention is as the criterion with the accompanying Claim scope.

Claims (11)

1. the method for debug is interrupted in a pci bus cycle single step, and this method comprises the following step at least:
Send a request signal (REQ#) by bus master controller, require the control of these bus cycles;
Address, data, instruction and the hyte of this bus cycles enabled signal conditions such as (BE#) to be latched and is shown by display;
After the PCI moderator is responded a handshaking signal (ACK#) approval, should send this specific address, this instruction, frame signal (FRAME#) and IRDY# the bus cycles in next and signal such as be ready for;
The address that this is specific, instruction are sent a device by this destination apparatus and are selected signal (DEVSEL#) after destination apparatus decoding;
Showing signal conditions such as the address, data, instruction and the hyte that are latched during the last bus cycles enable on the display; And
By a switching switch, send a TRDY# and be ready for signal, to finish this pci bus cycle.
2. the method for claim 1 is wherein saidly sent the step that this device is selected signal by this destination apparatus, is that this device selection signal is maintained low level, to suspend the operation on this pci bus by the cycle of this bus master controller.
3. the method for claim 1, the step of wherein said this pci bus cycle of end are to select signal to draw in this device simultaneously when being ready for signal ended by this TRDY# to be high level, finish this bus cycles to notify this bus master controller.
4. the method for claim 1, wherein said change-over switch is to suppress circuit for eliminating when the on/off switch by a spring, the bounce of not expected that produces.
5. pci bus cycle one-step interrupt debugging card, this Debug Card comprises at least:
Control logic circuit is latched in address/instruction, in order to producing this address/instruction control signal, and by this address/instruction of an address/instruction latches;
Address/instruction buffer control logic circuit controls signal to one address/instruction buffer by described this address of latching/instruction output one;
Data/hyte enable signal latchs control logic circuit, in order to producing the latch control signal that this data/hyte enables bus, and lives this data/hyte enable signal by one data/hyte enable signal latches;
The bus master controller control signal produces logical circuit, in order to send the control that request signal (REQ#) requires this bus, described bus master controller control signal produces logical circuit, also produce logical circuit by a bus master controller address/data, latch this address/data signal state during making last pci bus cycle, and this address/data signal shown on this display, described bus master controller control signal produces logical circuit, also enable to produce logical circuit by a bus master controller instruction/hyte, latch this instruction/hyte enable signal state during making last this pci bus cycle, and should instruct/the hyte enable signal is shown on this display; And
One switches switch, sends a TRDY# and is ready for signal, finishes this pci bus cycle to notify this bus master controller on this pci bus cycle one-step interrupt debugging card.
6. pci bus cycle one-step interrupt debugging card as claimed in claim 5, wherein said address/instruction is latched control logic circuit and is also comprised one address/instruction decode logic circuit, in order to this address/instruction is decoded, to determine whether this address/instruction is the destination apparatus of this pci bus cycle.
7. pci bus cycle one-step interrupt debugging card as claimed in claim 6, when wherein also comprising the destination apparatus that meets this pci bus cycle, select signal (DEVSEL#) to produce logical circuit by a device, in next pci bus cycle, send this device and select signal, with step as response.
8. pci bus cycle one-step interrupt debugging card as claimed in claim 5, wherein said address/instruction buffer are to show that by a display circuit this address/instruction is to detect.
9. pci bus cycle one-step interrupt debugging card as claimed in claim 5, wherein said data/hyte enable signal latch shows that by display circuit this data/hyte enable signal is to detect.
10. pci bus cycle one-step interrupt debugging card as claimed in claim 5, this pci bus cycle of wherein said end is to select signal to draw in this device simultaneously when being ready for signal ended by this TRDY# to be high level, finishes this pci bus cycle to notify this bus master controller on this pci bus cycle one-step interrupt debugging card.
11. pci bus cycle one-step interrupt debugging card as claimed in claim 5, wherein said change-over switch is to suppress circuit for eliminating when the open/close switching by a spring, the bounce of not expected that produces.
CNB001348590A 2000-12-06 2000-12-06 One-step interrupt debugging card unit for PCI bus period and its operation process Expired - Fee Related CN1161694C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB001348590A CN1161694C (en) 2000-12-06 2000-12-06 One-step interrupt debugging card unit for PCI bus period and its operation process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB001348590A CN1161694C (en) 2000-12-06 2000-12-06 One-step interrupt debugging card unit for PCI bus period and its operation process

Publications (2)

Publication Number Publication Date
CN1357834A CN1357834A (en) 2002-07-10
CN1161694C true CN1161694C (en) 2004-08-11

Family

ID=4596452

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB001348590A Expired - Fee Related CN1161694C (en) 2000-12-06 2000-12-06 One-step interrupt debugging card unit for PCI bus period and its operation process

Country Status (1)

Country Link
CN (1) CN1161694C (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100388227C (en) * 2003-11-18 2008-05-14 神达电脑股份有限公司 Computer bus periodic single step interrupt error eliminating information automatic collection method and device
CN100362485C (en) * 2003-11-18 2008-01-16 神达电脑股份有限公司 Automatic detection of activation earlier stage single step executire program and information collection method and device
CN100373348C (en) * 2003-11-18 2008-03-05 神达电脑股份有限公司 Notebook eomputer sturt earlier stage single step interrupt error eliminating device and method
CN100362486C (en) * 2003-11-26 2008-01-16 神达电脑股份有限公司 Computer bus cycle single step interruption debugging device and method
CN100397357C (en) * 2005-03-11 2008-06-25 佛山市顺德区顺达电脑厂有限公司 Data access device of peripheral element extension interface and its method
CN100397351C (en) * 2005-11-08 2008-06-25 佛山市顺德区顺达电脑厂有限公司 Debug apparatus and method of computer system
TWI502336B (en) * 2010-12-17 2015-10-01 Via Tech Inc Debug device for computer system and method thereof.
TWI547784B (en) * 2011-04-22 2016-09-01 緯創資通股份有限公司 Method of dynamically adjusting bus clock and device thereof

Also Published As

Publication number Publication date
CN1357834A (en) 2002-07-10

Similar Documents

Publication Publication Date Title
Hamacher et al. Computer organization
US5935233A (en) Computer system with a switch interconnector for computer devices
CN109189203B (en) Server power saving system and power saving method thereof
CN1161694C (en) One-step interrupt debugging card unit for PCI bus period and its operation process
WO1997002533A1 (en) A transparent bridge between buses of a computer system and a method of interfacing the buses to operate as a single logical bus
JP2003296191A (en) Integrated circuit operable as general purpose processor and processor of peripheral device
US6070204A (en) Method and apparatus for using universal serial bus keyboard to control DOS operations
US5420989A (en) Coprocessor interface supporting I/O or memory mapped communications
CN101515436B (en) Embedded LED display screen control system
JP2001209537A (en) Data hazard detection sytsem
JPH0660015A (en) Information processor
CN1221902C (en) Method and device for debuggin with single-step interrupt in peripheral element interconnection bus cycle
JPS6097458A (en) Data transfer unit
CN1357833A (en) One-step debugging card unit with PCJ interface and its operation process
US6751754B2 (en) Single step debug card using the PCI interface
US5247640A (en) Dual access control system including plural magnetic disk control units and contention control circuitry
JP3206570B2 (en) PCI function expansion control device and PCI function expansion control method
US7552269B2 (en) Synchronizing a plurality of processors
CN100397351C (en) Debug apparatus and method of computer system
TW525053B (en) Apparatus of PCI bus cycle single step interrupt debug card and its method
CN1162778C (en) Debugging device and method for peripherals and chip set and system using it
CN1601484A (en) Disk data backup system and method thereof
CN100445956C (en) Device and method for debugging interconnection bus of peripheral devices
JPH02226454A (en) Computer system and transfer of data
CN216014148U (en) Server and server backboard

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C14 Grant of patent or utility model
GR01 Patent grant
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee