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

📄 boma.fit.eqn

📁 通过VERILOG HDL语言使用CPLD连接PS2键盘
💻 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.
--A1L51 is bb[0]~37 at LC38
A1L51_p1_out = reset & a[0];
A1L51_or_out = A1L51_p1_out;
A1L51 = A1L51_or_out;


--A1L61 is bb[1]~39 at LC37
A1L61_p1_out = reset & a[1];
A1L61_or_out = A1L61_p1_out;
A1L61 = A1L61_or_out;


--A1L71 is bb[2]~41 at LC35
A1L71_p1_out = reset & a[2];
A1L71_or_out = A1L71_p1_out;
A1L71 = A1L71_or_out;


--A1L81 is bb[3]~43 at LC33
A1L81_p1_out = reset & a[3];
A1L81_or_out = A1L81_p1_out;
A1L81 = A1L81_or_out;


--a[0] is a[0] at PIN_31
--operation mode is input

a[0] = INPUT();


--a[1] is a[1] at PIN_32
--operation mode is input

a[1] = INPUT();


--a[2] is a[2] at PIN_35
--operation mode is input

a[2] = INPUT();


--a[3] is a[3] at PIN_36
--operation mode is input

a[3] = INPUT();


--reset is reset at PIN_37
--operation mode is input

reset = INPUT();


--b[0] is b[0] at PIN_22
--operation mode is output

b[0] = OUTPUT(A1L51);


--b[1] is b[1] at PIN_23
--operation mode is output

b[1] = OUTPUT(A1L61);


--b[2] is b[2] at PIN_24
--operation mode is output

b[2] = OUTPUT(A1L71);


--b[3] is b[3] at PIN_25
--operation mode is output

b[3] = OUTPUT(A1L81);






⌨️ 快捷键说明

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