BLee15
Occasional Contributor
6 years agoSystemVerilog attribute with multi-line string has weird behavior
Version: Quartus Prime Version 18.1.1 Build 646 04/11/2019 SJ Lite Edition
When I tried to synthesis following Verilog code:
(* altera_attribute = "-name VIRTUAL_PIN ON -to a[*]; \
-name VIRTUAL_PIN ON -to b[*]; \
-name VIRTUAL_PIN ON -to c[*]" *)
module top(
input logic raw_clock,
input logic[17:0] a,
input logic[17:0] b,
output logic[35:0] c
);
logic clock;
pll pll(
.inclk0(raw_clock),
.c0(clock)
);
always_ff @(posedge clock)
begin
c <= a * b;
end
endmodule
I got following errors:
Warning (10306): Invalid value "744'b001011010110111001100001011011010110010100100000010101100100100101010010010101000101010101000001010011000101111101010000010010010100111000100000010011110100111000100000001011010111010001101111001000000110000101011011001010100101110100111011001000000000101000101101011011100110000101101101011001010010000001010110010010010101001001010100010101010100000101001100010111110101000001001001010011100010000001001111010011100010000000101101011101000110111100100000011000100101101100101010010111010011101100100000000010100010110101101110011000010110110101100101001000000101011001001001010100100101010001010101010000010100110001011111010100000100100101001110001000000100111101001110001000000010110101110100011011110010000001100011010110110010101001011101" for synthesis attribute "altera_attribute" at top.sv(1)
Error (271004): Can't process assignment. Attribute format is illegal -- parsing error ' (line 5). Use legal format for ALTERA_ATTRIBUTE assignment.
Error (271012): Can't process ALTERA_ATTRIBUTE "744'b001011010110111001100001011011010110010100100000010101100100100101010010010101000101010101000001010011000101111101010000010010010100111000100000010011110100111000100000001011010111010001101111001000000110000101011011001010100101110100111011001000000000101000101101011011100110000101101101011001010010000001010110010010010101001001010100010101010100000101001100010111110101000001001001010011100010000001001111010011100010000000101101011101000110111100100000011000100101101100101010010111010011101100100000000010100010110101101110011000010110110101100101001000000101011001001001010100100101010001010101010000010100110001011111010100000100100101001110001000000100111101001110001000000010110101110100011011110010000001100011010110110010101001011101" from design fileIt seems that the string is converted to (very long-sized) binary number, which is not expected by altera_attribute.
If i remove backslash-newline instances (i.e. write string as one-line), the synthesis produced expected outcome without any errors.
If this is bug, could you guide formal issue report channels for student-level users?
If this is not bug, could you guide what was wrong?