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
c59de73d
Commit
c59de73d
authored
3 years ago
by
Alban Gruin
Browse files
Options
Downloads
Patches
Plain Diff
rc: move sbStateT to definitions
Signed-off-by:
Alban Gruin
<
alban.gruin@irit.fr
>
parent
c6795c42
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/correct_store_buffer.v
+0
-10
0 additions, 10 deletions
src/correct_store_buffer.v
src/definitions.v
+11
-1
11 additions, 1 deletion
src/definitions.v
with
11 additions
and
11 deletions
src/correct_store_buffer.v
+
0
−
10
View file @
c59de73d
...
@@ -2,17 +2,7 @@ Require Import Bool Lia List Nat PeanoNat.
...
@@ -2,17 +2,7 @@ Require Import Bool Lia List Nat PeanoNat.
From
StoreBuffer
Require
Import
definitions
utils
.
From
StoreBuffer
Require
Import
definitions
utils
.
Import
ListNotations
.
Import
ListNotations
.
Variant
sbStateT
:=
|
Empty
|
NotEmpty
|
Full
.
Scheme
Equality
for
sbStateT
.
(
*
free
and
cycle
functions
.
*
)
(
*
free
and
cycle
functions
.
*
)
Definition
busFree
isSuUsed
sbState
:=
(
sbStateT_beq
sbState
Empty
)
&&
(
negb
isSuUsed
).
Definition
ready
isSuUsed
sbState
(
elt
:
instr_kind
)
:=
Definition
ready
isSuUsed
sbState
(
elt
:
instr_kind
)
:=
match
elt
with
match
elt
with
|
(
Load
,
(
Lsu
,
0
))
=>
busFree
isSuUsed
sbState
|
(
Load
,
(
Lsu
,
0
))
=>
busFree
isSuUsed
sbState
...
...
This diff is collapsed.
Click to expand it.
src/definitions.v
+
11
−
1
View file @
c59de73d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
Require
Import
Bool
List
Nat
.
Require
Import
Bool
List
Nat
.
Import
ListNotations
.
Import
ListNotations
.
(
*
Basic
definitions
:
opcodes
and
sta
ges
.
*
)
(
*
Basic
definitions
:
opcodes
,
stages
,
store
buffer
sta
te
.
*
)
Variant
opcode
:=
Variant
opcode
:=
|
Load
|
Load
|
Store
.
|
Store
.
...
@@ -97,6 +97,16 @@ Proof.
...
@@ -97,6 +97,16 @@ Proof.
reflexivity
.
reflexivity
.
Qed
.
Qed
.
Variant
sbStateT
:=
|
Empty
|
NotEmpty
|
Full
.
Scheme
Equality
for
sbStateT
.
Definition
busFree
isSuUsed
sbState
:=
(
sbStateT_beq
sbState
Empty
)
&&
(
negb
isSuUsed
).
(
*
State
of
an
instruction
in
the
pipeline
.
*
)
(
*
State
of
an
instruction
in
the
pipeline
.
*
)
Definition
state
:=
(
stage
*
nat
)
%
type
.
Definition
state
:=
(
stage
*
nat
)
%
type
.
...
...
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