electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

check syntax fail error - need help and explanation


Post new topic  Reply to topic    EDAboard.com Forum Index -> PLD, SPLD, GAL, CPLD, FPGA Design -> check syntax fail error - need help and explanation
Author Message
dinesh.4126



Joined: 27 Feb 2008
Posts: 63


Post28 Jun 2009 14:07   

hdlparsers:3292


hi,
In I2C Slave Design below are the assignment :
-----------------------------------------------------------------------------
line 367: sda_falling_edge <= true when sda_sampled = "1100" else false;
line 368: sda_rising_edge <= true when sda_sampled = b"0011" else false;
scl_falling_edge <= true when scl_sampled = b"1100" else false;
scl_rising_edge <= true when scl_sampled = b"0011" else false;
----------------------------------------------------------------------------------
and below these are signal declaration :
------------------------------------------------------------------
signal sda_sampled: unsigned(3 downto 0) := (others => '1');
signal scl_sampled: unsigned(3 downto 0) := (others => '1');
signal sda_falling_edge: boolean := false;
signal sda_rising_edge: boolean := false;
signal scl_falling_edge: boolean := false;
signal scl_rising_edge: boolean := false;
-----------------------------------------------------------------------------
below are check syntax fail error.
ERROR:HDLParsers:3292 - D:/iitproject/i2c/i2c/i2c.vhdl Line 367. = has two possible definitions in this scope. For example, parameter 2 (string value) can be: SIGNED or UNSIGNED
ERROR:HDLParsers:3292 - D:/iitproject/i2c/i2c/i2c.vhdl Line 368. = has two possible definitions in this scope. For example, parameter 2 (string value) can be: SIGNED or UNSIGNED

Can somebody suggest me upon why this error is coming even I declare it as unsigned.
Kindly suggest me upon this.
Back to top
Google
AdSense
Google Adsense




Post28 Jun 2009 14:07   

Ads




Back to top
L Varalakshmi



Joined: 28 May 2009
Posts: 15
Helped: 2


Post29 Jun 2009 5:15   

Re: check syntax. error


Did you include "use ieee.std_logic_unsigned.all;" in your program?
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> PLD, SPLD, GAL, CPLD, FPGA Design -> check syntax fail error - need help and explanation
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Please check the Buil fail error in MPLAB IDE V8.20 (1)
[Help] Verolog Syntax Error ? (3)
How to check my standard cel library syntax in synopsys tool (4)
VHDL Syntax error (8)
Syntax error in spice model file (3)
VNA error message- caution: phase lock cal fail (4)
c coding syntax error- how to send value stored in buffer? (1)
Formality failed to read .svf file with syntax error report. (3)
Neex explanation - what is DES ? need help (1)
Simple math problem - need help or explanation (10)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS