Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16603 Discussions

Preserve inverter in BDF schematic

Altera_Forum
Honored Contributor II
1,208 Views

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
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
528 Views

Insert an LCELL primitive after each inverter.

0 Kudos
Altera_Forum
Honored Contributor II
528 Views

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;
0 Kudos
Reply