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

📄 decoder.map.eqn

📁 这是用VHDL编写的译码程序,程序简单易懂
💻 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.
--B1_Y[6] is decoder:inst|Y[6]
B1_Y[6]_p1_out = sel[1] & !sel[0] & sel[2];
B1_Y[6]_or_out = B1_Y[6]_p1_out;
B1_Y[6]_reg_input = !(B1_Y[6]_or_out);
B1_Y[6] = DFFE(B1_Y[6]_reg_input, GLOBAL(clk), , , en);


--B1_Y[5] is decoder:inst|Y[5]
B1_Y[5]_p1_out = !sel[1] & sel[0] & sel[2];
B1_Y[5]_or_out = B1_Y[5]_p1_out;
B1_Y[5]_reg_input = !(B1_Y[5]_or_out);
B1_Y[5] = DFFE(B1_Y[5]_reg_input, GLOBAL(clk), , , en);


--B1_Y[4] is decoder:inst|Y[4]
B1_Y[4]_p1_out = !sel[1] & !sel[0] & sel[2];
B1_Y[4]_or_out = B1_Y[4]_p1_out;
B1_Y[4]_reg_input = !(B1_Y[4]_or_out);
B1_Y[4] = DFFE(B1_Y[4]_reg_input, GLOBAL(clk), , , en);


--B1_Y[3] is decoder:inst|Y[3]
B1_Y[3]_p1_out = sel[0] & sel[1] & !sel[2];
B1_Y[3]_or_out = B1_Y[3]_p1_out;
B1_Y[3]_reg_input = !(B1_Y[3]_or_out);
B1_Y[3] = DFFE(B1_Y[3]_reg_input, GLOBAL(clk), , , en);


--B1_Y[2] is decoder:inst|Y[2]
B1_Y[2]_p1_out = !sel[0] & sel[1] & !sel[2];
B1_Y[2]_or_out = B1_Y[2]_p1_out;
B1_Y[2]_reg_input = !(B1_Y[2]_or_out);
B1_Y[2] = DFFE(B1_Y[2]_reg_input, GLOBAL(clk), , , en);


--B1_Y[1] is decoder:inst|Y[1]
B1_Y[1]_p1_out = sel[0] & !sel[1] & !sel[2];
B1_Y[1]_or_out = B1_Y[1]_p1_out;
B1_Y[1]_reg_input = !(B1_Y[1]_or_out);
B1_Y[1] = DFFE(B1_Y[1]_reg_input, GLOBAL(clk), , , en);


--B1_Y[0] is decoder:inst|Y[0]
B1_Y[0]_p1_out = !sel[0] & !sel[1] & !sel[2];
B1_Y[0]_or_out = B1_Y[0]_p1_out;
B1_Y[0]_reg_input = !(B1_Y[0]_or_out);
B1_Y[0] = DFFE(B1_Y[0]_reg_input, GLOBAL(clk), , , en);


--B1_Y[7] is decoder:inst|Y[7]
B1_Y[7]_p1_out = sel[1] & sel[0] & sel[2];
B1_Y[7]_or_out = B1_Y[7]_p1_out;
B1_Y[7]_reg_input = !(B1_Y[7]_or_out);
B1_Y[7] = DFFE(B1_Y[7]_reg_input, GLOBAL(clk), , , en);


--clk is clk
--operation mode is input

clk = INPUT();


--en is en
--operation mode is input

en = INPUT();


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

sel[2] = INPUT();


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

sel[1] = INPUT();


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

sel[0] = INPUT();


--Y[7] is Y[7]
--operation mode is output

Y[7] = OUTPUT(B1_Y[7]);


--Y[6] is Y[6]
--operation mode is output

Y[6] = OUTPUT(B1_Y[6]);


--Y[5] is Y[5]
--operation mode is output

Y[5] = OUTPUT(B1_Y[5]);


--Y[4] is Y[4]
--operation mode is output

Y[4] = OUTPUT(B1_Y[4]);


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

Y[3] = OUTPUT(B1_Y[3]);


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

Y[2] = OUTPUT(B1_Y[2]);


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

Y[1] = OUTPUT(B1_Y[1]);


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

Y[0] = OUTPUT(B1_Y[0]);


⌨️ 快捷键说明

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