Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17247 Discussions

storing first set of values in a register

Altera_Forum
Honored Contributor II
1,647 Views

Hi All, 

I have an input (structure datatype) from an address mapper to my scheduling module. 

typedef struct packed{ 

logic [row_address_width-1:0] ROW_ADDR; 

logic [column_address_width-1:0] COL_ADDR; 

logic [bank_address_width-1:0] BANK_ADDR; 

logic [rank_address_width-1:0] RANK_ADDR; 

logic [word_address_width-1:0] WORD_ADDR; 

}mapper_to_sch ; 

input mapper_to_sch mapper_sch 

Now my question is I would want to store just the first values of mapper_sch into a registers as shown below. 

bank_addr_buf = mapper_sch.BANK_ADDR; 

row_addr_buf = mapper_sch.ROW_ADDR; 

I cant do continuous assignments since it will assign all the values. I just want to store only the first bank and row address into a buffer. 

Initial block also does not help in this case. 

Could anyone suggest how should I do this. 

Thanks & regards, 

Leela
0 Kudos
0 Replies
Reply