Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
storebuffer
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tacoq
storebuffer
Commits
1c22af68
Commit
1c22af68
authored
2 years ago
by
Alban Gruin
Browse files
Options
Downloads
Patches
Plain Diff
definitions: add a function to compare the whole pipeline
Signed-off-by:
Alban Gruin
<
alban.gruin@irit.fr
>
parent
2b6149c0
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/definitions.v
+9
-0
9 additions, 0 deletions
src/definitions.v
with
9 additions
and
0 deletions
src/definitions.v
+
9
−
0
View file @
1c22af68
...
...
@@ -229,6 +229,15 @@ Proof.
+
contradiction
.
Qed
.
(
*
Pipeline
comparison
.
*
)
Definition
pipeline_leb
p1
p2
:=
let
comb
:=
List
.
combine
p1
p2
in
Nat
.
eqb
(
List
.
length
p1
)
(
List
.
length
p2
)
&&
List
.
forallb
(
fun
instrs
=>
match
instrs
with
|
((
o1
,
st1
),
(
o2
,
st2
))
=>
opcode_beq
o1
o2
&&
state_leb
st1
st2
end
)
comb
.
(
*
Pipeline
validity
.
*
)
Definition
single_in_stage
trace
st
:=
List
.
count_occ
stage_eq_dec
(
get_stg
trace
)
st
<=?
1.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment