Open-Source Projects: Issueshttps://forge.ispras.ru/https://forge.ispras.ru/favicon.ico?16490126692015-05-27T08:30:33ZOpen-Source Projects
Redmine MicroTESK - Bug #5987 (Closed): Handling situations when TestBase fails to generate test data (e....https://forge.ispras.ru/issues/59872015-05-27T08:30:33ZAndrei Tatarnikovandrewt@ispras.ru
<p>The situation when TestBase fails to provide data for a test situation should be handled in the following way:</p>
<ol>
<li>A warning message explaining the reason must be printed.</li>
<li>Some default data (e.g zero) must be provided. Leaving a resource (register) uninitialized is incorrect.</li>
</ol>
<p>Now MicroTESK prints an abrupt message and leaves the resources uninitialized.</p> MicroTESK - Bug #5708 (Closed): MicroTESK build fails: SsaAssembler - symbol Changes is not definedhttps://forge.ispras.ru/issues/57082015-03-13T11:06:24ZAndrei Tatarnikovandrewt@ispras.ru
<p>Artem, please add the Changes class to the SVN source code base. Now the build fails:</p>
<pre>
javac.core:
[mkdir] Created dir: /srv/hudson/jobs/MicroTESK/workspace/bin/microtesk
[javac] Compiling 272 source files to /srv/hudson/jobs/MicroTESK/workspace/bin/microtesk
[javac] /srv/hudson/jobs/MicroTESK/workspace/src/main/java/core/ru/ispras/microtesk/translator/simnml/coverage/ssa/SsaAssembler.java:42: error: cannot find symbol
[javac] Deque<Changes> changesStack;
[javac] ^
[javac] symbol: class Changes
[javac] location: class SsaAssembler
[javac] /srv/hudson/jobs/MicroTESK/workspace/src/main/java/core/ru/ispras/microtesk/translator/simnml/coverage/ssa/SsaAssembler.java:43: error: cannot find symbol
[javac] Changes changes;
[javac] ^
[javac] symbol: class Changes
[javac] location: class SsaAssembler
[javac] /srv/hudson/jobs/MicroTESK/workspace/src/main/java/core/ru/ispras/microtesk/translator/simnml/coverage/ssa/SsaAssembler.java:169: error: cannot find symbol
[javac] private static void join(Changes repo, Collection<GuardedBlock> blocks, Collection<Changes> containers, NodeTransformer xform) {
[javac] ^
[javac] symbol: class Changes
[javac] location: class SsaAssembler
[javac] /srv/hudson/jobs/MicroTESK/workspace/src/main/java/core/ru/ispras/microtesk/translator/simnml/coverage/ssa/SsaAssembler.java:169: error: cannot find symbol
[javac] private static void join(Changes repo, Collection<GuardedBlock> blocks, Collection<Changes> containers, NodeTransformer xform) {
[javac] ^
[javac] symbol: class Changes
[javac] location: class SsaAssembler
[javac] /srv/hudson/jobs/MicroTESK/workspace/src/main/java/core/ru/ispras/microtesk/translator/simnml/coverage/ssa/SsaAssembler.java:185: error: cannot find symbol
[javac] private static Node getJointFallback(String name, Changes master, Changes branch) {
[javac] ^
[javac] symbol: class Changes
[javac] location: class SsaAssembler
[javac] /srv/hudson/jobs/MicroTESK/workspace/src/main/java/core/ru/ispras/microtesk/translator/simnml/coverage/ssa/SsaAssembler.java:185: error: cannot find symbol
[javac] private static Node getJointFallback(String name, Changes master, Changes branch) {
[javac] ^
[javac] symbol: class Changes
[javac] location: class SsaAssembler
[javac] /srv/hudson/jobs/MicroTESK/workspace/src/main/java/core/ru/ispras/microtesk/translator/simnml/coverage/ssa/SsaAssembler.java:62: error: unexpected type
[javac] this.changesStack = new ArrayDeque<>();
[javac] ^
[javac] required: class
[javac] found: <E>ArrayDeque<E>
[javac] where E is a type-variable:
[javac] E extends Object declared in class ArrayDeque
[javac] /srv/hudson/jobs/MicroTESK/workspace/src/main/java/core/ru/ispras/microtesk/translator/simnml/coverage/ssa/SsaAssembler.java:65: error: cannot find symbol
[javac] this.changes = new Changes(changesStore, changesStore);
[javac] ^
[javac] symbol: class Changes
[javac] location: class SsaAssembler
[javac] /srv/hudson/jobs/MicroTESK/workspace/src/main/java/core/ru/ispras/microtesk/translator/simnml/coverage/ssa/SsaAssembler.java:130: error: cannot find symbol
[javac] final Collection<Changes> containers = changes.fork(size);
[javac] ^
[javac] symbol: class Changes
[javac] location: class SsaAssembler
[javac] /srv/hudson/jobs/MicroTESK/workspace/src/main/java/core/ru/ispras/microtesk/translator/simnml/coverage/ssa/SsaAssembler.java:131: error: cannot find symbol
[javac] final Iterator<Changes> rebasers = containers.iterator();
[javac] ^
[javac] symbol: class Changes
[javac] location: class SsaAssembler
[javac] /srv/hudson/jobs/MicroTESK/workspace/src/main/java/core/ru/ispras/microtesk/translator/simnml/coverage/ssa/SsaAssembler.java:172: error: cannot find symbol
[javac] for (Changes diff : containers) {
[javac] ^
[javac] symbol: class Changes
[javac] location: class SsaAssembler
[javac] Note: /srv/hudson/jobs/MicroTESK/workspace/src/main/java/core/ru/ispras/microtesk/translator/simnml/coverage/ssa/SsaAssembler.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 11 errors
BUILD FAILED
/srv/hudson/jobs/MicroTESK/workspace/build.xml:217: Compile failed; see the compiler error output for details.
Total time: 18 seconds
[WARNINGS] Skipping publisher since build result is FAILURE
Recording test results
Finished: FAILURE
</pre> MicroTESK - Task #5678 (Closed): Support for named branches in ISA specificationshttps://forge.ispras.ru/issues/56782015-03-03T10:46:59ZAndrei Tatarnikovandrewt@ispras.ru
<p>Named branches in ISA specifications must be supported:</p>
<ol>
<li>Support the construct "<code>branch("BranchName");</code>" in the nML translator;</li>
<li>Support situations for named branches in the coverage extractor.</li>
</ol> MicroTESK - Task #5673 (Closed): Memory scalability for large memory ranges (address space for 48...https://forge.ispras.ru/issues/56732015-03-03T08:54:58ZAndrei Tatarnikovandrewt@ispras.ru
<p>Verify and review (if needed) the scalability of memory in the simulator for large memory ranges (address space for 48 and 64 bit addresses).</p>
<p>Question:</p>
<blockquote>
<p>o ISPRAS to review and confirm the sparseness of the implementation of memory<br />• Does memory use of generation scale with number of locations touched or the range of (min, max)</p>
</blockquote>
<p>Answer</p>
<blockquote>
<p>In the current implementation of the simulator, memory is divided into 4KB regions which are allocated only when touched (written to).</p>
</blockquote>
<p>Check whether the current way to avoid excessive memory consumption is sufficient. This includes more intensive testing. If not, the algorithm must be reviewed.</p>
<p>Basic ideas on sparse distributed memory:</p>
<p><a class="external" href="http://en.wikipedia.org/wiki/Sparse_distributed_memory">http://en.wikipedia.org/wiki/Sparse_distributed_memory</a></p> MicroTESK - Task #5672 (Closed): Support for UNPREDICTED and UNDEFINEDhttps://forge.ispras.ru/issues/56722015-03-03T08:35:05ZAndrei Tatarnikovandrewt@ispras.ru
<p>Support for handling branches of instruction logic marked as UNPREDICTED and UNDEFINED:</p>
<ol>
<li>In the nML translator (keywords UNPREDICTED or UNDEFINED);</li>
<li>In the coverage extractor (corresponding constraints)</li>
</ol> MicroTESK - Bug #5668 (Closed): Issues with large memory addresses (48 and 64 bits) must be fixedhttps://forge.ispras.ru/issues/56682015-03-03T07:50:50ZAndrei Tatarnikovandrewt@ispras.ru
<p>Subj. Top priority.</p>
<p>Basic test LargeAddrTestCase fails marking the current version as unstable.</p>
<p>Also, tests and examples (nML + test templates) are required.</p> MicroTESK - Task #5666 (Closed): Estimate generation speedhttps://forge.ispras.ru/issues/56662015-03-03T07:38:30ZAndrei Tatarnikovandrewt@ispras.ru
<p>Performance benchmarks and corresponding examples are needed.</p> MicroTESK - Task #5658 (Closed): Need a single entry point for the translator and test generator ...https://forge.ispras.ru/issues/56582015-02-25T19:37:45ZAndrei Tatarnikovandrewt@ispras.ru
<p>The current situation:</p>
<p>1. The entry point for the translator (modelling subsystem) is method MicroTESK.main (ru.ispras.microtesk).<br />2. The entry point for the test template processor (testing subsystem) is method main in microtesk.rb (launched via JRuby).</p>
<p>Need a unified entry point (in a Java class). The MicroTESK.main should run a proper code depending on command line switches. Also, <strong>unified exception handling policy is needed</strong>.</p> MicroTESK - Bug #5542 (Closed): Creating instances of modes and ops: validity checks for argument...https://forge.ispras.ru/issues/55422014-12-30T12:53:49ZAndrei Tatarnikovandrewt@ispras.ru
<p>Possibility to creating instances of modes and ops was implemented in Task <a class="issue tracker-2 status-5 priority-5 priority-high3 closed behind-schedule" title="Task: [translator] Возможность инстанцирования операций в других операциях (Closed)" href="https://forge.ispras.ru/issues/4656">#4656</a>.<br />However, there are no translator-level validity checks for arguments (argument types should match ones<br />specified in the signature).</p> MicroTESK - Bug #5514 (Closed): The implementation of 'coerce' needs a reviewhttps://forge.ispras.ru/issues/55142014-12-19T07:57:17ZAndrei Tatarnikovandrewt@ispras.ru
<p>The implementation is very simple: size is changed, extra bits are set to zero. <br />Sign extension is not supported, which causes bugs. Also, conversion from different data type families (e.g float to integer is not supported)/</p> MicroTESK - Task #5350 (Closed): Labels in the text of instruction callshttps://forge.ispras.ru/issues/53502014-10-16T12:25:05ZAndrei Tatarnikovandrewt@ispras.ru
<p>Не обходим вменяемый механизм использования меток в сгенерированом коде инструкций. Сейчас используется ненадёжно решение, основанное на замене текста (r2689).</p>
<p>Суть проблемы состоит в следующем. Вот типичный код операции ветвления:</p>
<pre>
op BEQ (rs : R, rt : R, offset : SHORT)
syntax = format("BEQ %s, %s, %<label>d", rs.syntax, rt.syntax, offset)
image = format("000100%s%s%s", rs.image, rt.image, offset)
action = {
if rs == rt then
// Informs that control transfer is to be performed
BRANCH = 1;
// Calculates the jump address and saves it to a temporary variable
JMPADDR = NIA + (offset << 3);
endif;
}
</pre>
<p>Адрес для перехода получается на основе параметра offset (смещение), который представляет собой некоторую числовую константу. В тестовом шаблоне этот параметр может задаваться как обращение к некой метке и при этом инструкции будет передана некая произвольная (fake) константа, т.к. у нас сейчас нет модели памяти и мы не можем вычислить смещение. <strong>Проблема</strong>: при герации кода у нас получается некорректный код: вызов инструкции B будет с произвольным смещением. <em>Поэтому, необходимо в таких случах вместо fake аргумента подставлять имя метки.</em> При этом важно поддерживать оба варианта использования: (1) передавать инструкции константные значения и (2) использовать метки.</p>
<p>Нужно продумать решение. Скорее всего поддержка должна быть на уровне модели. Т.е. модель должна уметь регистрировать метки и подставлять соответствующие имена, если метка для данного значения зарегистрирована.</p>
<p>В Sim-nML добавлено следующее соглашение. В строке форматирования используется тег <label> для обозначения значений, которые могут быть заменены на имя соответствующей метки.</p>
<pre>syntax = format("BEQ %s, %s, %<label>d", rs.syntax, rt.syntax, offset)</pre> MicroTESK - Bug #4996 (Closed): [translator] It should be possible to define the "instruction" op...https://forge.ispras.ru/issues/49962014-06-18T11:42:22ZAndrei Tatarnikovandrewt@ispras.ru
<p>The current version has an unreasonable limitation: the "instruction" operation (root) can be defined as an AND rule only. This should be changed. It should be allowed to define the "instruction" operation as an OR rule.</p> MicroTESK - Task #4283 (Closed): [translator] Support for custom attributes in operations and add...https://forge.ispras.ru/issues/42832013-07-01T10:24:28ZAndrei Tatarnikovandrewt@ispras.ru
<p>Транслятор и модель должны поддерживатить использование <strong>кастомных аттрибутов</strong>. Например, в приведённом ниже куске используется аттрибут loop, который организует цикл путём рекурсии. Для трансляции модели MIPS требуется эта возможность.</p>
<pre>
op CLZ(rd : index, rs : REG_IND_ZERO)
syntax = format ("CLZ %d,%s", rd, rs.syntax)
image = format ("011100%s%5b%5b00000100000", rs.image, rd, rd)
action = {
tmp_signed_byte = 31;
GPR [rd] = 32;
loop;
}
loop = {
if tmp_signed_byte >= 0 then
if ( rs < tmp_signed_byte..tmp_signed_byte > == 0 ) then
tmp_signed_byte = tmp_signed_byte - 1;
else
GPR [ rd ] = 31 - tmp_signed_byte;
tmp_signed_byte = -1;
endif;
loop;
endif;
}
</pre> MicroTESK - Bug #4281 (Closed): [translator] Support for aliases in memory (aka mem) definitions.https://forge.ispras.ru/issues/42812013-07-01T06:29:20ZAndrei Tatarnikovandrewt@ispras.ru
<p>Подобные конструкции сейчас не поддерживаются транслятором Sim-nML:</p>
<pre>
mem tmp_signed_half_word [1, int(16)]
mem tmp_signed_half_word_A0 [1, int(8)] alias = tmp_signed_half_word[8]
</pre>
<p>Это одна из причин, по которой не удаётся оттранслировать спецификацию процессора MIPS.</p> MicroTESK - Task #4116 (Closed): [model] Lazy memory allocation in memory modelshttps://forge.ispras.ru/issues/41162013-04-16T17:46:16ZAndrei Tatarnikovandrewt@ispras.ru
<p>При моделировании линейки памяти сейчас создаётся массив (ArrayList) соответствующего размера. При этом, если линейка большой длины, программа расходует всю доступную память и падает. Нужно сделать, чтобы память свыше определённого размера (например, 1 МБ) выделялась по требованию (при обращению).</p>
<p>public static final MemoryBase M = new MemoryBase(EMemoryKind.MEM, "M", byte_t, (int)Math.pow(2, 10));</p>