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.

how to synthesize the don't care item

Status
Not open for further replies.

anger5

Newbie level 4
Newbie level 4
Joined
Feb 20, 2010
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,321
For example I have some coding as below
How to use the design compiler to optimize this coding to make sure the minimum numbers of cells?
Actually this is a just example. If I replace the 'X' with '1', then this circuit will become the full adder. As a result, there is a only one cell mapping that is expected result.



Code VHDL - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
------------------------------
ENTITY AA IS
PORT(XI:IN STD_LOGIC_VECTOR(2 DOWNTO 0);
     XO:OUT STD_LOGIC(1 DOWNTO 0));
END AA;
------------------------------
ARCHITECTURE AA OF AA IS
BEGIN
 PROCESS(XI)
  BEGIN 
    CASE XI IS
WHEN"000"=>XO<="00";
WHEN"001"=>XO<="10";
WHEN"010"=>XO<="10";
WHEN"011"=>XO<="01";
WHEN"100"=>XO<="10";
WHEN"101"=>XO<="0X;
WHEN"110"=>XO<="0X";
WHEN"111"=>XO<="11";
    END CASE;
 END  PROCESS;
END AA;

 
Last edited by a moderator:

What are you exactly asking? A don't care specification will usually reflect a redundant part of the logic function. Hopefully the design compiler will utilize it to minimize resource usage or achieve other performance objectives, e.g. timing specifications.

A full adder will only fit into a single logic cell, if carry in and out are available for general connection. In recent FPGA, they typically connect to a dedicated carry chain.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top