Forum Discussion
Altera_Forum
Honored Contributor
17 years agoWrong address range for custom IP in SOPC
Hello guys, I would pls like a hint or a wise word on this funny issue that I have related to address ranges. In detail, I have designed my own custom IP core that is a simple slave for ...
Altera_Forum
Honored Contributor
17 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