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

📄 led_run_test.fit.eqn

📁 走马灯设计
💻 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.
--A1L3Q is led[0]~reg0 at LC_X1_Y17_N8
--operation mode is normal

A1L3Q_lut_out = state[0] & state[1];
A1L3Q = DFFEAS(A1L3Q_lut_out, GLOBAL(mclk), VCC, , rst_n, , , , );


--A1L5Q is led[1]~reg0 at LC_X1_Y17_N4
--operation mode is normal

A1L5Q_lut_out = !state[0] & !state[1];
A1L5Q = DFFEAS(A1L5Q_lut_out, GLOBAL(mclk), VCC, , rst_n, , , , );


--A1L7Q is led[2]~reg0 at LC_X1_Y17_N2
--operation mode is normal

A1L7Q_lut_out = state[0] & !state[1];
A1L7Q = DFFEAS(A1L7Q_lut_out, GLOBAL(mclk), VCC, , rst_n, , , , );


--A1L9Q is led[3]~reg0 at LC_X1_Y17_N5
--operation mode is normal

A1L9Q_lut_out = !state[0] & state[1];
A1L9Q = DFFEAS(A1L9Q_lut_out, GLOBAL(mclk), VCC, , rst_n, , , , );


--state[0] is state[0] at LC_X1_Y17_N9
--operation mode is normal

state[0]_lut_out = !state[0];
state[0] = DFFEAS(state[0]_lut_out, GLOBAL(mclk), GLOBAL(rst_n), , , , , , );


--state[1] is state[1] at LC_X1_Y17_N6
--operation mode is normal

state[1]_lut_out = state[0] $ state[1];
state[1] = DFFEAS(state[1]_lut_out, GLOBAL(mclk), GLOBAL(rst_n), , , , , , );


--mclk is mclk at PIN_153
--operation mode is input

mclk = INPUT();


--rst_n is rst_n at PIN_131
--operation mode is input

rst_n = INPUT();


--led[0] is led[0] at PIN_7
--operation mode is output

led[0] = OUTPUT(A1L3Q);


--led[1] is led[1] at PIN_8
--operation mode is output

led[1] = OUTPUT(A1L5Q);


--led[2] is led[2] at PIN_11
--operation mode is output

led[2] = OUTPUT(A1L7Q);


--led[3] is led[3] at PIN_12
--operation mode is output

led[3] = OUTPUT(A1L9Q);




⌨️ 快捷键说明

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