aboutsummaryrefslogtreecommitdiffstats
path: root/src/hls/HTL.v
diff options
context:
space:
mode:
authorMichalis Pardalos <m.pardalos@gmail.com>2021-08-31 13:05:20 +0100
committerMichalis Pardalos <m.pardalos@gmail.com>2021-08-31 13:56:56 +0100
commit4139d0f8772d20d2836be2ab34a18b5ce580590b (patch)
tree7383dc4009a91506c6431d1d9c5c72273c7d02c8 /src/hls/HTL.v
parentea48228b89194d7904133983f44807289a93f040 (diff)
downloadvericert-4139d0f8772d20d2836be2ab34a18b5ce580590b.tar.gz
vericert-4139d0f8772d20d2836be2ab34a18b5ce580590b.zip
Get Renaming compiling with RAM inference
Diffstat (limited to 'src/hls/HTL.v')
-rw-r--r--src/hls/HTL.v14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/hls/HTL.v b/src/hls/HTL.v
index c22497f..3116af3 100644
--- a/src/hls/HTL.v
+++ b/src/hls/HTL.v
@@ -447,3 +447,17 @@ Definition decide_order a b c d e f g : {module_ordering a b c d e f g} + {True}
| H: context[(_ <? _)%positive] |- _ => apply Pos.ltb_lt in H
end; unfold module_ordering; auto.
Defined.
+
+Definition option_ram_wf (clk : reg) (mr : option HTL.ram) :
+ option (forall r' : ram, mr = Some r' -> (clk < ram_addr r')%positive).
+ refine (
+ match mr with
+ | Some r =>
+ match (plt clk (ram_addr r)) with
+ | left LE => Some _
+ | _ => None
+ end
+ | None => None
+ end).
+ crush.
+Defined.