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

📄 leftshift.vst

📁 i need of vhdl code for 32-bit risc processor
💻 VST
字号:
ENTITY leftshift ISPORT (inpbit1 : IN bit;inpvec1 : IN bit_vector(4 downto 0);shresult1 : OUT bit_vector(4 downto 0));END leftshift;ARCHITECTURE leftshift_arch OF leftshift ISCOMPONENT mux2to1PORT (inp1 : IN BIT;inp2 : IN BIT;en : IN BIT;outp : OUT BIT);END COMPONENT;COMPONENT buffer1PORT (bu1 : IN BIT;bu2 : OUT BIT);END COMPONENT;SIGNAL selection1 : BIT;beginbuffer11 : buffer1 PORT MAP(inpvec1(4),selection1);mux1 : mux2to1 PORT MAP(inpbit1,inpvec1(3),selection1,shresult1(4));mux2 : mux2to1 PORT MAP(inpvec1(4),inpvec1(2),selection1,shresult1(3));mux3 : mux2to1 PORT MAP(inpvec1(3),inpvec1(1),selection1,shresult1(2));mux4 : mux2to1 PORT MAP(inpvec1(2),inpvec1(0),selection1,shresult1(1));mux5 : mux2to1 PORT MAP(inpvec1(1),inpbit1,selection1,shresult1(0));end;

⌨️ 快捷键说明

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