Skip to content

Commit

Permalink
V2: Update FRAMELOCK_CONFIG fields to match review
Browse files Browse the repository at this point in the history
From HDL repo.

Signed-off-by: Jorge Marques <[email protected]>
  • Loading branch information
gastmaier committed Oct 24, 2024
1 parent 17ae7b1 commit e11aa04
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion library/drivers/dmac/dmac_api.sv
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,9 @@ package dmac_api_pkg;

if ($cast(t_fl_2d,t)) begin
this.axi_write(GetAddrs(DMAC_FRAMELOCK_CONFIG),
`SET_DMAC_FRAMELOCK_CONFIG_FRAMENUM(t_fl_2d.flock_framenum) |
`SET_DMAC_FRAMELOCK_CONFIG_MODE(t_fl_2d.flock_mode) |
`SET_DMAC_FRAMELOCK_CONFIG_WAIT_WRITER(t_fl_2d.flock_wait_writer ) |
`SET_DMAC_FRAMELOCK_CONFIG_FRAMENUM(t_fl_2d.flock_framenum) |
`SET_DMAC_FRAMELOCK_CONFIG_DISTANCE(t_fl_2d.flock_distance-1));
this.axi_write(GetAddrs(DMAC_FRAMELOCK_STRIDE),
`SET_DMAC_FRAMELOCK_STRIDE_STRIDE(t_fl_2d.flock_stride));
Expand Down
14 changes: 7 additions & 7 deletions library/regmaps/adi_regmap_dmac_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,17 @@ package adi_regmap_dmac_pkg;

const reg_t DMAC_FRAMELOCK_CONFIG = '{ 'h0458, "FRAMELOCK_CONFIG" , '{
"DISTANCE": '{ 23, 16, RW, 0 },
"WAIT_WRITER": '{ 9, 9, RW, 0 },
"MODE": '{ 8, 8, RW, 0 },
"FRAMENUM": '{ 7, 0, RW, 0 }}};
"FRAMENUM": '{ 15, 8, RW, 0 },
"WAIT_WRITER": '{ 1, 1, RW, 0 },
"MODE": '{ 0, 0, RW, 0 }}};
`define SET_DMAC_FRAMELOCK_CONFIG_DISTANCE(x) SetField(DMAC_FRAMELOCK_CONFIG,"DISTANCE",x)
`define GET_DMAC_FRAMELOCK_CONFIG_DISTANCE(x) GetField(DMAC_FRAMELOCK_CONFIG,"DISTANCE",x)
`define DEFAULT_DMAC_FRAMELOCK_CONFIG_DISTANCE GetResetValue(DMAC_FRAMELOCK_CONFIG,"DISTANCE")
`define UPDATE_DMAC_FRAMELOCK_CONFIG_DISTANCE(x,y) UpdateField(DMAC_FRAMELOCK_CONFIG,"DISTANCE",x,y)
`define SET_DMAC_FRAMELOCK_CONFIG_FRAMENUM(x) SetField(DMAC_FRAMELOCK_CONFIG,"FRAMENUM",x)
`define GET_DMAC_FRAMELOCK_CONFIG_FRAMENUM(x) GetField(DMAC_FRAMELOCK_CONFIG,"FRAMENUM",x)
`define DEFAULT_DMAC_FRAMELOCK_CONFIG_FRAMENUM GetResetValue(DMAC_FRAMELOCK_CONFIG,"FRAMENUM")
`define UPDATE_DMAC_FRAMELOCK_CONFIG_FRAMENUM(x,y) UpdateField(DMAC_FRAMELOCK_CONFIG,"FRAMENUM",x,y)
`define SET_DMAC_FRAMELOCK_CONFIG_WAIT_WRITER(x) SetField(DMAC_FRAMELOCK_CONFIG,"WAIT_WRITER",x)
`define GET_DMAC_FRAMELOCK_CONFIG_WAIT_WRITER(x) GetField(DMAC_FRAMELOCK_CONFIG,"WAIT_WRITER",x)
`define DEFAULT_DMAC_FRAMELOCK_CONFIG_WAIT_WRITER GetResetValue(DMAC_FRAMELOCK_CONFIG,"WAIT_WRITER")
Expand All @@ -374,10 +378,6 @@ package adi_regmap_dmac_pkg;
`define GET_DMAC_FRAMELOCK_CONFIG_MODE(x) GetField(DMAC_FRAMELOCK_CONFIG,"MODE",x)
`define DEFAULT_DMAC_FRAMELOCK_CONFIG_MODE GetResetValue(DMAC_FRAMELOCK_CONFIG,"MODE")
`define UPDATE_DMAC_FRAMELOCK_CONFIG_MODE(x,y) UpdateField(DMAC_FRAMELOCK_CONFIG,"MODE",x,y)
`define SET_DMAC_FRAMELOCK_CONFIG_FRAMENUM(x) SetField(DMAC_FRAMELOCK_CONFIG,"FRAMENUM",x)
`define GET_DMAC_FRAMELOCK_CONFIG_FRAMENUM(x) GetField(DMAC_FRAMELOCK_CONFIG,"FRAMENUM",x)
`define DEFAULT_DMAC_FRAMELOCK_CONFIG_FRAMENUM GetResetValue(DMAC_FRAMELOCK_CONFIG,"FRAMENUM")
`define UPDATE_DMAC_FRAMELOCK_CONFIG_FRAMENUM(x,y) UpdateField(DMAC_FRAMELOCK_CONFIG,"FRAMENUM",x,y)

const reg_t DMAC_FRAMELOCK_STRIDE = '{ 'h045c, "FRAMELOCK_STRIDE" , '{
"STRIDE": '{ 31, 0, RW, 0 }}};
Expand Down

0 comments on commit e11aa04

Please sign in to comment.