Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

Error with LMP counter component..

Hi all,

I have a design where I use the LPM_counter as a component "offline".

But, I get an error, which to me does not give any meaning... (See below text).

Does anyone have an idea of what I am doing wrong here...

Best Regards:

Martin C.

tools:

I am using Quartus 2 ver. 14.02.209. 64-bit.

Top_level vhd file is attached.

offline vhd file is attached.

The error points to line 236 of file: lpm_counter.tdf (also attached_changed extension for upload).

below is complete message read out from analysis:

--- Quote Start ---

Info: *******************************************************************

Info: Running Quartus II 64-Bit Analysis & Synthesis

Info: Version 14.0.2 Build 209 09/17/2014 SJ Web Edition

Info: Processing started: Tue Nov 04 14:11:56 2014

Info: Command: quartus_map --read_settings_files=on --write_settings_files=off DMB512 -c DMB512

Info (20030): Parallel compilation is enabled and will use 4 of the 4 processors detected

Info (12021): Found 2 design units, including 1 entities, in source file fsm.vhd

Info (12022): Found design unit 1: FSM-Behavioral

Info (12023): Found entity 1: FSM

Info (12021): Found 2 design units, including 1 entities, in source file top_level.vhd

Info (12022): Found design unit 1: Top_level-Top_level_architecture

Info (12023): Found entity 1: Top_level

Info (12021): Found 1 design units, including 1 entities, in source file dmb512.bdf

Info (12023): Found entity 1: DMB512

Info (12021): Found 2 design units, including 1 entities, in source file filter.vhd

Info (12022): Found design unit 1: Filter-Behavioral

Info (12023): Found entity 1: Filter

Info (12021): Found 2 design units, including 1 entities, in source file clockcounter.vhd

Info (12022): Found design unit 1: ClockCounter-Behavioral

Info (12023): Found entity 1: ClockCounter

Info (12021): Found 2 design units, including 1 entities, in source file tb_clockcounter.vhd

Info (12022): Found design unit 1: tb_ClockCounter-behavior

Info (12023): Found entity 1: tb_ClockCounter

Info (12021): Found 2 design units, including 1 entities, in source file send_p.vhd

Info (12022): Found design unit 1: send_p-Behavioral

Info (12023): Found entity 1: send_p

Info (12021): Found 2 design units, including 1 entities, in source file offline.vhd

Info (12022): Found design unit 1: offline-SYN

Info (12023): Found entity 1: offline

Info (12127): Elaborating entity "DMB512" for the top level hierarchy

Info (12128): Elaborating entity "Top_level" for hierarchy "Top_level:inst"

Info (12128): Elaborating entity "ClockCounter" for hierarchy "Top_level:inst|ClockCounter:Clock4800"

Info (12128): Elaborating entity "ClockCounter" for hierarchy "Top_level:inst|ClockCounter:Clock1200"

Info (12128): Elaborating entity "ClockCounter" for hierarchy "Top_level:inst|ClockCounter:LED_dimmer"

Info (12128): Elaborating entity "Filter" for hierarchy "Top_level:inst|Filter:P1Filter"

Info (12128): Elaborating entity "FSM" for hierarchy "Top_level:inst|FSM:STATEMACHINE"

Info (12128): Elaborating entity "offline" for hierarchy "Top_level:inst|offline:offline_comp1"

Error (287127): Text Design File syntax error: Text Design File contains '(' where ASSERT, CONSTANT, DEFINE, DESIGN, FUNCTION, OPTIONS, PARAMETERS, SUBDESIGN, or TITLE was expected

Error (287127): Text Design File syntax error: Text Design File contains IF where ASSERT, CONSTANT, DEFINE, DESIGN, FUNCTION, OPTIONS, PARAMETERS, SUBDESIGN, or TITLE was expected

Error (287127): Text Design File syntax error: Text Design File contains a symbolic name where ASSERT, CONSTANT, DEFINE, DESIGN, FUNCTION, OPTIONS, PARAMETERS, SUBDESIGN, or TITLE was expected

Error (287127): Text Design File syntax error: Text Design File contains IF where ASSERT, CONSTANT, DEFINE, DESIGN, FUNCTION, OPTIONS, PARAMETERS, SUBDESIGN, or TITLE was expected

Error (287127): Text Design File syntax error: Text Design File contains ELSE where ASSERT, CONSTANT, DEFINE, DESIGN, FUNCTION, OPTIONS, PARAMETERS, SUBDESIGN, or TITLE was expected

Error (287127): Text Design File syntax error: Text Design File contains ELSE where ASSERT, CONSTANT, DEFINE, DESIGN, FUNCTION, OPTIONS, PARAMETERS, SUBDESIGN, or TITLE was expected

Error: Quartus II 64-Bit Analysis & Synthesis was unsuccessful. 6 errors, 0 warnings

Error: Peak virtual memory: 548 megabytes

Error: Processing ended: Tue Nov 04 14:11:59 2014

Error: Elapsed time: 00:00:03

Error: Total CPU time (on all processors): 00:00:02

--- Quote End ---

12 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    So yes, this looks like a library file, but why do I get an error which points here? (Could there be a fault in the implementation of the LPM counter?).

    --- Quote End ---

    Highly unlikely. The LPM counter is about 15-20 years old.

    Is that file in the db directory? if it is, try deleting the DB directory and start compilation again.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Highly unlikely. The LPM counter is about 15-20 years old.

    Is that file in the db directory? if it is, try deleting the DB directory and start compilation again.

    --- Quote End ---

    It points to file location:

    C:\altera\14.0\quartus\libraries\megafunctions

    It is not in the db folder....

    The first error points to these code lines:

    
    OPTIONS ALTERA_INTERNAL_OPTION = "suppress_da_rule_internal=a101;suppress_da_rule_internal=s102;suppress_da_rule_internal=s103";
    (
    	clock						: INPUT;
    	clk_en						: INPUT = VCC;	-- clock Enable
    	cnt_en						: INPUT = VCC;	-- count Enable
    	updown						: INPUT = VCC;	-- VCC counts up, GND counts down
    	aclr, aset, aconst, aload	: INPUT = GND;
    	sclr, sset, sconst, sload	: INPUT = GND;
    	data		: INPUT = GND;	-- used by aload and/or sload
    	cin							: INPUT = VCC;
    	q			: OUTPUT;		-- counter output
    	cout						: OUTPUT;
    -- LPM specification calls for the following, but MAX+PLUS II only implements
    -- 16 eq outputs:
    --	eq		: OUTPUT;
    --	eq					: OUTPUT;		-- Counter decode output
    )
    

    just to test if other lpm components work, i have implementing a lpm compare component, this works fine, no errors.