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

📄 produce8.fit.eqn

📁 序列发生器,产生一个8位序列号,序列码可自定义修改,还有一个序列检测器
💻 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[0] is iq[0] at LCFF_X4_Y1_N11
iq[0] = DFFEAS(A1L7, cp, !clr,  ,  ,  ,  ,  ,  );


--iq[1] is iq[1] at LCFF_X4_Y1_N3
iq[1] = DFFEAS(A1L9, cp, !clr,  ,  ,  ,  ,  ,  );


--iq[2] is iq[2] at LCFF_X4_Y1_N7
iq[2] = DFFEAS(A1L11, cp, !clr,  ,  ,  ,  ,  ,  );


--A1L7 is iq[0]~162 at LCCOMB_X4_Y1_N10
A1L7 = en & (iq[2] & iq[1] # !iq[0]) # !en & (iq[0]);


--A1L9 is iq[1]~163 at LCCOMB_X4_Y1_N2
A1L9 = en & (iq[1] & (iq[2] # !iq[0]) # !iq[1] & (iq[0])) # !en & (iq[1]);


--A1L11 is iq[2]~164 at LCCOMB_X4_Y1_N6
A1L11 = iq[2] # iq[0] & en & iq[1];


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

en = INPUT();


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

cp = INPUT();


--clr is clr at PIN_25
--operation mode is input

clr = INPUT();


--q[0] is q[0] at PIN_48
--operation mode is output

q[0] = OUTPUT(iq[0]);


--q[1] is q[1] at PIN_52
--operation mode is output

q[1] = OUTPUT(iq[1]);


--q[2] is q[2] at PIN_53
--operation mode is output

q[2] = OUTPUT(iq[2]);


--F is F at PIN_44
--operation mode is output

F = OUTPUT(iq[1]);





⌨️ 快捷键说明

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