⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 count.fit.eqn

📁 模可变计数器,可实现模2模8模10模16,异步清零,模可变加减计数
💻 EQN
字号:
-- Copyright (C) 1991-2006 Altera Corporation
-- Your use of Altera Corporation's design tools, logic functions 
-- and other software and tools, and its AMPP partner logic 
-- functions, and any output files any of the foregoing 
-- (including device programming or simulation files), and any 
-- associated documentation or information are expressly subject 
-- to the terms and conditions of the Altera Program License 
-- Subscription Agreement, Altera MegaCore Function License 
-- Agreement, or other applicable license agreement, including, 
-- without limitation, that your use is for the sole purpose of 
-- programming logic devices manufactured by Altera and sold by 
-- Altera or its authorized distributors.  Please refer to the 
-- applicable agreement for further details.
--iq[3] is iq[3] at LCFF_X2_Y4_N7
iq[3] = DFFEAS(A1L13, cp, c,  , en,  ,  ,  ,  );


--iq[2] is iq[2] at LCFF_X2_Y4_N31
iq[2] = DFFEAS(A1L22, cp, c,  , en,  ,  ,  ,  );


--iq[1] is iq[1] at LCFF_X2_Y4_N21
iq[1] = DFFEAS(A1L23, cp, c,  , en,  ,  ,  ,  );


--iq[0] is iq[0] at LCFF_X2_Y4_N19
iq[0] = DFFEAS(A1L14, cp, c,  , en,  ,  ,  ,  );


--A1L9 is iq[0]~2601 at LCCOMB_X2_Y4_N24
A1L9 = !u & (d0 $ d1);


--A1L10 is iq[0]~2602 at LCCOMB_X2_Y4_N0
A1L10 = u & (d1) # !u & d0 & !d1;


--A1L11 is iq[0]~2603 at LCCOMB_X2_Y4_N12
A1L11 = A1L10 & !A1L9 & (iq[1] $ !iq[2]) # !A1L10 & (iq[1] & iq[2]);


--A1L12 is iq[0]~2604 at LCCOMB_X2_Y4_N8
A1L12 = iq[1] & A1L9 & A1L10 & iq[2] # !iq[1] & !iq[2] & (A1L9 $ A1L10);


--A1L13 is iq[0]~2605 at LCCOMB_X2_Y4_N6
A1L13 = iq[3] & (A1L11 $ !A1L12 # !iq[0]) # !iq[3] & A1L11 & (A1L12 $ iq[0]);


--A1L21 is iq~2606 at LCCOMB_X2_Y4_N16
A1L21 = d0 & u;


--A1L17 is iq[2]~2607 at LCCOMB_X2_Y4_N26
A1L17 = iq[3] $ (d1 & iq[0]);


--A1L18 is iq[2]~2608 at LCCOMB_X2_Y4_N22
A1L18 = iq[1] & (!iq[2] # !d0 # !iq[0]) # !iq[1] & (iq[2] # iq[0] & d0);


--A1L19 is iq[2]~2609 at LCCOMB_X2_Y4_N2
A1L19 = A1L17 # A1L18 # u $ !iq[0];


--A1L1 is add~94 at LCCOMB_X2_Y4_N10
A1L1 = iq[1] & iq[0];


--A1L22 is iq~2610 at LCCOMB_X2_Y4_N30
A1L22 = A1L19 & (iq[2] $ A1L1) # !A1L19 & A1L21;


--A1L23 is iq~2611 at LCCOMB_X2_Y4_N20
A1L23 = A1L19 & (iq[1] $ iq[0]) # !A1L19 & A1L21;


--A1L14 is iq[0]~2612 at LCCOMB_X2_Y4_N18
A1L14 = !iq[0];


--d1 is d1 at PIN_42
--operation mode is input

d1 = INPUT();


--u is u at PIN_27
--operation mode is input

u = INPUT();


--d0 is d0 at PIN_30
--operation mode is input

d0 = INPUT();


--cp is cp at PIN_45
--operation mode is input

cp = INPUT();


--c is c at PIN_25
--operation mode is input

c = INPUT();


--en is en at PIN_26
--operation mode is input

en = INPUT();


--q3 is q3 at PIN_94
--operation mode is output

q3 = OUTPUT(iq[3]);


--q2 is q2 at PIN_92
--operation mode is output

q2 = OUTPUT(iq[2]);


--q1 is q1 at PIN_86
--operation mode is output

q1 = OUTPUT(iq[1]);


--q0 is q0 at PIN_81
--operation mode is output

q0 = OUTPUT(iq[0]);





⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -