📄 lock.map.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.
--A1L43Q is ledr~reg0
A1L43Q = DFFEAS(A1L33, clk, !reset, , , , , , );
--A1L13Q is ledg~reg0
A1L13Q = DFFEAS(A1L03, clk, !reset, , , , , , );
--key[6] is key[6]
key[6] = DFFEAS(keyin[6], clk, !reset, , A1L9, , , , );
--key[0] is key[0]
key[0] = DFFEAS(A1L01, clk, !reset, , A1L9, , , , );
--A1L2 is equal~92
A1L2 = key[6] & keyin[6] & (key[0] $ keyin[0]) # !key[6] & !keyin[6] & (key[0] $ keyin[0]);
--key[7] is key[7]
key[7] = DFFEAS(keyin[7], clk, !reset, , A1L9, , , , );
--key[2] is key[2]
key[2] = DFFEAS(keyin[2], clk, !reset, , A1L9, , , , );
--A1L3 is equal~93
A1L3 = key[7] & keyin[7] & (key[2] $ !keyin[2]) # !key[7] & !keyin[7] & (key[2] $ !keyin[2]);
--key[4] is key[4]
key[4] = DFFEAS(keyin[4], clk, !reset, , A1L9, , , , );
--key[3] is key[3]
key[3] = DFFEAS(keyin[3], clk, !reset, , A1L9, , , , );
--A1L4 is equal~94
A1L4 = key[4] & keyin[4] & (key[3] $ !keyin[3]) # !key[4] & !keyin[4] & (key[3] $ !keyin[3]);
--key[1] is key[1]
key[1] = DFFEAS(keyin[1], clk, !reset, , A1L9, , , , );
--key[5] is key[5]
key[5] = DFFEAS(keyin[5], clk, !reset, , A1L9, , , , );
--A1L5 is equal~95
A1L5 = key[1] & keyin[1] & (key[5] $ !keyin[5]) # !key[1] & !keyin[1] & (key[5] $ !keyin[5]);
--A1L6 is equal~96
A1L6 = A1L2 & A1L3 & A1L4 & A1L5;
--lockflag is lockflag
lockflag = DFFEAS(A1L92, clk, !reset, , , , , , );
--A1L33 is ledr~150
A1L33 = lockon & (!lockflag # !lockoff) # !lockon & !A1L6 & (!lockflag);
--A1L92 is ledg~14
A1L92 = lockflag & (lockoff # !lockon) # !lockflag & (A1L6 & !lockon);
--A1L9 is key[0]~7
A1L9 = !lockon & !keychange & (lockflag # A1L6);
--A1L03 is ledg~15
A1L03 = !A1L92;
--A1L01 is key[0]~40
A1L01 = !keyin[0];
--lockon is lockon
--operation mode is input
lockon = INPUT();
--keyin[6] is keyin[6]
--operation mode is input
keyin[6] = INPUT();
--keyin[0] is keyin[0]
--operation mode is input
keyin[0] = INPUT();
--keyin[2] is keyin[2]
--operation mode is input
keyin[2] = INPUT();
--keyin[7] is keyin[7]
--operation mode is input
keyin[7] = INPUT();
--keyin[3] is keyin[3]
--operation mode is input
keyin[3] = INPUT();
--keyin[4] is keyin[4]
--operation mode is input
keyin[4] = INPUT();
--keyin[5] is keyin[5]
--operation mode is input
keyin[5] = INPUT();
--keyin[1] is keyin[1]
--operation mode is input
keyin[1] = INPUT();
--lockoff is lockoff
--operation mode is input
lockoff = INPUT();
--clk is clk
--operation mode is input
clk = INPUT();
--reset is reset
--operation mode is input
reset = INPUT();
--keychange is keychange
--operation mode is input
keychange = INPUT();
--ledr is ledr
--operation mode is output
ledr = OUTPUT(A1L43Q);
--ledg is ledg
--operation mode is output
ledg = OUTPUT(!A1L13Q);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -