DBT-RISE-TGC/gen_input/templates/CORENAME_instr.yaml.gtl

22 lines
672 B
Plaintext
Raw Normal View History

<% def getInstructionGroups() {
def instrGroups = [:]
instructions.each {
def groupName = it['instruction'].eContainer().name
if(!instrGroups.containsKey(groupName)) {
instrGroups[groupName]=[]
}
instrGroups[groupName]+=it;
}
instrGroups
2023-10-21 17:19:24 +02:00
}%><%int index = 0; getInstructionGroups().each{name, instrList -> %>
2023-09-30 22:10:24 +02:00
${name}: <% instrList.each { %>
${it.instruction.name}:
2023-10-21 17:19:24 +02:00
index: ${index++}
encoding: ${it.encoding}
mask: ${it.mask}<%if(it.attributes.size) {%>
attributes: ${it.attributes}<%}%>
2023-06-12 09:58:24 +02:00
size: ${it.length}
branch: ${it.modifiesPC}
delay: ${it.isConditional?"[1,1]":"1"}<%}}%>