Tetik
Member level 5
I have trouble to understand this following replicate operation in Verilog. What will be the value of ADDR_WIDTH, READ, WRITE parameters?
For Write and Read, I think the final value is 8'b1111111 but what about ADDR_WIDTH? (0x18181818 ?????)
Other question, how to convert it in VHDL?
For Write and Read, something like 2**(SLAVE_PORTS * MASTER_PORTS) - 1, but here again what about ADDR_WIDTH?
Thanks for your help.
Code:
module xyz #(
parameter SLAVE_PORTS = 2,
parameter MASTER_PORTS = 4,
parameter MASTER_REGIONS = 1,
parameter ADDR_WIDTH = {MASTER_PORTS{{MASTER_REGIONS{32'd24}}}},
parameter READ = {MASTER_PORTS{{SLAVE_PORTS{1'b1}}}},
parameter WRITE = {MASTER_PORTS{{SLAVE_PORTS{1'b1}}}}
)
For Write and Read, I think the final value is 8'b1111111 but what about ADDR_WIDTH? (0x18181818 ?????)
Other question, how to convert it in VHDL?
For Write and Read, something like 2**(SLAVE_PORTS * MASTER_PORTS) - 1, but here again what about ADDR_WIDTH?
Thanks for your help.
Last edited by a moderator: