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

📄 key_scan.map.eqn

📁 此程序实现的是矩阵式键盘的扫描的电路
💻 EQN
字号:
--A1L62Q is kbrow[3]~reg0
--operation mode is normal

A1L62Q_lut_out = cnt[0] & cnt[1];
A1L62Q = DFFEA(A1L62Q_lut_out, clk, , , , , );


--A1L42Q is kbrow[2]~reg0
--operation mode is normal

A1L42Q_lut_out = cnt[1] & !cnt[0];
A1L42Q = DFFEA(A1L42Q_lut_out, clk, , , , , );


--A1L22Q is kbrow[1]~reg0
--operation mode is normal

A1L22Q_lut_out = cnt[0] & !cnt[1];
A1L22Q = DFFEA(A1L22Q_lut_out, clk, , , , , );


--A1L02Q is kbrow[0]~reg0
--operation mode is normal

A1L02Q_lut_out = !cnt[0] & !cnt[1];
A1L02Q = DFFEA(A1L02Q_lut_out, clk, , , , , );


--A1L04Q is seg7_out[3]~reg0
--operation mode is normal

A1L04Q_lut_out = seg7[3];
A1L04Q = DFFEA(A1L04Q_lut_out, A1L9, , , , , );


--A1L83Q is seg7_out[2]~reg0
--operation mode is normal

A1L83Q_lut_out = seg7[2];
A1L83Q = DFFEA(A1L83Q_lut_out, A1L9, , , , , );


--A1L63Q is seg7_out[1]~reg0
--operation mode is normal

A1L63Q_lut_out = seg7[1];
A1L63Q = DFFEA(A1L63Q_lut_out, A1L9, , , , , );


--A1L43Q is seg7_out[0]~reg0
--operation mode is normal

A1L43Q_lut_out = seg7[0];
A1L43Q = DFFEA(A1L43Q_lut_out, A1L9, , , , , );


--cnt[0] is cnt[0]
--operation mode is normal

cnt[0]_lut_out = !cnt[0];
cnt[0] = DFFEA(cnt[0]_lut_out, clk, , , , , );


--cnt[1] is cnt[1]
--operation mode is normal

cnt[1]_lut_out = cnt[0] $ cnt[1];
cnt[1] = DFFEA(cnt[1]_lut_out, clk, , , , , );


--seg7[3] is seg7[3]
--operation mode is normal

seg7[3]_lut_out = sta[1] & A1L01;
seg7[3] = DFFEA(seg7[3]_lut_out, clk, start, , , , );


--dat[1] is dat[1]
--operation mode is normal

dat[1]_lut_out = !A1L11;
dat[1] = DFFEA(dat[1]_lut_out, clk, , , start, , );


--dat[3] is dat[3]
--operation mode is normal

dat[3]_lut_out = !A1L01;
dat[3] = DFFEA(dat[3]_lut_out, clk, , , start, , );


--dat[0] is dat[0]
--operation mode is normal

dat[0]_lut_out = !A1L21;
dat[0] = DFFEA(dat[0]_lut_out, clk, , , start, , );


--A1L9 is i94~20
--operation mode is normal

A1L9 = !dat[0] # !dat[3] # !dat[1];


--seg7[2] is seg7[2]
--operation mode is normal

seg7[2]_lut_out = A1L01 & !cnt[0];
seg7[2] = DFFEA(seg7[2]_lut_out, clk, start, , , , );


--seg7[1] is seg7[1]
--operation mode is normal

seg7[1]_lut_out = !kbcol[2] & !kbcol[3] & (kbcol[0] $ kbcol[1]);
seg7[1] = DFFEA(seg7[1]_lut_out, clk, start, , , , );


--seg7[0] is seg7[0]
--operation mode is normal

seg7[0]_lut_out = !kbcol[1] & !kbcol[3] & (kbcol[0] $ kbcol[2]);
seg7[0] = DFFEA(seg7[0]_lut_out, clk, start, , , , );


--sta[1] is sta[1]
--operation mode is normal

sta[1]_lut_out = cnt[1];
sta[1] = DFFEA(sta[1]_lut_out, clk, , , , , );


--A1L01 is i~43
--operation mode is normal

A1L01 = kbcol[0] & !kbcol[1] & !kbcol[2] & !kbcol[3] # !kbcol[0] & (kbcol[1] & !kbcol[2] & !kbcol[3] # !kbcol[1] & (kbcol[2] $ kbcol[3]));


--A1L11 is i~46
--operation mode is normal

A1L11 = !kbcol[0] & !kbcol[1] & (kbcol[2] $ kbcol[3]);


--A1L21 is i~48
--operation mode is normal

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


--clk is clk
--operation mode is input

clk = INPUT();


--kbcol[0] is kbcol[0]
--operation mode is input

kbcol[0] = INPUT();


--kbcol[1] is kbcol[1]
--operation mode is input

kbcol[1] = INPUT();


--kbcol[2] is kbcol[2]
--operation mode is input

kbcol[2] = INPUT();


--kbcol[3] is kbcol[3]
--operation mode is input

kbcol[3] = INPUT();


--start is start
--operation mode is input

start = INPUT();


--kbrow[3] is kbrow[3]
--operation mode is output

kbrow[3] = OUTPUT(A1L62Q);


--kbrow[2] is kbrow[2]
--operation mode is output

kbrow[2] = OUTPUT(A1L42Q);


--kbrow[1] is kbrow[1]
--operation mode is output

kbrow[1] = OUTPUT(A1L22Q);


--kbrow[0] is kbrow[0]
--operation mode is output

kbrow[0] = OUTPUT(A1L02Q);


--seg7_out[3] is seg7_out[3]
--operation mode is output

seg7_out[3] = OUTPUT(A1L04Q);


--seg7_out[2] is seg7_out[2]
--operation mode is output

seg7_out[2] = OUTPUT(A1L83Q);


--seg7_out[1] is seg7_out[1]
--operation mode is output

seg7_out[1] = OUTPUT(A1L63Q);


--seg7_out[0] is seg7_out[0]
--operation mode is output

seg7_out[0] = OUTPUT(A1L43Q);


⌨️ 快捷键说明

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