Skip to content
Snippets Groups Projects
Commit c434eb48 authored by BRONES Romain's avatar BRONES Romain
Browse files

fix(rdl): Switch to signed representation

* Use DESYRDL specific property
parent 2cce8d21
Branches
Tags
No related merge requests found
...@@ -56,83 +56,99 @@ addrmap corr_matrix { ...@@ -56,83 +56,99 @@ addrmap corr_matrix {
reg { reg {
desc="Correction coefficient A."; desc="Correction coefficient A.";
desyrdl_data_type="int32";
field {sw = rw; hw = r;} data[`C_W_COR_COEF]; field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_K1A_X; } CORR_K1A_X;
reg { reg {
desc="Correction coefficient B."; desc="Correction coefficient B.";
desyrdl_data_type="int32";
field {sw = rw; hw = r;} data[`C_W_COR_COEF]; field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_K1B_X; } CORR_K1B_X;
reg { reg {
desc="Correction coefficient (inverse) C."; desc="Correction coefficient (inverse) C.";
desyrdl_data_type="int32";
field {sw = rw; hw = r;} data[`C_W_COR_COEF]; field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_K1IC_X; } CORR_K1IC_X;
reg { reg {
desc="Correction coefficient D."; desc="Correction coefficient D.";
desyrdl_data_type="int32";
field {sw = rw; hw = r;} data[`C_W_COR_COEF]; field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_K1D_X; } CORR_K1D_X;
reg { reg {
desc="Correction coefficient A."; desc="Correction coefficient A.";
desyrdl_data_type="int32";
field {sw = rw; hw = r;} data[`C_W_COR_COEF]; field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_K2A_X; } CORR_K2A_X;
reg { reg {
desc="Correction coefficient B."; desc="Correction coefficient B.";
desyrdl_data_type="int32";
field {sw = rw; hw = r;} data[`C_W_COR_COEF]; field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_K2B_X; } CORR_K2B_X;
reg { reg {
desc="Correction coefficient (inverse) C."; desc="Correction coefficient (inverse) C.";
desyrdl_data_type="int32";
field {sw = rw; hw = r;} data[`C_W_COR_COEF]; field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_K2IC_X; } CORR_K2IC_X;
reg { reg {
desc="Correction coefficient D."; desc="Correction coefficient D.";
desyrdl_data_type="int32";
field {sw = rw; hw = r;} data[`C_W_COR_COEF]; field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_K2D_X; } CORR_K2D_X;
reg { reg {
desc="Correction coefficient A."; desc="Correction coefficient A.";
desyrdl_data_type="int32";
field {sw = rw; hw = r;} data[`C_W_COR_COEF]; field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_K1A_Y; } CORR_K1A_Y;
reg { reg {
desc="Correction coefficient B."; desc="Correction coefficient B.";
desyrdl_data_type="int32";
field {sw = rw; hw = r;} data[`C_W_COR_COEF]; field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_K1B_Y; } CORR_K1B_Y;
reg { reg {
desc="Correction coefficient (inverse) C."; desc="Correction coefficient (inverse) C.";
desyrdl_data_type="int32";
field {sw = rw; hw = r;} data[`C_W_COR_COEF]; field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_K1IC_Y; } CORR_K1IC_Y;
reg { reg {
desc="Correction coefficient D."; desc="Correction coefficient D.";
desyrdl_data_type="int32";
field {sw = rw; hw = r;} data[`C_W_COR_COEF]; field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_K1D_Y; } CORR_K1D_Y;
reg { reg {
desc="Correction coefficient A."; desc="Correction coefficient A.";
desyrdl_data_type="int32";
field {sw = rw; hw = r;} data[`C_W_COR_COEF]; field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_K2A_Y; } CORR_K2A_Y;
reg { reg {
desc="Correction coefficient B."; desc="Correction coefficient B.";
desyrdl_data_type="int32";
field {sw = rw; hw = r;} data[`C_W_COR_COEF]; field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_K2B_Y; } CORR_K2B_Y;
reg { reg {
desc="Correction coefficient (inverse) C."; desc="Correction coefficient (inverse) C.";
desyrdl_data_type="int32";
field {sw = rw; hw = r;} data[`C_W_COR_COEF]; field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_K2IC_Y; } CORR_K2IC_Y;
reg { reg {
desc="Correction coefficient D."; desc="Correction coefficient D.";
desyrdl_data_type="int32";
field {sw = rw; hw = r;} data[`C_W_COR_COEF]; field {sw = rw; hw = r;} data[`C_W_COR_COEF];
} CORR_K2D_Y; } CORR_K2D_Y;
...@@ -143,12 +159,14 @@ addrmap corr_matrix { ...@@ -143,12 +159,14 @@ addrmap corr_matrix {
mem { mem {
desc = "X Reference orbit."; desc = "X Reference orbit.";
desyrdl_data_type="int32";
memwidth = 32; memwidth = 32;
mementries = 2**`C_W_MM_IDCNT; mementries = 2**`C_W_MM_IDCNT;
} external REFORBITX; } external REFORBITX;
mem { mem {
desc = "Y Reference orbit."; desc = "Y Reference orbit.";
desyrdl_data_type="int32";
memwidth = 32; memwidth = 32;
mementries = 2**`C_W_MM_IDCNT; mementries = 2**`C_W_MM_IDCNT;
} external REFORBITY; } external REFORBITY;
...@@ -162,12 +180,14 @@ addrmap corr_matrix { ...@@ -162,12 +180,14 @@ addrmap corr_matrix {
mem { mem {
desc = "Matrix multiplication coefficients."; desc = "Matrix multiplication coefficients.";
desyrdl_data_type="int32";
memwidth = 32; memwidth = 32;
mementries = 2**`C_W_MM_IDCNT; mementries = 2**`C_W_MM_IDCNT;
} external MATRIXCOEF[`C_N_MM_PSC]; } external MATRIXCOEF[`C_N_MM_PSC];
mem { mem {
desc = "X Average orbit error"; desc = "X Average orbit error";
desyrdl_data_type="int32";
sw=r; sw=r;
memwidth = 32; memwidth = 32;
mementries = 2**`C_W_MM_IDCNT; mementries = 2**`C_W_MM_IDCNT;
...@@ -175,6 +195,7 @@ addrmap corr_matrix { ...@@ -175,6 +195,7 @@ addrmap corr_matrix {
mem { mem {
desc = "Y Average orbit error"; desc = "Y Average orbit error";
desyrdl_data_type="int32";
sw=r; sw=r;
memwidth = 32; memwidth = 32;
mementries = 2**`C_W_MM_IDCNT; mementries = 2**`C_W_MM_IDCNT;
...@@ -182,6 +203,7 @@ addrmap corr_matrix { ...@@ -182,6 +203,7 @@ addrmap corr_matrix {
mem { mem {
desc = "Average correction, both planes"; desc = "Average correction, both planes";
desyrdl_data_type="int32";
sw=r; sw=r;
memwidth = 32; memwidth = 32;
mementries = 2**`C_W_PSCID; mementries = 2**`C_W_PSCID;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment