当前位置:网站首页>VHDL implementation of single cycle CPU design

VHDL implementation of single cycle CPU design

2022-07-07 03:26:00 QQ_ seven hundred and seventy-eight million one hundred and thi

VHDL Realize single cycle CPU Design
stay quartus achieve , The top level is schematic mode , Language use VHDL, Realize single cycle CPU The function of , Include ALU,RAM,ROM,MUX,regfile Equal module , Below are engineering screenshots and simulation screenshots .
 Insert picture description here
Simulation screenshot :

 Insert picture description here

ALU Module code :
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
entity ALU_lrt is
port(a,b:in std_logic_vector(15 downto 0);
func:in std_logic_vector(3 downto 0);
c_lrt:out std_logic_vector(15 downto 0));
end ALU_lrt;
architecture behave of ALU_lrt is
begin
process (a,b,func)
begin
case func is
when “0000”=>c_lrt<=a and b;–and
when “0001”=>c_lrt<=a or b;–or
when “0010”=>c_lrt<=a xor b;–xor

原网站

版权声明
本文为[QQ_ seven hundred and seventy-eight million one hundred and thi]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207062015323986.html