Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

ModelSim PE problem or design problem? Give solution

Status
Not open for further replies.

vjm16

Junior Member level 2
Joined
Sep 19, 2007
Messages
21
Helped
5
Reputation
10
Reaction score
0
Trophy points
1,281
Activity points
1,395
bounds of part-select into are reversed modelsim

Hi all,

I have a piece of code as below. When Iam trying to simulate it in modelsim PE, it is giving me the following compilation errors.

Bounds of part-select into 'af_addr_r' are reversed.

My code is

localparam COL_WIDTH = `COLUMN_ADDRESS;
localparam ROW_WIDTH = `ROW_ADDRESS;
generate
if (COL_WIDTH == ROW_WIDTH-1) begin: gen_ddr_addr_col_0
assign ddr_addr_col = {af_addr_r[COL_WIDTH-1:10], 1'b0,
af_addr_r[9:0]};
end else begin
if (COL_WIDTH > 10) begin: gen_ddr_addr_col_1
assign ddr_addr_col = {{(ROW_WIDTH-COL_WIDTH-1){1'b0}},
af_addr_r[COL_WIDTH-1:10], 1'b0,
af_addr_r[9:0]};
end else begin: gen_ddr_addr_col_2
assign ddr_addr_col = {{(ROW_WIDTH-COL_WIDTH-1){1'b0}}, 1'b0,
af_addr_r[COL_WIDTH-1:0]};
end
end
endgenerate


Iam getting erros for only particular case. When rowaddress is 12 and column address is 10.

Thanks
vjm
 

Re: bounds of part-select into are reversed modelsim

Hi,

Did you fine the resolution for the issue.I am facing the same issue
with questa 6.6e.
If yes can you kindly guide me through the resolution

Thanks and Regards
Praween
 

af_addr_r[COL_WIDTH-1:10], with COL_WIDTH = `COLUMN_ADDRESS = 10, you have af_addr_r[9:10], I don't knwo how you declare this but in generate is [x:y], x is greatert or equal to y, isn't it?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top