smart-pix / asic-testing-fnal-lab-notebooks

Lab notebooks and git issues for testing
0 stars 0 forks source link

06/26/24 #14

Open badeaa3 opened 4 months ago

badeaa3 commented 4 months ago
badeaa3 commented 4 months ago

Goal 2

These lines in the memory map creator https://github.com/SpacelyProject/spacely/blob/83c6d06e4697f2b7463574c02aae74ab4b63c740/PySpacely/src/Spacely_Caribou.py#L307 and https://github.com/SpacelyProject/spacely/blob/83c6d06e4697f2b7463574c02aae74ab4b63c740/PySpacely/src/Spacely_Caribou.py#L313 always evaluate to True for the current mem_map.txt formats because bool(string) = True. (Ben already told you this one and I know your answer was yes make a merge request).

badeaa3 commented 4 months ago

Goal 1

Copying over from #12

OP_CODE list (GitHub)

typedef enum logic [3:0] {                               // operation_code enumerated type
    OP_CODE_NOOP             = 4'h0,
    OP_CODE_W_RST_FW         = 4'h1,
    OP_CODE_W_CFG_STATIC_0   = 4'h2,
    OP_CODE_R_CFG_STATIC_0   = 4'h3,
    OP_CODE_W_CFG_STATIC_1   = 4'h4,
    OP_CODE_R_CFG_STATIC_1   = 4'h5,
    OP_CODE_W_CFG_ARRAY_0    = 4'h6,
    OP_CODE_R_CFG_ARRAY_0    = 4'h7,
    OP_CODE_W_CFG_ARRAY_1    = 4'h8,
    OP_CODE_R_CFG_ARRAY_1    = 4'h9,
    OP_CODE_R_DATA_ARRAY_0   = 4'hA,
    OP_CODE_R_DATA_ARRAY_1   = 4'hB,
    OP_CODE_W_STATUS_FW_CLEAR= 4'hC,
    OP_CODE_W_EXECUTE        = 4'hD
  } op_code;