Forum Discussion

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

Preserve inverter in BDF schematic

Hello:

Is there a way to preserve nets and logic from being synthesized away when the design file is a BDF schematic? For example, if I have two inverters connected together in series, I would like them to be preserved rather than simplifying to a wire.

Thank you,

Jason

2 Replies

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

    Following Brad,

    Here's the code in VHDL to do it.

    I picked up this code from somewhere in the forum (not my own)

    *****

    LIBRARY IEEE;

    USE IEEE.STD_LOGIC_1164.ALL;

    ENTITY INVCHAIN IS

    PORT (

    inpin : IN STD_LOGIC;

    outpin : OUT STD_LOGIC);

    END INVCHAIN;

    ARCHITECTURE arch OF INCHAIN IS

    SIGNAL ain, bin : STD_LOGIC;

    SIGNAL aout, bout : STD_LOGIC;

    COMPONENT LCELL

    PORT (

    a_in : IN STD_LOGIC;

    a_out : OUT STD_LOGIC);

    END COMPONENT;

    BEGIN

    ain<= NOT inpin;

    LC_a : LCELL

    PORT MAP (

    a_in => ain,

    a_out => aout);

    bin<= NOT aout;

    LC_b : LCELL

    PORT MAP (

    a_in => bin,

    a_out => bout);

    outpin <= bout;

    end arch;