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.

check syntax fail error - need help and explanation

Status
Not open for further replies.

dinesh.4126

Member level 5
Joined
Feb 27, 2008
Messages
83
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,841
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.
 

Re: check syntax. error

Did you include "use ieee.std_logic_unsigned.all;" in your program?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top