hello.fit.eqn

来自「一个对刚毕业出来找工作以及面试的人的最佳伙伴」· EQN 代码 · 共 41 行

EQN
41
字号
-- 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.
--key[1] is key[1] at PIN_119
--operation mode is input

key[1] = INPUT();


--key[0] is key[0] at PIN_118
--operation mode is input

key[0] = INPUT();


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

led[1] = OUTPUT(key[1]);


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

led[0] = OUTPUT(!key[0]);





⌨️ 快捷键说明

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