SU1527637A1 - Device for checking computer programs - Google Patents
Device for checking computer programs Download PDFInfo
- Publication number
- SU1527637A1 SU1527637A1 SU884384872A SU4384872A SU1527637A1 SU 1527637 A1 SU1527637 A1 SU 1527637A1 SU 884384872 A SU884384872 A SU 884384872A SU 4384872 A SU4384872 A SU 4384872A SU 1527637 A1 SU1527637 A1 SU 1527637A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- output
- group
- inputs
- elements
- Prior art date
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Изобретение относитс к вычислительной технике и может быть использовано в устройсчтвах отладки программ, устройствах контрол промышленности выполнени программ ЦВМ. Цель изобретени - повышение диагностических возможностей устройства за счет контрол сложных операторов, вычисл ющих элементарные монотонно возрастающие функции внутри интервала эталонных значений. Устройство содержит регистры 3, 4, 9, схемы 5, 6 сравнени , формирователи 7, 8 импульсов, триггер 10, элемент И 11, элемент задержки 12, элемент ИЛИ 13, элемент И 14, блок 15 выделени интервала с соответствующими св з ми. 1 з.п. ф-лы, 2 ил.The invention relates to computing and can be used in software debugging devices, industry monitoring devices for the execution of digital computer programs. The purpose of the invention is to increase the diagnostic capabilities of the device by controlling complex operators that compute elementary monotonically increasing functions within the interval of reference values. The device contains registers 3, 4, 9, comparison circuits 5, 6, drivers 7, 8 pulses, trigger 10, AND 11 element, delay element 12, OR 13 element, AND 14 element, interval selection block 15 with corresponding connections. 1 hp f-ly, 2 ill.
Description
ZiZi
(Л(L
ww
фиг.1figure 1
Изобретение относитс к вычисли- тельноГ технике и может быть исгюль- зовано в устройствах отладки программ , устройствах контрол нравиль- ности выполнени программ ЦВМ,The invention relates to computing technology and can be used in program debugging devices, devices for controlling the compliance of programs of digital computers,
Цель изобретени - повышение диагностических возможностей устройства за счет контрол сложных онераторов, вычисл ющих элементарные монотонно возрастающие функц}ги внутри интервала эталонных значений.The purpose of the invention is to increase the diagnostic capabilities of the device due to the control of complex operators that compute elementary monotonically increasing functions within the interval of reference values.
На фиг,1 представлена схема предлагаемого устройства; на фиг, 2 - схема блока выделени интервала, Fig, 1 shows a diagram of the proposed device; FIG. 2 is a block allocation circuit diagram;
Устройство содержит адреснь.т , первый 2 и второй 7. „ информационные входы, регистры 3 и 4, первую 3 и вторую 6 cxeMi i сравнени , первый 7 и второй 8 формирователи импуль- сов, регистр 9, триггер 10,элемент И 11, элемент 12 задержки, элемент ИЛИ 13, элемент И 14, блок 15 выделени интервала, 16 ошибки функции , выход 17 ошибки аргумента, The device contains address, first 2 and second 7. „information inputs, registers 3 and 4, first 3 and second 6 cxeMi i comparison, first 7 and second 8 pulse shapers, register 9, trigger 10, element 11, delay element 12, element OR 13, element AND 14, interval selection block 15, 16 function errors, output 17 error arguments,
Блок 15 вьщелени интервала содержит регистр 18 аргумента, группу регистров 19 эталонных значеник аргумента , первую 20 и вторую 21 группы блоков элементов И, триггер 22,груп- пу схем 23 сравнени , группу элементов И 24, элемент ИЛИ 25, группу регистров 26 зиачен1гй функции, третью 27, четвертую 28 и 29 группы блоков элементов И, перв-vno 30 и вто- рую 31 группы элементов ИЛИ, регистрThe interval allocation block 15 contains the argument register 18, the register group 19 reference argument values, the first 20 and second 21 groups of AND blocks, the trigger 22, the group of comparison circuits 23, the AND group of elements 24, the OR 25 element, the register group 26 of the normal function , the third 27, the fourth 28 and 29 groups of blocks of elements AND, the first-vno 30 and the second 31 groups of elements OR, the register
32нижнер Гранины интервала,регистр32inzhner Granina interval, register
33верхней Гранины интервала, первую33 top Granina interval, first
34и вторую 35 схемы сравнени . Устройство работает следующим об- 34 and the second 35 comparison schemes. The device works as follows:
разом,all at once
В исходном состо нии в регистр 3 записано значение кода счетчика команд ЦВМ, при котором производитс контролируема операци , в регистр 4 - значение кода счетчика команд ЦВМ, при котором производитс вычисление аргумента дл контролируемой функции, в регистрах 19 , - 19 , эталонных значений аргументов - эталонные значени арг мента функции, в регистрах 20, - 20 „ значенш функций - соответствующие расчетные значени функции. Остальные регистры и триггеры устройства обнулены.In the initial state, register 3 records the value of the code of the command counter of the digital computer in which the controlled operation is performed, in register 4 the value of the code of the command counter of the digital computer in which the argument for the controlled function is calculated, in registers 19, -19, the reference values of the arguments the reference values of the function argument, in registers 20, - 20 "values of functions, are the corresponding calculated values of the function. The remaining registers and triggers of the device are reset.
Значение адреса счетчика команд ЦВМ поступает по входу 1 на схемы 5 и 6 сравнени . При совпадении этого значени с кодом, таписанным в региThe value of the address of the command counter of the digital computer is fed to input 1 to circuits 5 and 6 of the comparison. If this value coincides with the code registered in
стре 4, на выходе схемы сравнени по вл етс импульс, KOTOpbtfi поступает на вход элемента 8 задержки и на си.чхровход блока 15 выделени интерпала . По информационному входу блока 15 выделени интервала значение аргумента функн.ии (Х), поступающее но вхо ДУ 2,2, записываетс в регистр 18 аргумента. Содержимое регистра 18 аргумента и регистров 1Р - 1Ч( эталонных значений аргумента через соответствующие группы (первую и вторую) блоков элементов И 20 и 21, открьшаю- т,иесп при поступлении синхроимпульса на вход триггера 22,перевод щего его в единичное состо ние, поступает на соответствующие схемы 23, - 23 сравнени , В случае, если значение аргумента выходит за границы допустимого интервала изменени , на соответствующих выходах схем 23 и 23 по вл етс единичный сигнал, который,проход через элемент ИЛИ 25, поступает на выход 17 ошибки аргумента, В противном случае единичный сигнал по вл етс на выходе Равно i-й схемы 23; сравнени (i 1, п), если содержимое регистра 18 аргумента совпадает с содержимым i-ro регистра 19) эталонных значений аргумента, т,е,In line 4, a pulse appears at the output of the comparison circuit, KOTOpbtfi is fed to the input of the delay element 8 and the clock input of the interrupt allocation unit 15 is present. On the information input of the interval allocation block 15, the value of the argument of the function (X), which arrives at the remote control 2.2, is written to the argument register 18. The contents of register 18 of the argument and registers 1P - 1H (reference values of the argument through the corresponding groups (first and second) of the blocks of elements And 20 and 21, open, and upon receipt of the sync pulse at the input of the trigger 22, which translates it into a single state, to the corresponding circuits 23, - 23 comparisons. In case the argument value falls outside the bounds of the permissible interval of change, a single signal appears at the corresponding outputs of the circuits 23 and 23, which, passing through the OR 25 element, arrives at the output 17 of the argument error, AT rotivnom case of a single signal is outputted from the i-th Equals circuit 23; comparison (i 1, n), if the contents of register 18 match the contents of the argument i-ro register 19) the reference values of the argument, t, e,
.Ti. .Ti.
или на выходах Больше тех схем 23 сравнени , содержимое соответствующих регистров 19 эталонных значений аргумента которых больше содержимого регистра 18 аргумента, т,е,or at the outputs. More than those comparison circuits 23, the contents of the corresponding registers 19 reference values of the argument which are greater than the contents of the register 18 of the argument, t, e,
,,,,
и на выходах меньше остальных схем 23 сравнени . Единичный сигнал по вл етс на выходе того элемента И 24 группы, (l- ktN-l), входы которого подключены к схемам 23);and at the outputs less than the rest of the comparison circuits 23. A single signal appears at the output of that element of group 24, (l-ktN-l), whose inputs are connected to circuits 23);
и 23and 23
сравнени , соответствующимcomparing with the corresponding
регистрам °. и 19 + 1 этапон1тьгх значений аргументов, содержимое которых соответственно меньше и больше содержимого регистра 18 аргумента,registers °. and 19 + 1 stage values of arguments, the contents of which are respectively smaller and larger than the contents of register 18 of argument,
т.е.those.
, Х,,,Х илиХ.., X ,,, x or x ..
К+1K + 1
В первом случае единичный сигнал с выхода Равно i-й схемы 23; сравнени открывает соответствующий блок элементов И 2Pj п той группы и разрешает передачу содержимого регистра тначений функции 26; через нервую и вторую группы элементов ИЛИ 30 и JlIn the first case, a single signal from the output is equal to the i-th circuit 23; comparison opens the corresponding block of elements AND 2Pj of the fifth group and allows the transfer of the contents of the register to the function 26; through the nerve and second group of elements OR 30 and Jl
н регистры 32 и 33 нерхией и нижг{ей границ интервлла и далее на нходы соответствующих схем ЗА и 35 сравнени .n registers 32 and 33 of the nerves and lower limits of the interval, and further to the notes of the corresponding schemes 3 and 35 of the comparison.
Во втором случае единичный сигнал с выхода блока k-ro элемента И Л группы открывает соответствующие блоки элементов И 27 ц и 28, третьей и четвертой группы и разрешает передачу содержимого регистра 2fS значени функции через первую группу элементов ИЛИ 30 в регистр 32 нижней Гранины интервала, а содержимого регистра 26, значени функции через вторую группу элементов ИЛИ 31 в регистр 33 верхней границы интервала, и далее на входы соответствующих схем 34 и 35 сравнени .In the second case, a single signal from the output of the k-ro unit of the group IL element opens the corresponding blocks of elements 27 and 28, the third and fourth groups and allows the transfer of the contents of the 2fS register of the function value through the first group of elements OR 30 to the register 32 of the lower interval width, and the contents of register 26, the value of the function through the second group of elements OR 31 into the register 33 of the upper limit of the interval, and then to the inputs of the corresponding circuits 34 and 35 of the comparison.
Импульс, задержанный в элементе 8 поступает на единичный вход триггера 10 и устанавливает его в единичное состо ние. С триггера 10 высокий потенциал поступает на первый вход элемента И I 1,The impulse delayed in element 8 arrives at the single input of the trigger 10 and sets it to the single state. With the trigger 10 high potential arrives at the first input of the element And I 1,
При совпадении значени кода адреса счетчика команд со значением,записанным в регистре 3, что означает момент начала выполнени в программе контролируемой операции, сигнал по вл етс на выходе схемы 5 сравнени . Этот сигнал задерживаетс и формируетс формирователем 7 на врем выполнени контролируемой операции,поступает на второй вход элемента И II, а также на управл ющий вход регистра 9, открыва его и разреша запись значени полученной функции f(x) с первого информационного входа 2 устройства на регистр 9, Если на входах элемента И 11 единичные сигналы, что соответствует событию наличи в регистре 9 значени функции f(x) и наличию значений интервала в регистрах 32 и 33, то на выходе элемента И II по вл етс импульс, поступающий на вход элемента 12 задержки, на вход обнулени триггеров 10 и 22, а также на управл ющие входы схем 34 и 35 сравнени ,When the code value of the instruction counter address matches the value recorded in register 3, which means the instant of the start of execution in the program of the controlled operation, the signal appears at the output of the comparison circuit 5. This signal is delayed and generated by the shaper 7 at the time of the monitored operation, fed to the second input of element II, as well as to the control input of register 9, opening it and allowing the value of the received function f (x) to be written from the first information input 2 of the device to the register 9, If at the inputs of element 11 are single signals, which corresponds to the event of presence in register 9 of the value of the function f (x) and the presence of interval values in registers 32 and 33, then the output of element II II is a pulse arriving at the input of element 12 zader , the zeroing input of the triggers 10 and 22, as well as the control inputs of the comparison circuits 34 and 35,
В схеме 34 сравнени производитс операци сравнени полученного значени функции f(y) со значением нижней границы интервала. Если значение функции f(x) 1-{еньше значени нижней границы интернала, то на выходе схемы 34 сравнени по вл етс сигнал, поступающий на вход элемента ИЛИ 13, В схеме 35 сравнени производитс операци In comparison circuit 34, an operation is performed to compare the obtained value of the function f (y) with the value of the lower limit of the interval. If the value of the function f (x) 1- {is smaller than the value of the lower limit of the internal, then the output of the comparison circuit 34 is a signal arriving at the input of the element OR 13, In the comparison circuit 35, an operation is performed
00
5five
00
сравнени получриного значени функции f(x) со значением верхней грлиицн интервала. Если f(X) больше значени верхней г раницы интервала, то на выходе схемы 35 сравнени по вл етс сигнал , поступаюп(ий на вход элемента ИПИ 13, Импульс, задержанный в элементе 12 на врем операции сравнени ,поступает на вход элемента И 14, Если на выходе одной из схем 34 и 35 сравнени присутствует сигнал, то он,проход через элементы 111ТИ 13 и И 14, поступает н выход ошибки Лункции Ifi,comparing the resulting value of the function f (x) with the value of the upper grlic interval. If f (X) is greater than the value of the upper limit of the interval, then at the output of the comparison circuit 35, a signal appears (input to the element of the IPD 13, the impulse delayed in the element 12 for the duration of the comparison operation is fed to the input of the element 14, If a signal is present at the output of one of the comparison circuits 34 and 35, then it, passing through the elements 111-113 and 14, goes to the output of the error of the function Ifi,
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU884384872A SU1527637A1 (en) | 1988-01-15 | 1988-01-15 | Device for checking computer programs |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU884384872A SU1527637A1 (en) | 1988-01-15 | 1988-01-15 | Device for checking computer programs |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1527637A1 true SU1527637A1 (en) | 1989-12-07 |
Family
ID=21358234
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU884384872A SU1527637A1 (en) | 1988-01-15 | 1988-01-15 | Device for checking computer programs |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1527637A1 (en) |
-
1988
- 1988-01-15 SU SU884384872A patent/SU1527637A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР 636611, кл. Г, 06 F 11/00, 1977. ABtbpcKoe свидетельство СССР 1418719, кл. а 06 F 11/28, 1987. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU1527637A1 (en) | Device for checking computer programs | |
SU1640698A1 (en) | Processor-bound program verifier | |
SU1213480A1 (en) | Device for checking microprocessor system | |
SU1462325A1 (en) | Device for monitoring the succession of performance of program modules | |
JPS5835284B2 (en) | Data bus check method | |
SU1280636A1 (en) | Device for debugging programs | |
SU1695319A1 (en) | Matrix computing device | |
SU922752A1 (en) | Device for test checking of input-output channel monitoring units | |
SU1410048A1 (en) | Computing system interface | |
SU1443015A1 (en) | Device for determining optimized article maintenance periods | |
SU1667100A1 (en) | Device for queueing system simulation | |
SU1406588A1 (en) | Device for input of information from users | |
SU1177817A1 (en) | Device for debugging programs | |
SU1689955A1 (en) | Device for debugging programs | |
SU372692A1 (en) | PULSE DISTRIBUTOR | |
SU1201828A1 (en) | Device for input of information from two-position transducers | |
SU1383364A1 (en) | Device for checking microprocessor digital units | |
SU1605273A1 (en) | Multichannel data acquisition device | |
SU1481776A1 (en) | Device for checking time of program execution | |
SU1213485A1 (en) | Processor | |
SU1513463A2 (en) | Device for interfacing computer with communication channels | |
SU1198564A1 (en) | Device for writing information in internal memory | |
SU1095165A1 (en) | Device for polling subscribers | |
SU1490676A1 (en) | Microprogram control unit | |
SU1596323A1 (en) | Device for computing logarithmic function |