Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17267 Discussions

How declare ALM synchronous signal (enable, sload, sclear) in vhdl

Altera_Forum
Honored Contributor II
1,690 Views

Hello. 

The basic cell in Intel FPGA have a wonderful architecture, including dedicated synchronous signals as enable, sload and sclear. However, describe the use of this resources is not easy in vhdl for me. I use "process" only for declare hardware associated whit registers. 

Declare "enable" is easy: 

if (enable) then --this use enable dedícate port 

q <= xxxx; 

end if; 

Declare "sclear"... 

if (sclr) then 

--this use in RTL and Chip Planner a mux! i want sclr dedícate port 

q <= (others => '0'); 

end if; 

Declare "enable" and "sclear" use two mux. Now don't use enable dedícate port. 

 

How can use these precious resourses, synchronous dedícate ports? 

 

Thanks!! 

[sub][/sub]
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
857 Views

You can access a complete template for all secondary control signals using the Edit menu in the Quartus text editor. But here is a similar complete template. Just remove the signals you don't want to use: 

 

ARCHITECTURE behavior OF dff IS BEGIN PROCESS(clk, aclr, apre, aload, adata) BEGIN IF aclr = '1' THEN q <= '0'; ELSIF apre = '1' THEN q <= '1'; ELSIF aload = '1' THEN q <= adata; ELSIF rising_edge(clk) THEN IF ena = '1' THEN IF sclr = '1' THEN q <= '0'; ELSIF sload = '1' THEN q <= sdata; ELSE q <= d; END IF; END IF; END IF; END PROCESS; END ARCHITECTURE behavior;
0 Kudos
Reply