N
nachumk
Guest
How do I create a concatenated string that for constraints using XST
and Verilog? Basically I want to be able to create U_SET constraints
within a generated block with names that are counted by using the
genvar variable. This is important if I want to separate using U_SETs
both the generate iterations and additional generate loops later in
the code. For example:
genvar g;
generate
for(g = 0; g < 8; g = g + 1) begin : a_gen
(* U_SET = {"a",g} *)
(* RLOC = X0Y0 *)
//dsp 0 inst
(* RLOC = X0Y1 *)
//dsp 1 inst
end
for(g = 0; g < 8; g = g + 1) begin : b_gen
(* U_SET = {"b",g} *)
(* RLOC = X0Y0 *)
//dsp 0 inst
(* RLOC = X0Y1 *)
//dsp 1 inst
end
endgenerate
XST doesn't accept any constraint name other than either a direct
string or just the genvar variable. I need to give it a string +
genvar variable.
Any help would be appreciated,
Thanx
Nachum Kanovsky
PS - This was posted incorrectly to comp.arch.fpga earlier - I have it
removed it from there.
and Verilog? Basically I want to be able to create U_SET constraints
within a generated block with names that are counted by using the
genvar variable. This is important if I want to separate using U_SETs
both the generate iterations and additional generate loops later in
the code. For example:
genvar g;
generate
for(g = 0; g < 8; g = g + 1) begin : a_gen
(* U_SET = {"a",g} *)
(* RLOC = X0Y0 *)
//dsp 0 inst
(* RLOC = X0Y1 *)
//dsp 1 inst
end
for(g = 0; g < 8; g = g + 1) begin : b_gen
(* U_SET = {"b",g} *)
(* RLOC = X0Y0 *)
//dsp 0 inst
(* RLOC = X0Y1 *)
//dsp 1 inst
end
endgenerate
XST doesn't accept any constraint name other than either a direct
string or just the genvar variable. I need to give it a string +
genvar variable.
Any help would be appreciated,
Thanx
Nachum Kanovsky
PS - This was posted incorrectly to comp.arch.fpga earlier - I have it
removed it from there.