]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/contribs/ng_assembly/emulator/model/IP2022_model.ma
mod change (-x)
[helm.git] / helm / software / matita / contribs / ng_assembly / emulator / model / IP2022_model.ma
old mode 100755 (executable)
new mode 100644 (file)
index 30e8f1f..a83028e
@@ -35,7 +35,9 @@ ndefinition memory_type_of_FamilyIP2022 ≝
 λm:IP2022_model.match m with
   [ IP2K ⇒
    [
-(* 0x00000080-0x00000FFF *)   triple … 〈〈〈x0,x0〉:〈x0,x0〉〉.〈〈x0,x0〉:〈x8,x0〉〉〉 〈〈x0,xF〉:〈x8,x0〉〉 MEM_READ_WRITE (* 3968 GPR+RAM+STACK *)
+(* 0x02-0x13, 0x7E-0x7F registri memory mapped *)
+(* 0x00000002-0x0000007F *)   triple … 〈〈〈x0,x0〉:〈x0,x0〉〉.〈〈x0,x0〉:〈x0,x2〉〉〉 〈〈x0,x0〉:〈x7,xE〉〉 MEM_READ_ONLY  (* 126B SystemMemoryReg *)
+(* 0x00000080-0x00000FFF *) ; triple … 〈〈〈x0,x0〉:〈x0,x0〉〉.〈〈x0,x0〉:〈x8,x0〉〉〉 〈〈x0,xF〉:〈x8,x0〉〉 MEM_READ_WRITE (* 3968 UserMemoryReg+RAM+STACK *)
 (* 0x02000000-0x02003FFF *) ; triple … 〈〈〈x0,x2〉:〈x0,x0〉〉.〈〈x0,x0〉:〈x0,x0〉〉〉 〈〈x4,x0〉:〈x0,x0〉〉 MEM_READ_WRITE (* 16384B PROGRAM RAM *)
 (* 0x02010000-0x02013FFF *) ; triple … 〈〈〈x0,x2〉:〈x0,x1〉〉.〈〈x0,x0〉:〈x0,x0〉〉〉 〈〈x4,x0〉:〈x0,x0〉〉 MEM_READ_ONLY  (* 16384B PROGRAM FLASH *)
 (* 0x02014000-0x02017FFF *) ; triple … 〈〈〈x0,x2〉:〈x0,x1〉〉.〈〈x4,x0〉:〈x0,x0〉〉〉 〈〈x4,x0〉:〈x0,x0〉〉 MEM_READ_ONLY  (* 16384B PROGRAM FLASH *)
@@ -49,12 +51,10 @@ ndefinition IP2022_gpr_base ≝ 〈〈〈x0,x0〉:〈x0,x0〉〉.〈〈x0,x0〉:
 (* punto di riferimento per accessi ($PC) ($ADDR) *)
 ndefinition IP2022_ram_base ≝ 〈〈〈x0,x2〉:〈x0,x0〉〉.〈〈x0,x0〉:〈x0,x0〉〉〉.
 
-(*
-   parametrizzati i non deterministici rispetto a tutti i valori casuali
+(* parametrizzati i non deterministici rispetto a tutti i valori casuali
    che verranno dati dall'esterno di tipo byte8 (ndby1-2) e bool (ndbo1-5).
    l'ACCENSIONE e' totalmente equivalente ad un reset causato da calo di tensione
-   (reset V-low), la memoria ed il check possono essere passati
-*)
+   (reset V-low), la memoria ed il check possono essere passati *)
 ndefinition start_of_model_IP2022 ≝
 λmcu:IP2022_model.λt:memory_impl.
 λmem:aux_mem_type t.λchk:aux_chk_type t.
@@ -81,11 +81,9 @@ ndefinition start_of_model_IP2022 ≝
    (* chk *) chk
    (* clk: reset *) (None ?)).
 
-(* 
-   cio' che non viene resettato mantiene il valore precedente: nella documentazione
+(* cio' che non viene resettato mantiene il valore precedente: nella documentazione
    viene riportato come "unaffected"/"indeterminate"/"unpredictable"
-   il soft RESET e' diverso da un calo di tensione e la ram non variera'
-*)
+   il soft RESET e' diverso da un calo di tensione e la ram non variera' *)
 ndefinition reset_of_model_IP2022 ≝
 λt:memory_impl.λs:any_status IP2022 t.
  (mk_any_status IP2022 t