Skip to content

Commit 05ae52e

Browse files
authored
feat: integrate trm assembly module (#775)
1 parent 91b41d2 commit 05ae52e

File tree

18 files changed

+65
-242
lines changed

18 files changed

+65
-242
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ BLS_CANCUN := blsdata/cancun
2525
BLS_PRAGUE := blsdata/prague
2626

2727
CONSTANTS := constants/constants.lisp
28-
CONSTANTS_LONDON := constants/london/constants.lisp
29-
CONSTANTS_CANCUN := constants/cancun/constants.lisp
30-
CONSTANTS_PRAGUE := constants/prague/constants.lisp
28+
CONSTANTS_LONDON := constants/london/constants.zkasm
29+
CONSTANTS_CANCUN := constants/cancun/constants.zkasm
30+
CONSTANTS_PRAGUE := constants/prague/constants.zkasm
3131

3232
EC_DATA := ecdata
3333

@@ -87,7 +87,7 @@ TABLES_LONDON := reftables/*.lisp reftables/london/*.lisp
8787
TABLES_CANCUN := reftables/*.lisp reftables/cancun/*.lisp
8888
TABLES_PRAGUE := reftables/*.lisp reftables/prague/*.lisp
8989

90-
TRM := trm
90+
TRM := trm/trm.zkasm
9191

9292
TXN_DATA_LONDON := txndata/london
9393
TXN_DATA_SHANGHAI := txndata/shanghai

constants/cancun/constants.lisp

Lines changed: 0 additions & 8 deletions
This file was deleted.

constants/cancun/constants.zkasm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
const MAX_PRC_ADDRESS = 0x0a

constants/london/constants.lisp

Lines changed: 0 additions & 8 deletions
This file was deleted.

constants/london/constants.zkasm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
const MAX_PRC_ADDRESS = 0x09

constants/prague/constants.lisp

Lines changed: 0 additions & 8 deletions
This file was deleted.

constants/prague/constants.zkasm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
const MAX_PRC_ADDRESS = 0x11

hub/cancun/lookups/hub_into_trm.lisp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,16 @@
55
(defclookup hub-into-trm
66
;; target columns
77
(
8-
trm.TRM_ADDRESS_HI
9-
trm.RAW_ADDRESS_HI
10-
trm.RAW_ADDRESS_LO
8+
trm.RAW_ADDRESS
9+
trm.ADDRESS_HI
1110
trm.IS_PRECOMPILE
1211
)
1312
;; source selector
1413
(hub-into-trm-trigger)
1514
;; source columns
1615
(
16+
(:: hub.account/TRM_RAW_ADDRESS_HI hub.account/ADDRESS_LO)
1717
hub.account/ADDRESS_HI
18-
hub.account/TRM_RAW_ADDRESS_HI
19-
hub.account/ADDRESS_LO
2018
hub.account/IS_PRECOMPILE
2119
)
2220
)

hub/london/lookups/hub_into_trm.lisp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,16 @@
55
(defclookup hub-into-trm
66
;; target columns
77
(
8-
trm.TRM_ADDRESS_HI
9-
trm.RAW_ADDRESS_HI
10-
trm.RAW_ADDRESS_LO
8+
trm.RAW_ADDRESS
9+
trm.ADDRESS_HI
1110
trm.IS_PRECOMPILE
1211
)
1312
;; source selector
1413
(hub-into-trm-trigger)
1514
;; source columns
1615
(
16+
(:: hub.account/TRM_RAW_ADDRESS_HI hub.account/ADDRESS_LO)
1717
hub.account/ADDRESS_HI
18-
hub.account/TRM_RAW_ADDRESS_HI
19-
hub.account/ADDRESS_LO
2018
hub.account/IS_PRECOMPILE
2119
)
2220
)

hub/prague/lookups/hub_into_trm.lisp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,16 @@
55
(defclookup hub-into-trm
66
;; target columns
77
(
8-
trm.TRM_ADDRESS_HI
9-
trm.RAW_ADDRESS_HI
10-
trm.RAW_ADDRESS_LO
8+
trm.RAW_ADDRESS
9+
trm.ADDRESS_HI
1110
trm.IS_PRECOMPILE
1211
)
1312
;; source selector
1413
(hub-into-trm-trigger)
1514
;; source columns
1615
(
16+
(:: hub.account/TRM_RAW_ADDRESS_HI hub.account/ADDRESS_LO)
1717
hub.account/ADDRESS_HI
18-
hub.account/TRM_RAW_ADDRESS_HI
19-
hub.account/ADDRESS_LO
2018
hub.account/IS_PRECOMPILE
2119
)
2220
)

0 commit comments

Comments
 (0)