SU1136171A1 - Device for checking completeness of program testing - Google Patents
Device for checking completeness of program testing Download PDFInfo
- Publication number
- SU1136171A1 SU1136171A1 SU833572070A SU3572070A SU1136171A1 SU 1136171 A1 SU1136171 A1 SU 1136171A1 SU 833572070 A SU833572070 A SU 833572070A SU 3572070 A SU3572070 A SU 3572070A SU 1136171 A1 SU1136171 A1 SU 1136171A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- memory block
- adder
- completeness
- output
- Prior art date
Links
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
УСТРОЙСТВО ДЛЯ ПРОВЕРКИ ПОЛНОТЫ ТЕСТИРОВАНИЯ ПРОГРАММ содержащее блок пам ти, адресный и управл ющий входы чтени которого вл ютс соответственно информационным входом и входом запуска проверки устройства, информационный выход блока пам ти вл етс выходом проверки устройства, отличающеес тем, что, с целью увеличени полноты контрол , в него введены сумматор и элемент задержки, причем вход запуска проверки устройства через элемент задержки соединен с управл ющим входом записи блока пам ти, информационный выход блока пам ти соединен с входом первого операнда сумматора, вход второго операнда которого соединен с входом единичного потенциала устройства, выход сумматора соединен с информационным входом блока пам ти . о:) О)A DEVICE FOR CHECKING THE COMPLETENESS OF TESTING PROGRAMS containing a memory block whose address and control read inputs are respectively an information input and a device check start input, the information output of the memory block is a device check output, characterized in that, in order to increase the completeness of control , an adder and a delay element are entered into it, and the start-up check input of the device is connected via a delay element to the control input of the memory block, the information output of the memory block oedinen to the input of the first adder operand, the second operand input being connected to the input of a single device capacity, output of the adder is connected to the data input of the memory unit. oh :) oh)
Description
Изобретение относитс к цифровой вычислительной технике и может быть использовано дл проверки полноты тестировани программ специализированных управл ющих цифровых вычислительных машин, которые имеют посто нное запоминающее устройство (ПЗУ) дл размещени программ, а также допускают возможность подключени вместо ПЗУ внешнего наладочного блока пам ти. Известно устройство дл трассировки программ, содержащее блок пам ти (стек), который подключаетс к магистрали ЦВМ, логические узлы и схемы индикации. После запуска исследуемой программы в ЦВМ логические узлы обеспечивают последовательное заполнение стека адресами выполн емых команд переходов, причем после заполнени последнего адреса организуетс запись с начального адреса. При остановке программы устройство индикации дает возможность отобразить содержимое стека 1. Однако это устройство ориентировано на отладку программ и может дать ограниченную оценку полноты тестировани , так как оно содержит стек дл запоминани конечной последовательности адресов команд только одного типа (перехода) и не дает возможности оценки полноты тестировани по известным критери м оценки качества теста. Наиболее близким по технической сущности к предлагаемому вл етс устройство дл проверки полноты тестировани программ , которое состоит из одноразр дного блока пам ти и управл ющего логического блока. Одноразр дный блок пам ти работает параллельно с наладочным блоком пам ти специализированной ЦВМ. При запуске исследуемой программы в ЦВМ логический узел обеспечивает по вление сбоев в работе ЦВМ при обращении к тем адресам блока пам ти, в которые предварительно записываютс единицы 2. Однако известное устройство позвол ет оценить только качество тестировани системы защиты исследуемой программы от аппаратно обнаруживаемых сбоев и не дает возможности систематически оценить качество тестировани по известным критери м . Целью изобретени вл етс повышение полноты тестировани программ по систематическому критерию, основанному на фиксации в режиме реального функционировани всех обращений исследуемой программы ЦВМ к командам и операндам. Поставленна цель достигаетс тем, что в устройство дл проверки полноты тестировани программ, содержащее блок пам ти , адресный и управл ющий входы чтени которого вл ютс соответственно информационным в-ходом и входом запуска проверки устройства, информационный выход блока пам ти вл етс выходом проверки устройства , введены сумматор и элемент задержки, причем вход запуска проверки устройства через элемент задержки соединен с управл ющим входом записи блока пам ти, информационный выход блока пам ти соединен с входом первого операнда сумматора , вход второго операнда которого соединен с входом единичного потенциала устройства, выход сумматора соединен с информационным входом блока пам ти. На фиг. 1 приведена структурна электрическа схема предлагаемого устройства; на фиг. 2 - диаграмма работы устройства; где €м - период обращени ЦВМ () к ПЗУ, Бйс - цикл считывани в блоке пам ти , с, - врем установлени суммы на выходе сумматора, Cj - врем задержки сигнала в элементе задержки, бпз - цикл записи в блоке пам ти, Sy - цикл работы устройства. Устройство дл проверки полноты тестировани программ содержит блок 1 пам ти, элемент 2 задержки и сумматор 3. Адресные входы и управл ющие входы чтени блока 1 пам ти соединены с соответствующими выходами ЦВМ 4 параллельно с ПЗУ 5 (или наладочным блоком пам ти ), содержащим исследуемую программу. Первый вход сумматора 3 подключен к выходным информационным выходам блока 1 пам ти на второй вход сумматора 3 посто нно подаетс единица, а выход сумматора 3 подключен к входу первого блока 1 пам ти. Выход элемента 2 задержки подключен к входу «Запись блока 1 пам ти. Второй вход блока I пам ти соединен с инструментальной ЦВМ 6, котора используетс дл подготовки устройства к работе и дл обработки полученных устройством результатов. Устройство работает следующим образом . Предварительно в блоке 1 пам ти обнул ютс все чейки с помощью инструментальной ЦВМ 6. Далее на ЦВМ 4 опускаетс тестируема программа. Поскольку устройство подключено к адресной магистрали и управл ющей линии «Чтение ЦВМ 4 параллельно с ПЗУ 5, то одновременно с обращением ЦВМ 4 по некоторому адресу за командой или операндом происходит считывание по тому же адресу информации из блока 1 пам ти. Число, считанное из блока 1 пам ти, поступает на первый вход сумматора 3, где к нему прибавл етс единица , посто нно подаваема (схемной реализацией ) на второй вход сумматора 3. Получившеес число записываетс в блок 1 пам ти по тому же адресу по сигналу записи , формируемому из сигнала считывани , задержанного на величину элемента 2 задержки . Таким образом, кажда чейкаThe invention relates to digital computing and can be used to verify the completeness of testing programs of specialized control digital computers that have a read-only memory (ROM) for program placement, and also allow the possibility of connecting, instead of the ROM, an external adjustment memory block. A device for tracing programs is known, which contains a memory block (stack) that is connected to a backbone of a digital computer, logical nodes, and display circuits. After launching the program under study in a digital computer, the logical nodes ensure that the stack is sequentially filled with the addresses of executable jump instructions, and after filling the last address, a record is organized from the starting address. When the program is stopped, the display device makes it possible to display the contents of stack 1. However, this device is focused on debugging programs and can give a limited assessment of the completeness of testing, since it contains a stack for storing the final sequence of command addresses of only one type (transition) and does not allow completeness evaluation testing according to known criteria for assessing the quality of the test. The closest in technical essence to the present invention is a device for checking the completeness of testing programs, which consists of a single-bit memory block and a control logic block. The one-bit memory block operates in parallel with the memory adjustment block of the specialized digital computer. When the program under study starts in the digital computer, the logical node ensures that the digital computer fails when accessing the addresses of the memory block into which units 2 are pre-recorded. However, the known device only allows to evaluate the quality of testing the protection system of the program being investigated from hardware-detected failures and It provides an opportunity to systematically evaluate the quality of testing according to known criteria. The aim of the invention is to increase the completeness of testing programs according to a systematic criterion, based on fixing the actual operation of all references of the studied DVM program to commands and operands. The goal is achieved by the fact that the device for checking the completeness of testing programs, which contains a memory block, the address and control read inputs of which are respectively informational in-line and a device checkup start input, the information output of the memory unit is a device checkout output an adder and a delay element are entered, the input of the device test start through the delay element is connected to the recording control input of the memory block, the information output of the memory block is connected to the input of the first the accumulator peranda, the input of the second operand of which is connected to the input of the unit potential of the device, the output of the adder is connected to the information input of the memory unit. FIG. 1 shows the structural electrical circuit of the proposed device; in fig. 2 is a diagram of the operation of the device; where € m is the circulation period of the digital computer () to the ROM, Bees is the read cycle in the memory unit, s, is the sum setting time at the output of the adder, Cj is the delay time of the signal in the delay element, bpz is the write cycle in the memory unit, Sy - the cycle of the device. A device for checking the completeness of testing programs contains a memory block 1, a delay element 2, and an adder 3. The address inputs and control read inputs of memory block 1 are connected to the corresponding outputs of a digital computer 4 in parallel with a ROM 5 (or a setup memory block) containing the program. The first input of the adder 3 is connected to the output information outputs of the memory block 1 to the second input of the adder 3 is constantly fed to one, and the output of the adder 3 is connected to the input of the first memory block 1. The output of delay element 2 is connected to the input of the “Record of memory block 1”. The second input of memory block I is connected to the instrumental digital computer 6, which is used to prepare the device for operation and to process the results obtained by the device. The device works as follows. Previously, in block 1 of the memory, all the cells were nullified with the aid of an instrumental digital computer 6. Next, a program under test is lowered to digital computer 4. Since the device is connected to the address line and the control line Reading Digital Computer 4 in parallel with ROM 5, simultaneously with addressing Digital Computer 4 to a certain address, a command or operand reads information from the same memory block 1 to the same address. The number read from memory block 1 is fed to the first input of adder 3, where one is added to it, continuously supplied by the circuit input to the second input of adder 3. The resulting number is written to memory block 1 at the same address by the signal write generated from the read signal delayed by the value of delay element 2. Thus, each cell
,блока 1 пам ти работает как счетчик числа обращений к ней. Разр дность блока 1 пам ти соответствует максимально допустимому числу обращений к какой-либо команде (операнду) дл тестировани программ . Объем блока 1 пам ти равен объему ПЗУ 5 -ЦВМ 4., memory block 1 works as a counter of the number of calls to it. The memory block 1 size corresponds to the maximum allowed number of calls to any command (operand) for testing programs. The volume of the memory block 1 is equal to the volume of the ROM 5 -CBM 4.
При таких услови х устройство обеспечивает подсчет числа обращений к каждой команде (операнду) при тестировании программ. Полученное распределение обращений ко всем командам и операндам программ передаетс в инструментальную ЦВМ 6 дл обработки и дает возможность объективно оценить качество и полноту тестировани по числу обращений/ко всем адресам . В частности, при отсутствии обращений по некоторым адресам ПЗУ 5 (нули в соответствующих чейках блока 1 пам ти) тестUnder such conditions, the device provides a count of the number of calls to each command (operand) when testing programs. The obtained distribution of calls to all commands and operands of the programs is transmitted to the instrumental digital computer 6 for processing and makes it possible to objectively assess the quality and completeness of testing by the number of calls / to all addresses. In particular, in the absence of calls to some addresses of ROM 5 (zeros in the corresponding cells of memory block 1) test
программы не удовлетвор ет критерию покрыти всех операторов. Устройство ,дает также возможность целенаправленно формировать последовательность тестов дл обеспечени качества и полноты тестировани .the program does not meet the coverage criteria of all operators. The device also makes it possible to purposefully form a sequence of tests to ensure the quality and completeness of testing.
Эксперименты показывают, что дл программ , работающих в реальном масщтабе времени, тесты, выбранные по функциональному признаку, не охватывают около 1,5% объема исследуемой программы.Experiments show that for programs operating on a real-time basis, tests selected on the basis of a functional feature do not cover about 1.5% of the volume of the program under study.
Предлагаемое устройство позвол ет добитьс ЮО /о-ного охвата программы тестом , что дает возможность вы вить на предварительном этапе по 70% ошибок, ранее обнаруживающихс только на этапе эксплуатации программ. Кроме того, устройство позвол ет также сократить объем тестировани программ в 2-3 раза путем удалени сильно пересекающихс тестов.The proposed device makes it possible to attain SOA / about the coverage of the program with a test, which makes it possible to detect at the preliminary stage 70% of the errors that were previously detected only at the stage of operating the programs. In addition, the device also makes it possible to reduce the amount of testing programs by a factor of 2-3 by removing the highly intersecting tests.
.ТбПС.Tbps
,Гс, Gs
гзgz
rjLrjL
СчитыбаниеRecline
Информаци на ВыходеOutput Information
ffAQKo пам ти / Инозормаци на бымдеffAQKo memory / Inozormatsi bymda
сумматора ЗаписьAdder Record
fpuz,2fpuz, 2
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU833572070A SU1136171A1 (en) | 1983-04-04 | 1983-04-04 | Device for checking completeness of program testing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU833572070A SU1136171A1 (en) | 1983-04-04 | 1983-04-04 | Device for checking completeness of program testing |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1136171A1 true SU1136171A1 (en) | 1985-01-23 |
Family
ID=21056539
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU833572070A SU1136171A1 (en) | 1983-04-04 | 1983-04-04 | Device for checking completeness of program testing |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1136171A1 (en) |
-
1983
- 1983-04-04 SU SU833572070A patent/SU1136171A1/en active
Non-Patent Citations (1)
Title |
---|
1. Сигалов И. Л. и др. Устройство дл отладки программ. - «Управл ющие системы и машины, 1980, № 1. 2. Авторское свидетельство СССР № 879592, кл. G 06 F 11/12, 10.01.80 (прототип) . * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112331253B (en) | Chip testing method, terminal and storage medium | |
US5796758A (en) | Self-checking content-addressable memory and method of operation for detecting multiple selected word lines | |
US4922451A (en) | Memory re-mapping in a microcomputer system | |
EP0447995B1 (en) | Analyzing device for saving semiconductor memory failures | |
US5479413A (en) | Method for testing large memory arrays during system initialization | |
US3992702A (en) | Code conversion arrangements for addresses to faulty memory locations | |
SU1136171A1 (en) | Device for checking completeness of program testing | |
JPH03138742A (en) | Memory system | |
KR950002944B1 (en) | Microcomputer system with memory remapping | |
JP2583055B2 (en) | IC test system | |
JPS6011943A (en) | Inspection system for test program | |
CA1293816C (en) | Memory re-mapping in a microcomputer system | |
JPH1186595A (en) | Semiconductor memory test device | |
JPS62210547A (en) | Diagnosing method for error detection circuit | |
JPH1196793A (en) | Semiconductor memory test device | |
JPS626498A (en) | Memory appreciating device | |
JPS60549A (en) | Memory test method | |
SU903990A1 (en) | Self-checking storage device | |
SU1278984A1 (en) | Redundant storage | |
SU1107126A1 (en) | Device for simulating faults | |
SU1211735A1 (en) | Device for checking program run | |
KR100194419B1 (en) | Circuit and method for using the memory for voice data as the memory for system data | |
JPS61271700A (en) | Memory test equipment | |
JPS62272164A (en) | Testing equipment for semiconductor memory | |
JPS6133557A (en) | main storage |