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

📄 jianpan.fit.eqn

📁 基于北京革新公司出品的EDA实验工具箱的键盘扫描与同步显示程序。编译环境为quartusll.5.1版本。fpga芯片为EP18CQ240C6
💻 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.
--A1L12Q is KBRow[0]~reg0 at LC_X31_Y7_N8
--operation mode is normal

A1L12Q_lut_out = !count[1] # !count[0];
A1L12Q = DFFEAS(A1L12Q_lut_out, GLOBAL(clk), VCC, , , , , , );


--A1L14Q is KBRow[1]~reg0 at LC_X31_Y7_N2
--operation mode is normal

A1L14Q_lut_out = count[0] # !count[1];
A1L14Q = DFFEAS(A1L14Q_lut_out, GLOBAL(clk), VCC, , , , , , );


--A1L16Q is KBRow[2]~reg0 at LC_X31_Y7_N5
--operation mode is normal

A1L16Q_lut_out = count[1] # !count[0];
A1L16Q = DFFEAS(A1L16Q_lut_out, GLOBAL(clk), VCC, , , , , , );


--A1L18Q is KBRow[3]~reg0 at LC_X31_Y7_N4
--operation mode is normal

A1L18Q_lut_out = count[0] # count[1];
A1L18Q = DFFEAS(A1L18Q_lut_out, GLOBAL(clk), VCC, , , , , , );


--A1L59Q is seg7[6]~reg0 at LC_X31_Y16_N1
--operation mode is normal

A1L59Q_lut_out = A1L22 & (A1L23 # !sta[1]) # !A1L22 & A1L19 & sta[1];
A1L59Q = DFFEAS(A1L59Q_lut_out, GLOBAL(clk), GLOBAL(start), , , , , , );


--A1L57Q is seg7[5]~reg0 at LC_X31_Y16_N9
--operation mode is normal

A1L57Q_lut_out = sta[1] & (A1L25 & (A1L21) # !A1L25 & A1L24) # !sta[1] & (A1L25);
A1L57Q = DFFEAS(A1L57Q_lut_out, GLOBAL(clk), GLOBAL(start), , , , , , );


--A1L55Q is seg7[4]~reg0 at LC_X32_Y16_N7
--operation mode is normal

A1L55Q_lut_out = sta[1] & A1L24 # !sta[1] & (A1L26);
A1L55Q = DFFEAS(A1L55Q_lut_out, GLOBAL(clk), GLOBAL(start), , , A1L27, , , count[0]);


--A1L53Q is seg7[3]~reg0 at LC_X31_Y16_N6
--operation mode is normal

A1L53Q_lut_out = A1L30 & (A1L31 # !sta[1]) # !A1L30 & A1L28 & sta[1];
A1L53Q = DFFEAS(A1L53Q_lut_out, GLOBAL(clk), GLOBAL(start), , , , , , );


--A1L51Q is seg7[2]~reg0 at LC_X32_Y16_N3
--operation mode is normal

A1L51Q_lut_out = A1L33 # A1L23 & !sta[1] & !count[0];
A1L51Q = DFFEAS(A1L51Q_lut_out, GLOBAL(clk), GLOBAL(start), , , , , , );


--A1L49Q is seg7[1]~reg0 at LC_X31_Y16_N3
--operation mode is normal

A1L49Q_lut_out = A1L35 & (A1L28 # !sta[1]) # !A1L35 & A1L34 & sta[1];
A1L49Q = DFFEAS(A1L49Q_lut_out, GLOBAL(clk), GLOBAL(start), , , , , , );


--A1L47Q is seg7[0]~reg0 at LC_X32_Y16_N4
--operation mode is normal

A1L47Q_lut_out = sta[1] & A1L31 # !sta[1] & (A1L20);
A1L47Q = DFFEAS(A1L47Q_lut_out, GLOBAL(clk), GLOBAL(start), , , A1L27, , , count[0]);


--count[0] is count[0] at LC_X31_Y16_N4
--operation mode is normal

count[0]_lut_out = !count[0];
count[0] = DFFEAS(count[0]_lut_out, GLOBAL(clk), VCC, , , , , , );


--count[1] is count[1] at LC_X31_Y7_N6
--operation mode is normal

count[1]_lut_out = count[0] $ count[1];
count[1] = DFFEAS(count[1]_lut_out, GLOBAL(clk), VCC, , , , , , );


--A1L19 is Mux~526 at LC_X32_Y15_N2
--operation mode is normal

A1L19 = KBCol[2] & (KBCol[0] & (KBCol[1] $ KBCol[3]) # !KBCol[0] & KBCol[1] & KBCol[3]);


--A1L20 is Mux~527 at LC_X32_Y16_N0
--operation mode is normal

A1L20 = KBCol[0] & KBCol[3] & (KBCol[1] $ KBCol[2]);


--A1L21 is Mux~528 at LC_X32_Y15_N5
--operation mode is normal

A1L21 = KBCol[3] & (KBCol[0] & (KBCol[2] $ KBCol[1]) # !KBCol[0] & KBCol[2] & KBCol[1]);


--A1L22 is Mux~529 at LC_X31_Y16_N7
--operation mode is normal
--sload is tied to vcc, which is functionally the same as treating the sdata port as the data input.

sta[1]_qfbk = sta[1];
A1L22 = sta[1]_qfbk & (count[0]) # !sta[1]_qfbk & (count[0] & (A1L20) # !count[0] & A1L21);

--sta[1] is sta[1] at LC_X31_Y16_N7
--operation mode is normal
--sload is tied to vcc, which is functionally the same as treating the sdata port as the data input.

sta[1] = DFFEAS(A1L22, GLOBAL(clk), VCC, , , count[1], , , VCC);


--A1L23 is Mux~530 at LC_X32_Y16_N6
--operation mode is normal

A1L23 = KBCol[0] & (KBCol[1] & (KBCol[3] $ KBCol[2]) # !KBCol[1] & KBCol[3] & KBCol[2]) # !KBCol[0] & KBCol[1] & KBCol[3] & KBCol[2];


--A1L24 is Mux~532 at LC_X32_Y16_N9
--operation mode is normal

A1L24 = KBCol[3] & KBCol[2] & (KBCol[0] $ KBCol[1]);


--A1L25 is Mux~533 at LC_X31_Y16_N8
--operation mode is normal

A1L25 = count[0] & (sta[1] # A1L23) # !count[0] & A1L20 & !sta[1];


--A1L26 is Mux~535 at LC_X32_Y16_N1
--operation mode is normal

A1L26 = !KBCol[0] & KBCol[1] & KBCol[3] & KBCol[2];


--A1L27 is Mux~536 at LC_X31_Y16_N0
--operation mode is normal

A1L27 = sta[1] & (A1L23) # !sta[1] & A1L19;


--A1L28 is Mux~537 at LC_X32_Y15_N4
--operation mode is normal

A1L28 = KBCol[0] & KBCol[2] & (KBCol[1] $ KBCol[3]);


--A1L29 is Mux~538 at LC_X32_Y15_N8
--operation mode is normal

A1L29 = KBCol[1] & KBCol[3] & (KBCol[0] $ KBCol[2]);


--A1L30 is Mux~539 at LC_X31_Y16_N5
--operation mode is normal

A1L30 = sta[1] & (count[0]) # !sta[1] & (count[0] & (A1L19) # !count[0] & A1L29);


--A1L31 is Mux~540 at LC_X32_Y16_N5
--operation mode is normal

A1L31 = KBCol[1] & (KBCol[0] & (KBCol[3] $ KBCol[2]) # !KBCol[0] & KBCol[3] & KBCol[2]);


--A1L32 is Mux~542 at LC_X32_Y16_N8
--operation mode is normal

A1L32 = KBCol[0] & (KBCol[1] & (KBCol[3] $ KBCol[2]) # !KBCol[1] & KBCol[3] & KBCol[2]);


--A1L33 is Mux~543 at LC_X32_Y16_N2
--operation mode is normal

A1L33 = count[0] & (sta[1] & (A1L20) # !sta[1] & A1L32) # !count[0] & sta[1] & A1L32;


--A1L34 is Mux~545 at LC_X32_Y15_N9
--operation mode is normal

A1L34 = KBCol[0] & KBCol[1] & (KBCol[2] $ KBCol[3]);


--A1L35 is Mux~546 at LC_X31_Y16_N2
--operation mode is normal

A1L35 = sta[1] & (count[0]) # !sta[1] & (count[0] & A1L32 # !count[0] & (A1L19));


--clk is clk at PIN_152
--operation mode is input

clk = INPUT();


--KBCol[0] is KBCol[0] at PIN_136
--operation mode is input

KBCol[0] = INPUT();


--KBCol[1] is KBCol[1] at PIN_135
--operation mode is input

KBCol[1] = INPUT();


--KBCol[2] is KBCol[2] at PIN_134
--operation mode is input

KBCol[2] = INPUT();


--KBCol[3] is KBCol[3] at PIN_133
--operation mode is input

KBCol[3] = INPUT();


--start is start at PIN_1
--operation mode is input

start = INPUT();


--KBRow[0] is KBRow[0] at PIN_132
--operation mode is output

KBRow[0] = OUTPUT(A1L12Q);


--KBRow[1] is KBRow[1] at PIN_131
--operation mode is output

KBRow[1] = OUTPUT(A1L14Q);


--KBRow[2] is KBRow[2] at PIN_128
--operation mode is output

KBRow[2] = OUTPUT(A1L16Q);


--KBRow[3] is KBRow[3] at PIN_127
--operation mode is output

KBRow[3] = OUTPUT(A1L18Q);


--seg7[6] is seg7[6] at PIN_184
--operation mode is output

seg7[6] = OUTPUT(A1L59Q);


--seg7[5] is seg7[5] at PIN_183
--operation mode is output

seg7[5] = OUTPUT(A1L57Q);


--seg7[4] is seg7[4] at PIN_182
--operation mode is output

seg7[4] = OUTPUT(A1L55Q);


--seg7[3] is seg7[3] at PIN_181
--operation mode is output

seg7[3] = OUTPUT(A1L53Q);


--seg7[2] is seg7[2] at PIN_180
--operation mode is output

seg7[2] = OUTPUT(A1L51Q);


--seg7[1] is seg7[1] at PIN_179
--operation mode is output

seg7[1] = OUTPUT(A1L49Q);


--seg7[0] is seg7[0] at PIN_178
--operation mode is output

seg7[0] = OUTPUT(A1L47Q);


--scan[0] is scan[0] at PIN_83
--operation mode is output

scan[0] = OUTPUT(VCC);


--scan[1] is scan[1] at PIN_84
--operation mode is output

scan[1] = OUTPUT(GND);


--scan[2] is scan[2] at PIN_85
--operation mode is output

scan[2] = OUTPUT(GND);


--scan[3] is scan[3] at PIN_86
--operation mode is output

scan[3] = OUTPUT(GND);


--scan[4] is scan[4] at PIN_87
--operation mode is output

scan[4] = OUTPUT(GND);


--scan[5] is scan[5] at PIN_88
--operation mode is output

scan[5] = OUTPUT(GND);


--scan[6] is scan[6] at PIN_93
--operation mode is output

scan[6] = OUTPUT(GND);


--scan[7] is scan[7] at PIN_94
--operation mode is output

scan[7] = OUTPUT(GND);




⌨️ 快捷键说明

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