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

📄 count.map.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]
iq[3] = DFFEAS(A1L13, cp, c,  , en,  ,  ,  ,  );


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


--d1 is d1
--operation mode is input

d1 = INPUT();


--u is u
--operation mode is input

u = INPUT();


--d0 is d0
--operation mode is input

d0 = INPUT();


--cp is cp
--operation mode is input

cp = INPUT();


--c is c
--operation mode is input

c = INPUT();


--en is en
--operation mode is input

en = INPUT();


--q3 is q3
--operation mode is output

q3 = OUTPUT(iq[3]);


--q2 is q2
--operation mode is output

q2 = OUTPUT(iq[2]);


--q1 is q1
--operation mode is output

q1 = OUTPUT(iq[1]);


--q0 is q0
--operation mode is output

q0 = OUTPUT(iq[0]);


⌨️ 快捷键说明

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