m2isar 0.0.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- m2isar-0.0.6/.github/actions/wait-for-workflow-results/action.yml +136 -0
- m2isar-0.0.6/.github/workflows/pr_trigger.yml +53 -0
- m2isar-0.0.6/.github/workflows/release.yml +40 -0
- m2isar-0.0.6/.github/workflows/sphinx.yml +50 -0
- m2isar-0.0.6/.github/workflows/trigger.yml +36 -0
- m2isar-0.0.6/.gitignore +149 -0
- m2isar-0.0.6/.pylintrc +618 -0
- m2isar-0.0.6/.vscode/launch.json +241 -0
- m2isar-0.0.6/.vscode/tasks.json +16 -0
- m2isar-0.0.6/LICENSE +201 -0
- m2isar-0.0.6/PKG-INFO +80 -0
- m2isar-0.0.6/README.md +60 -0
- m2isar-0.0.6/doc/Makefile +20 -0
- m2isar-0.0.6/doc/make.bat +35 -0
- m2isar-0.0.6/doc/requirements.txt +3 -0
- m2isar-0.0.6/doc/source/_static/.gitkeep +0 -0
- m2isar-0.0.6/doc/source/_templates/.gitkeep +0 -0
- m2isar-0.0.6/doc/source/conf.py +73 -0
- m2isar-0.0.6/doc/source/coverage.rst +46 -0
- m2isar-0.0.6/doc/source/index.rst +23 -0
- m2isar-0.0.6/doc/source/usage.rst +4 -0
- m2isar-0.0.6/m2isar/__init__.py +45 -0
- m2isar-0.0.6/m2isar/backends/__init__.py +15 -0
- m2isar-0.0.6/m2isar/backends/coverage/__init__.py +11 -0
- m2isar-0.0.6/m2isar/backends/coverage/coverage_dbg.py +114 -0
- m2isar-0.0.6/m2isar/backends/coverage/coverage_lcov.py +274 -0
- m2isar-0.0.6/m2isar/backends/coverage/id_transform.py +143 -0
- m2isar-0.0.6/m2isar/backends/coverage/utils.py +14 -0
- m2isar-0.0.6/m2isar/backends/disass/__init__.py +7 -0
- m2isar-0.0.6/m2isar/backends/disass/disass.py +153 -0
- m2isar-0.0.6/m2isar/backends/etiss/README.md +57 -0
- m2isar-0.0.6/m2isar/backends/etiss/__init__.py +35 -0
- m2isar-0.0.6/m2isar/backends/etiss/architecture_writer.py +263 -0
- m2isar-0.0.6/m2isar/backends/etiss/instruction_generator.py +248 -0
- m2isar-0.0.6/m2isar/backends/etiss/instruction_transform.py +838 -0
- m2isar-0.0.6/m2isar/backends/etiss/instruction_utils.py +214 -0
- m2isar-0.0.6/m2isar/backends/etiss/instruction_writer.py +110 -0
- m2isar-0.0.6/m2isar/backends/etiss/pickle_writer.py +36 -0
- m2isar-0.0.6/m2isar/backends/etiss/replacements.py +36 -0
- m2isar-0.0.6/m2isar/backends/etiss/templates/__init__.py +16 -0
- m2isar-0.0.6/m2isar/backends/etiss/templates/etiss_arch_cmake.mako +36 -0
- m2isar-0.0.6/m2isar/backends/etiss/templates/etiss_arch_cpp.mako +205 -0
- m2isar-0.0.6/m2isar/backends/etiss/templates/etiss_arch_gdbcore.mako +80 -0
- m2isar-0.0.6/m2isar/backends/etiss/templates/etiss_arch_h.mako +117 -0
- m2isar-0.0.6/m2isar/backends/etiss/templates/etiss_arch_lib.mako +69 -0
- m2isar-0.0.6/m2isar/backends/etiss/templates/etiss_arch_specific_cpp.mako +201 -0
- m2isar-0.0.6/m2isar/backends/etiss/templates/etiss_arch_specific_h.mako +131 -0
- m2isar-0.0.6/m2isar/backends/etiss/templates/etiss_arch_struct.mako +40 -0
- m2isar-0.0.6/m2isar/backends/etiss/templates/etiss_function.mako +15 -0
- m2isar-0.0.6/m2isar/backends/etiss/templates/etiss_function_header.mako +0 -0
- m2isar-0.0.6/m2isar/backends/etiss/templates/etiss_function_set_footer.mako +14 -0
- m2isar-0.0.6/m2isar/backends/etiss/templates/etiss_function_set_header.mako +29 -0
- m2isar-0.0.6/m2isar/backends/etiss/templates/etiss_functions_c.mako +15 -0
- m2isar-0.0.6/m2isar/backends/etiss/templates/etiss_instruction.mako +30 -0
- m2isar-0.0.6/m2isar/backends/etiss/templates/etiss_instruction_callback.mako +36 -0
- m2isar-0.0.6/m2isar/backends/etiss/templates/etiss_instruction_set.mako +20 -0
- m2isar-0.0.6/m2isar/backends/etiss/writer.py +182 -0
- m2isar-0.0.6/m2isar/backends/isa_manual/.gitignore +6 -0
- m2isar-0.0.6/m2isar/backends/isa_manual/README.md +25 -0
- m2isar-0.0.6/m2isar/backends/isa_manual/__init__.py +9 -0
- m2isar-0.0.6/m2isar/backends/isa_manual/package.json +5 -0
- m2isar-0.0.6/m2isar/backends/isa_manual/render.sh +5 -0
- m2isar-0.0.6/m2isar/backends/isa_manual/utils.py +45 -0
- m2isar-0.0.6/m2isar/backends/isa_manual/visitor.py +169 -0
- m2isar-0.0.6/m2isar/backends/isa_manual/writer.py +277 -0
- m2isar-0.0.6/m2isar/backends/trace_gen/__init__.py +7 -0
- m2isar-0.0.6/m2isar/backends/trace_gen/backend/CodeBuilder.py +221 -0
- m2isar-0.0.6/m2isar/backends/trace_gen/backend/CodeGenerator.py +54 -0
- m2isar-0.0.6/m2isar/backends/trace_gen/backend/__init__.py +7 -0
- m2isar-0.0.6/m2isar/backends/trace_gen/backend/templates/channel/include/channel.mako +32 -0
- m2isar-0.0.6/m2isar/backends/trace_gen/backend/templates/channel/src/channel.mako +14 -0
- m2isar-0.0.6/m2isar/backends/trace_gen/backend/templates/monitor/include/monitor.mako +21 -0
- m2isar-0.0.6/m2isar/backends/trace_gen/backend/templates/monitor/src/bitfields.mako +8 -0
- m2isar-0.0.6/m2isar/backends/trace_gen/backend/templates/monitor/src/instructionMonitors.mako +42 -0
- m2isar-0.0.6/m2isar/backends/trace_gen/backend/templates/monitor/src/monitor.mako +77 -0
- m2isar-0.0.6/m2isar/backends/trace_gen/backend/templates/monitor/src/traceValueMonitor.mako +6 -0
- m2isar-0.0.6/m2isar/backends/trace_gen/backend/templates/printer/include/printer.mako +45 -0
- m2isar-0.0.6/m2isar/backends/trace_gen/backend/templates/printer/src/instructionPrinters.mako +33 -0
- m2isar-0.0.6/m2isar/backends/trace_gen/backend/templates/printer/src/printer.mako +35 -0
- m2isar-0.0.6/m2isar/backends/trace_gen/common/__init__.py +7 -0
- m2isar-0.0.6/m2isar/backends/trace_gen/common/common.py +38 -0
- m2isar-0.0.6/m2isar/backends/trace_gen/frontend/Parser.py +119 -0
- m2isar-0.0.6/m2isar/backends/trace_gen/frontend/__init__.py +7 -0
- m2isar-0.0.6/m2isar/backends/trace_gen/trace_gen.py +143 -0
- m2isar-0.0.6/m2isar/backends/trace_gen/tracemodel/MetaTraceModel.py +277 -0
- m2isar-0.0.6/m2isar/backends/trace_gen/tracemodel/__init__.py +7 -0
- m2isar-0.0.6/m2isar/backends/viewer/__init__.py +9 -0
- m2isar-0.0.6/m2isar/backends/viewer/treegen.py +226 -0
- m2isar-0.0.6/m2isar/backends/viewer/utils.py +31 -0
- m2isar-0.0.6/m2isar/backends/viewer/viewer.py +207 -0
- m2isar-0.0.6/m2isar/frontends/__init__.py +12 -0
- m2isar-0.0.6/m2isar/frontends/coredsl2/.gitignore +9 -0
- m2isar-0.0.6/m2isar/frontends/coredsl2/CoreDSL2.g4 +319 -0
- m2isar-0.0.6/m2isar/frontends/coredsl2/README.md +81 -0
- m2isar-0.0.6/m2isar/frontends/coredsl2/__init__.py +9 -0
- m2isar-0.0.6/m2isar/frontends/coredsl2/antlr.sh +11 -0
- m2isar-0.0.6/m2isar/frontends/coredsl2/architecture_model_builder.py +535 -0
- m2isar-0.0.6/m2isar/frontends/coredsl2/behavior_model_builder.py +438 -0
- m2isar-0.0.6/m2isar/frontends/coredsl2/expr_interpreter.py +37 -0
- m2isar-0.0.6/m2isar/frontends/coredsl2/importer.py +148 -0
- m2isar-0.0.6/m2isar/frontends/coredsl2/load_order.py +74 -0
- m2isar-0.0.6/m2isar/frontends/coredsl2/parser.py +267 -0
- m2isar-0.0.6/m2isar/frontends/coredsl2/parser_gen/.gitignore +12 -0
- m2isar-0.0.6/m2isar/frontends/coredsl2/parser_gen/CoreDSL2Lexer.py +510 -0
- m2isar-0.0.6/m2isar/frontends/coredsl2/parser_gen/CoreDSL2Listener.py +786 -0
- m2isar-0.0.6/m2isar/frontends/coredsl2/parser_gen/CoreDSL2Parser.py +6378 -0
- m2isar-0.0.6/m2isar/frontends/coredsl2/parser_gen/CoreDSL2Visitor.py +443 -0
- m2isar-0.0.6/m2isar/frontends/coredsl2/parser_gen/__init__.py +16 -0
- m2isar-0.0.6/m2isar/frontends/coredsl2/utils.py +56 -0
- m2isar-0.0.6/m2isar/metamodel/__init__.py +93 -0
- m2isar-0.0.6/m2isar/metamodel/arch.py +611 -0
- m2isar-0.0.6/m2isar/metamodel/behav.py +253 -0
- m2isar-0.0.6/m2isar/metamodel/code_info.py +91 -0
- m2isar-0.0.6/m2isar/metamodel/utils/__init__.py +27 -0
- m2isar-0.0.6/m2isar/metamodel/utils/expr_preprocessor.py +85 -0
- m2isar-0.0.6/m2isar/metamodel/utils/expr_simplifier.py +234 -0
- m2isar-0.0.6/m2isar/metamodel/utils/function_staticness.py +139 -0
- m2isar-0.0.6/m2isar/metamodel/utils/function_throws.py +141 -0
- m2isar-0.0.6/m2isar/metamodel/utils/scalar_staticness.py +151 -0
- m2isar-0.0.6/m2isar.egg-info/PKG-INFO +80 -0
- m2isar-0.0.6/m2isar.egg-info/SOURCES.txt +126 -0
- m2isar-0.0.6/m2isar.egg-info/dependency_links.txt +1 -0
- m2isar-0.0.6/m2isar.egg-info/entry_points.txt +6 -0
- m2isar-0.0.6/m2isar.egg-info/requires.txt +3 -0
- m2isar-0.0.6/m2isar.egg-info/top_level.txt +1 -0
- m2isar-0.0.6/pyproject.toml +49 -0
- m2isar-0.0.6/requirements.txt +12 -0
- m2isar-0.0.6/setup.cfg +4 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
name: 'Build SW Examples'
|
|
2
|
+
description: 'Compile Example Target SW'
|
|
3
|
+
inputs:
|
|
4
|
+
token:
|
|
5
|
+
description: 'GITHUB_TOKEN or a `repo` scoped Personal Access Token (PAT)'
|
|
6
|
+
default: ${{ github.token }}
|
|
7
|
+
repo:
|
|
8
|
+
description: 'Repository to check'
|
|
9
|
+
required: true
|
|
10
|
+
default: ''
|
|
11
|
+
event:
|
|
12
|
+
description: 'Event to filter'
|
|
13
|
+
required: true
|
|
14
|
+
default: 'repository_dispatch'
|
|
15
|
+
trigger:
|
|
16
|
+
description: 'Trigger to check'
|
|
17
|
+
required: true
|
|
18
|
+
default: ''
|
|
19
|
+
path:
|
|
20
|
+
description: 'Path to workflow'
|
|
21
|
+
required: true
|
|
22
|
+
default: ''
|
|
23
|
+
max_attempts:
|
|
24
|
+
description: 'Max number of tries'
|
|
25
|
+
required: true
|
|
26
|
+
default: ''
|
|
27
|
+
wait_time:
|
|
28
|
+
description: 'Number of seconds to sleep between each attempt'
|
|
29
|
+
required: true
|
|
30
|
+
default: 60
|
|
31
|
+
outputs: {}
|
|
32
|
+
|
|
33
|
+
runs:
|
|
34
|
+
using: "composite"
|
|
35
|
+
steps:
|
|
36
|
+
- name: Wait for Workflow Completion
|
|
37
|
+
shell: bash
|
|
38
|
+
run: |
|
|
39
|
+
echo "const https = require('https');
|
|
40
|
+
const MAX_ATTEMPTS = ${{ inputs.max_attempts }};
|
|
41
|
+
let attempt = 0;
|
|
42
|
+
const current_time = new Date();
|
|
43
|
+
console.log('Current Time: ', current_time.toISOString());
|
|
44
|
+
const tenSecsEarlier = new Date(current_time.getTime() - 10000);
|
|
45
|
+
const thirtySecsLater = new Date(current_time.getTime() + 30000);
|
|
46
|
+
async function checkWorkflowStatus() {
|
|
47
|
+
const options = {
|
|
48
|
+
hostname: 'api.github.com',
|
|
49
|
+
path: '/repos/${{ inputs.repo }}/actions/runs',
|
|
50
|
+
method: 'GET',
|
|
51
|
+
headers: {
|
|
52
|
+
'Authorization': 'Bearer ${{ inputs.token }}',
|
|
53
|
+
'Accept': 'application/vnd.github.v3+json',
|
|
54
|
+
'User-Agent': 'Node.js Script'
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
// console.log('Options:', options);
|
|
58
|
+
return new Promise((resolve, reject) => {
|
|
59
|
+
https.get(options, (res) => {
|
|
60
|
+
let data = '';
|
|
61
|
+
res.on('data', (chunk) => {
|
|
62
|
+
data += chunk;
|
|
63
|
+
});
|
|
64
|
+
res.on('end', () => {
|
|
65
|
+
const response = JSON.parse(data);
|
|
66
|
+
if (!response.workflow_runs) {
|
|
67
|
+
console.error('Unexpected response structure:', response);
|
|
68
|
+
reject('Invalid API response');
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
// console.log('Responses:', response.workflow_runs);
|
|
72
|
+
// console.log('Response:', response.workflow_runs[0].status);
|
|
73
|
+
const workflowRuns = response.workflow_runs.filter(run =>
|
|
74
|
+
new Date(run.created_at) > new Date(tenSecsEarlier) &&
|
|
75
|
+
new Date(run.created_at) < new Date(thirtySecsLater) &&
|
|
76
|
+
run.event === '${{ inputs.event }}' &&
|
|
77
|
+
run.display_title === '${{ inputs.trigger }}' &&
|
|
78
|
+
run.path === '${{ inputs.path }}'
|
|
79
|
+
);
|
|
80
|
+
// console.log('workflowRuns:', workflowRuns);
|
|
81
|
+
if (workflowRuns.length > 0) {
|
|
82
|
+
const status = workflowRuns[0].status;
|
|
83
|
+
const url = workflowRuns[0].html_url;
|
|
84
|
+
const conclusion = workflowRuns[0].conclusion;
|
|
85
|
+
console.log('URL of the matching workflow run: ', url);
|
|
86
|
+
console.log('Status of the matching workflow run: ', status);
|
|
87
|
+
// Check if the workflow run is completed
|
|
88
|
+
if (status === 'completed') {
|
|
89
|
+
console.log('Completed matching workflow run: ', status, conclusion);
|
|
90
|
+
resolve({ status, conclusion }); // Resolving both status and conclusion
|
|
91
|
+
} else {
|
|
92
|
+
console.log('Workflow run is not completed yet');
|
|
93
|
+
resolve({ status, conclusion: null }); // Conclusion is null if not completed
|
|
94
|
+
}
|
|
95
|
+
} else {
|
|
96
|
+
console.log('No workflow runs found');
|
|
97
|
+
reject('No workflow runs found'); // Reject if no workflow runs are found
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}).on('error', (e) => {
|
|
101
|
+
console.error(e);
|
|
102
|
+
reject(e);
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
async function waitForWorkflowCompletion() {
|
|
107
|
+
let res = {};
|
|
108
|
+
while (attempt < MAX_ATTEMPTS) {
|
|
109
|
+
try {
|
|
110
|
+
res = await checkWorkflowStatus();
|
|
111
|
+
} catch (error) {
|
|
112
|
+
console.error('Error checking workflow status:', error);
|
|
113
|
+
}
|
|
114
|
+
// ... handle status and conclusion ...
|
|
115
|
+
if (res && res.status === 'completed' && res.conclusion === 'success') {
|
|
116
|
+
console.log('Workflow completed and test passed!');
|
|
117
|
+
break
|
|
118
|
+
} else if (res && res.status === 'completed' && res.conclusion === 'failure') {
|
|
119
|
+
console.log('Workflow status is failed...');
|
|
120
|
+
process.exit(1);
|
|
121
|
+
} else if (res?.status !== '') {
|
|
122
|
+
console.log('Workflow status is ' + res?.status + '. Waiting for completion...');
|
|
123
|
+
} else {
|
|
124
|
+
console.log('Workflow status is unknown. Waiting for completion...');
|
|
125
|
+
}
|
|
126
|
+
attempt++;
|
|
127
|
+
console.log('Attempt: ' + attempt);
|
|
128
|
+
await new Promise(resolve => setTimeout(resolve, ${{ inputs.wait_time }} * 1000));
|
|
129
|
+
}
|
|
130
|
+
if (attempt === MAX_ATTEMPTS) {
|
|
131
|
+
console.log('Max attempts reached without completion. Exiting.');
|
|
132
|
+
process.exit(1);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
waitForWorkflowCompletion();" > script.js
|
|
136
|
+
node script.js
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
##
|
|
2
|
+
## Copyright (c) 2024 TUM Department of Electrical and Computer Engineering.
|
|
3
|
+
##
|
|
4
|
+
## This file is part of Seal5.
|
|
5
|
+
## See https://github.com/tum-ei-eda/seal5.git for further info.
|
|
6
|
+
##
|
|
7
|
+
## Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
## you may not use this file except in compliance with the License.
|
|
9
|
+
## You may obtain a copy of the License at
|
|
10
|
+
##
|
|
11
|
+
## http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
##
|
|
13
|
+
## Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
## distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
## See the License for the specific language governing permissions and
|
|
17
|
+
## limitations under the License.
|
|
18
|
+
##
|
|
19
|
+
|
|
20
|
+
name: Trigger ETISS Test Flow and wait for completion
|
|
21
|
+
|
|
22
|
+
on:
|
|
23
|
+
pull_request:
|
|
24
|
+
branches: [ "coredsl2" ]
|
|
25
|
+
paths:
|
|
26
|
+
- m2isar/frontends/coredsl2/**
|
|
27
|
+
- m2isar/metamodel/**
|
|
28
|
+
- m2isar/backends/etiss/**
|
|
29
|
+
- .github/workflows/**
|
|
30
|
+
- .github/actions/**
|
|
31
|
+
|
|
32
|
+
jobs:
|
|
33
|
+
trigger_repo:
|
|
34
|
+
runs-on: ubuntu-latest
|
|
35
|
+
steps:
|
|
36
|
+
- uses: actions/checkout@v4
|
|
37
|
+
- name: Trigger Seal5 ETISS Test Flow
|
|
38
|
+
uses: peter-evans/repository-dispatch@v3
|
|
39
|
+
with:
|
|
40
|
+
token: ${{ secrets.SEAL5_ACCESS_TOKEN }}
|
|
41
|
+
repository: tum-ei-eda/seal5_etiss_test_env
|
|
42
|
+
event-type: m2isar-event
|
|
43
|
+
client-payload: '{"triggered_run_id": "${{ github.run_id }}", "ref": "${{ github.event.pull_request.head.sha }}", "from": "m2isar", "is_pr": "true"}'
|
|
44
|
+
|
|
45
|
+
- name: Wait for Results
|
|
46
|
+
uses: ./.github/actions/wait-for-workflow-results
|
|
47
|
+
with:
|
|
48
|
+
repo: 'tum-ei-eda/seal5_etiss_test_env'
|
|
49
|
+
token: ${{ secrets.SEAL5_ACCESS_TOKEN }}
|
|
50
|
+
event: 'repository_dispatch'
|
|
51
|
+
trigger: 'm2isar-event'
|
|
52
|
+
path: '.github/workflows/default.yml'
|
|
53
|
+
max_attempts: 30
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
# Sequence of patterns matched against refs/tags
|
|
5
|
+
tags:
|
|
6
|
+
- \d+.\d+.\d+ # Push events for 0.1.0, 20.15.10 but not 0.1.0dev0
|
|
7
|
+
name: Create Release
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
name: Create Release
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
if: ${{ github.repository == 'tum-ei-eda/M2-ISA-R' }}
|
|
13
|
+
steps:
|
|
14
|
+
- name: Checkout code
|
|
15
|
+
uses: actions/checkout@v4
|
|
16
|
+
- name: Create Release
|
|
17
|
+
id: create_release
|
|
18
|
+
uses: actions/create-release@v1
|
|
19
|
+
env:
|
|
20
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
|
21
|
+
with:
|
|
22
|
+
tag_name: ${{ github.ref }}
|
|
23
|
+
release_name: Release ${{ github.ref }}
|
|
24
|
+
draft: true
|
|
25
|
+
prerelease: false
|
|
26
|
+
publish:
|
|
27
|
+
name: Publish to PyPI
|
|
28
|
+
runs-on: ubuntu-latest
|
|
29
|
+
if: ${{ github.repository == 'tum-ei-eda/M2-ISA-R' }}
|
|
30
|
+
steps:
|
|
31
|
+
- name: Checkout code
|
|
32
|
+
uses: actions/checkout@v4
|
|
33
|
+
- name: Build package
|
|
34
|
+
run: |
|
|
35
|
+
python -m pip install build twine
|
|
36
|
+
python -m build
|
|
37
|
+
- name: Publish to PyPI
|
|
38
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
39
|
+
with:
|
|
40
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
name: Generate Sphinx Docs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- coredsl2
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
pages: write
|
|
11
|
+
id-token: write
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
sphinx:
|
|
15
|
+
environment:
|
|
16
|
+
name: github-pages
|
|
17
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
18
|
+
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v4
|
|
23
|
+
|
|
24
|
+
- name: Set up Python 3.10
|
|
25
|
+
uses: actions/setup-python@v5
|
|
26
|
+
with:
|
|
27
|
+
python-version: "3.10"
|
|
28
|
+
|
|
29
|
+
- name: Install dependencies
|
|
30
|
+
run: |
|
|
31
|
+
sudo apt-get install graphviz
|
|
32
|
+
pip install --upgrade pip setuptools wheel
|
|
33
|
+
pip install -r doc/requirements.txt
|
|
34
|
+
|
|
35
|
+
- name: Build docs
|
|
36
|
+
working-directory: doc
|
|
37
|
+
run: |
|
|
38
|
+
make html
|
|
39
|
+
|
|
40
|
+
- name: Setup Pages
|
|
41
|
+
uses: actions/configure-pages@v5
|
|
42
|
+
|
|
43
|
+
- name: Upload artifact
|
|
44
|
+
uses: actions/upload-pages-artifact@v3
|
|
45
|
+
with:
|
|
46
|
+
path: doc/build/html
|
|
47
|
+
|
|
48
|
+
- name: Deploy to GitHub Pages
|
|
49
|
+
id: deployment
|
|
50
|
+
uses: actions/deploy-pages@v4
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
##
|
|
2
|
+
## Copyright (c) 2024 TUM Department of Electrical and Computer Engineering.
|
|
3
|
+
##
|
|
4
|
+
## This file is part of Seal5.
|
|
5
|
+
## See https://github.com/tum-ei-eda/seal5.git for further info.
|
|
6
|
+
##
|
|
7
|
+
## Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
## you may not use this file except in compliance with the License.
|
|
9
|
+
## You may obtain a copy of the License at
|
|
10
|
+
##
|
|
11
|
+
## http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
##
|
|
13
|
+
## Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
## distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
## See the License for the specific language governing permissions and
|
|
17
|
+
## limitations under the License.
|
|
18
|
+
##
|
|
19
|
+
|
|
20
|
+
name: Trigger Seal5 ETISS Test Flow
|
|
21
|
+
|
|
22
|
+
on:
|
|
23
|
+
push:
|
|
24
|
+
branches: [ "coredsl2" ]
|
|
25
|
+
|
|
26
|
+
jobs:
|
|
27
|
+
trigger_repo:
|
|
28
|
+
runs-on: ubuntu-latest
|
|
29
|
+
steps:
|
|
30
|
+
- name: Trigger Seal5 ETISS Test Flow
|
|
31
|
+
uses: peter-evans/repository-dispatch@v3
|
|
32
|
+
with:
|
|
33
|
+
token: ${{ secrets.SEAL5_ACCESS_TOKEN }}
|
|
34
|
+
repository: tum-ei-eda/seal5_etiss_test_env
|
|
35
|
+
event-type: m2isar-event
|
|
36
|
+
client-payload: '{"triggered_run_id": "${{ github.run_id }}", "ref": "${{ github.sha }}", "from": "m2isar"}'
|
m2isar-0.0.6/.gitignore
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
#
|
|
3
|
+
# This file is part of the M2-ISA-R project: https://github.com/tum-ei-eda/M2-ISA-R
|
|
4
|
+
#
|
|
5
|
+
# Copyright (C) 2022
|
|
6
|
+
# Chair of Electrical Design Automation
|
|
7
|
+
# Technical University of Munich
|
|
8
|
+
|
|
9
|
+
# Byte-compiled / optimized / DLL files
|
|
10
|
+
__pycache__/
|
|
11
|
+
*.py[cod]
|
|
12
|
+
*$py.class
|
|
13
|
+
|
|
14
|
+
# C extensions
|
|
15
|
+
*.so
|
|
16
|
+
|
|
17
|
+
# Distribution / packaging
|
|
18
|
+
.Python
|
|
19
|
+
build/
|
|
20
|
+
develop-eggs/
|
|
21
|
+
dist/
|
|
22
|
+
downloads/
|
|
23
|
+
eggs/
|
|
24
|
+
.eggs/
|
|
25
|
+
lib/
|
|
26
|
+
lib64/
|
|
27
|
+
parts/
|
|
28
|
+
sdist/
|
|
29
|
+
var/
|
|
30
|
+
wheels/
|
|
31
|
+
share/python-wheels/
|
|
32
|
+
*.egg-info/
|
|
33
|
+
.installed.cfg
|
|
34
|
+
*.egg
|
|
35
|
+
MANIFEST
|
|
36
|
+
|
|
37
|
+
# PyInstaller
|
|
38
|
+
# Usually these files are written by a python script from a template
|
|
39
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
40
|
+
*.manifest
|
|
41
|
+
*.spec
|
|
42
|
+
|
|
43
|
+
# Installer logs
|
|
44
|
+
pip-log.txt
|
|
45
|
+
pip-delete-this-directory.txt
|
|
46
|
+
|
|
47
|
+
# Unit test / coverage reports
|
|
48
|
+
htmlcov/
|
|
49
|
+
.tox/
|
|
50
|
+
.nox/
|
|
51
|
+
.coverage
|
|
52
|
+
.coverage.*
|
|
53
|
+
.cache
|
|
54
|
+
nosetests.xml
|
|
55
|
+
coverage.xml
|
|
56
|
+
*.cover
|
|
57
|
+
*.py,cover
|
|
58
|
+
.hypothesis/
|
|
59
|
+
.pytest_cache/
|
|
60
|
+
cover/
|
|
61
|
+
|
|
62
|
+
# Translations
|
|
63
|
+
*.mo
|
|
64
|
+
*.pot
|
|
65
|
+
|
|
66
|
+
# Django stuff:
|
|
67
|
+
*.log
|
|
68
|
+
local_settings.py
|
|
69
|
+
db.sqlite3
|
|
70
|
+
db.sqlite3-journal
|
|
71
|
+
|
|
72
|
+
# Flask stuff:
|
|
73
|
+
instance/
|
|
74
|
+
.webassets-cache
|
|
75
|
+
|
|
76
|
+
# Scrapy stuff:
|
|
77
|
+
.scrapy
|
|
78
|
+
|
|
79
|
+
# Sphinx documentation
|
|
80
|
+
docs/_build/
|
|
81
|
+
|
|
82
|
+
# PyBuilder
|
|
83
|
+
.pybuilder/
|
|
84
|
+
target/
|
|
85
|
+
|
|
86
|
+
# Jupyter Notebook
|
|
87
|
+
.ipynb_checkpoints
|
|
88
|
+
|
|
89
|
+
# IPython
|
|
90
|
+
profile_default/
|
|
91
|
+
ipython_config.py
|
|
92
|
+
|
|
93
|
+
# pyenv
|
|
94
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
95
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
96
|
+
# .python-version
|
|
97
|
+
|
|
98
|
+
# pipenv
|
|
99
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
100
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
101
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
102
|
+
# install all needed dependencies.
|
|
103
|
+
#Pipfile.lock
|
|
104
|
+
|
|
105
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
106
|
+
__pypackages__/
|
|
107
|
+
|
|
108
|
+
# Celery stuff
|
|
109
|
+
celerybeat-schedule
|
|
110
|
+
celerybeat.pid
|
|
111
|
+
|
|
112
|
+
# SageMath parsed files
|
|
113
|
+
*.sage.py
|
|
114
|
+
|
|
115
|
+
# Environments
|
|
116
|
+
.env
|
|
117
|
+
.venv
|
|
118
|
+
env/
|
|
119
|
+
venv/
|
|
120
|
+
ENV/
|
|
121
|
+
env.bak/
|
|
122
|
+
venv.bak/
|
|
123
|
+
|
|
124
|
+
# Spyder project settings
|
|
125
|
+
.spyderproject
|
|
126
|
+
.spyproject
|
|
127
|
+
|
|
128
|
+
# Rope project settings
|
|
129
|
+
.ropeproject
|
|
130
|
+
|
|
131
|
+
# mkdocs documentation
|
|
132
|
+
/site
|
|
133
|
+
|
|
134
|
+
# mypy
|
|
135
|
+
.mypy_cache/
|
|
136
|
+
.dmypy.json
|
|
137
|
+
dmypy.json
|
|
138
|
+
|
|
139
|
+
# Pyre type checker
|
|
140
|
+
.pyre/
|
|
141
|
+
|
|
142
|
+
# pytype static type analyzer
|
|
143
|
+
.pytype/
|
|
144
|
+
|
|
145
|
+
# Cython debug symbols
|
|
146
|
+
cython_debug/
|
|
147
|
+
.vscode/settings.json
|
|
148
|
+
.vscode/ipch
|
|
149
|
+
.vscode/browse*
|