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

📄 lcok.fit.eqn

📁 数字密码锁:S0是复位状态:密码为00000001
💻 EQN
字号:
-- Copyright (C) 1991-2005 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.
--state.s1 is state.s1 at LCFF_X16_Y23_N25
state.s1 = DFFEAS(A1L22, key, !GLOBAL(A1L71),  ,  ,  ,  ,  ,  );


--state.s0 is state.s0 at LCFF_X16_Y23_N19
state.s0 = DFFEAS(A1L32, key, !GLOBAL(A1L71),  ,  ,  ,  ,  ,  );


--temp[7] is temp[7] at LCFF_X16_Y23_N11
temp[7] = DFFEAS(UNCONNECTED_DATAIN, key, !GLOBAL(A1L71),  , state.s2, code[7],  ,  , VCC);


--A1L41 is process0~7 at LCCOMB_X16_Y23_N10
A1L41 = code[7] $ temp[7];


--temp[6] is temp[6] at LCFF_X16_Y23_N9
temp[6] = DFFEAS(UNCONNECTED_DATAIN, key, !GLOBAL(A1L71),  , state.s2, code[6],  ,  , VCC);


--temp[4] is temp[4] at LCFF_X16_Y23_N13
temp[4] = DFFEAS(UNCONNECTED_DATAIN, key, !GLOBAL(A1L71),  , state.s2, code[4],  ,  , VCC);


--A1L81 is Select~75 at LCCOMB_X16_Y23_N12
A1L81 = code[6] & (temp[4] $ code[4] # !temp[6]) # !code[6] & (temp[6] # temp[4] $ code[4]);


--temp[5] is temp[5] at LCFF_X16_Y23_N17
temp[5] = DFFEAS(UNCONNECTED_DATAIN, key, !GLOBAL(A1L71),  , state.s2, code[5],  ,  , VCC);


--A1L91 is Select~76 at LCCOMB_X16_Y23_N16
A1L91 = A1L41 # A1L81 # code[5] $ temp[5];


--temp[1] is temp[1] at LCFF_X16_Y23_N27
temp[1] = DFFEAS(UNCONNECTED_DATAIN, key, !GLOBAL(A1L71),  , state.s2, code[1],  ,  , VCC);


--temp[2] is temp[2] at LCFF_X16_Y23_N29
temp[2] = DFFEAS(UNCONNECTED_DATAIN, key, !GLOBAL(A1L71),  , state.s2, code[2],  ,  , VCC);


--A1L02 is Select~77 at LCCOMB_X16_Y23_N26
A1L02 = code[1] & (code[2] $ temp[2] # !temp[1]) # !code[1] & (temp[1] # code[2] $ temp[2]);


--temp[0] is temp[0] at LCFF_X16_Y23_N23
temp[0] = DFFEAS(A1L03, key, !GLOBAL(A1L71),  , state.s2,  ,  ,  ,  );


--temp[3] is temp[3] at LCFF_X16_Y23_N5
temp[3] = DFFEAS(UNCONNECTED_DATAIN, key, !GLOBAL(A1L71),  , state.s2, code[3],  ,  , VCC);


--A1L12 is Select~78 at LCCOMB_X16_Y23_N4
A1L12 = code[3] & (code[0] $ !temp[0] # !temp[3]) # !code[3] & (temp[3] # code[0] $ !temp[0]);


--A1L22 is Select~79 at LCCOMB_X16_Y23_N24
A1L22 = !A1L91 & !A1L02 & !A1L12 & !state.s0;


--A1L32 is Select~80 at LCCOMB_X16_Y23_N18
A1L32 = A1L22 # change & state.s1;


--state.s2 is state.s2 at LCFF_X16_Y23_N21
state.s2 = DFFEAS(A1L42, key, !GLOBAL(A1L71),  ,  ,  ,  ,  ,  );


--A1L42 is Select~81 at LCCOMB_X16_Y23_N20
A1L42 = change & state.s1;


--A1L03 is temp[0]~24 at LCCOMB_X16_Y23_N22
A1L03 = !code[0];


--code[7] is code[7] at PIN_V2
--operation mode is input

code[7] = INPUT();


--code[6] is code[6] at PIN_V1
--operation mode is input

code[6] = INPUT();


--code[4] is code[4] at PIN_U3
--operation mode is input

code[4] = INPUT();


--code[5] is code[5] at PIN_U4
--operation mode is input

code[5] = INPUT();


--code[1] is code[1] at PIN_P1
--operation mode is input

code[1] = INPUT();


--code[2] is code[2] at PIN_P2
--operation mode is input

code[2] = INPUT();


--code[0] is code[0] at PIN_N1
--operation mode is input

code[0] = INPUT();


--code[3] is code[3] at PIN_T7
--operation mode is input

code[3] = INPUT();


--key is key at PIN_G26
--operation mode is input

key = INPUT();


--rst is rst at PIN_N23
--operation mode is input

rst = INPUT();


--change is change at PIN_N25
--operation mode is input

change = INPUT();


--led1 is led1 at PIN_AE23
--operation mode is output

led1 = OUTPUT(!state.s1);


--led2 is led2 at PIN_AE22
--operation mode is output

led2 = OUTPUT(state.s0);





--A1L61 is rst~clk_delay_ctrl at CLKDELAYCTRL_G4
A1L61 = CLK_DELAY_CTRL.CLKOUT(.CLK(rst));


--A1L71 is rst~clkctrl at CLKCTRL_G4
A1L71 = cycloneii_clkctrl(.INCLK[0] = A1L61) WITH (clock_type = "Global Clock");


⌨️ 快捷键说明

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