Forum Discussion
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- To be able to read two different 32-bit registers, you need to do some address decoding in your verilog code. For example you could assign read_data to qx if the address is 0 and to qy if the address is 1. Then from your software you can access them with IORD(SCALAR_POINT_INST_BASE,0) and IORD(SCALAR_POINT_INST_BASE,1). --- Quote End --- hey Daixiwen, thanks for the reply... i used case statement for my address decoding, thanks alot for your reply it does clarify things.. .. i guess the same would work for write also ... right ?? i could use if statements and assign write_data to 3 different registers ... right ?? thanks again