UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

このページをブックマークに追加

AR# 7537

XPLA Professional - How do I create a soft flip-flop with Q-bar output?

説明

Keywords: XPLA, Professional, CoolRunner, fitter, flip-flop, FF, inverted,
macrocell, q-bar, qbar, combinatorial

Urgency: Standard

General Description:
How do I create a soft flip-flop with Q-bar output?

ソリューション

The following code creates a combinatorial flip-flop with an
inverted output:

Module qbar
Title 'qbar'

DECLARATIONS

d pin;
clk pin;
rst pin;
il node istype 'com,keep,retain';
q pin istype 'com,keep,retain';

EQUATIONS

" code to create q_not input
" note - rst is active high. rst is required to make this work
il = (!q & !clk) # (il & clk) # (!q & il);
q = (il & clk & !rst ) # (q & !clk & !rst) # (il & q & !rst);

END
AR# 7537
日付 05/28/2002
ステータス アーカイブ
種類 一般