CONTROL - - control module (implements MIPS control unit)...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
-- control module (implements MIPS control unit) LIBRARY IEEE; USE IEEE.STD_LOGIC_1164.ALL; USE IEEE.STD_LOGIC_ARITH.ALL; USE IEEE.STD_LOGIC_SIGNED.ALL; U ENTITY control IS PORT( Opcode : IN STD_LOGIC_VECTOR( 5 DOWNTO 0 ); RegDst : OUT STD_LOGIC; ALUSrc : OUT STD_LOGIC; MemtoReg : OUT STD_LOGIC; RegWrite : OUT STD_LOGIC; MemRead : OUT STD_LOGIC; MemWrite : OUT STD_LOGIC; Branch : OUT STD_LOGIC; ALUop : OUT STD_LOGIC_VECTOR( 1 DOWNTO 0 ); clock, reset : IN STD_LOGIC ); S END control; E ARCHITECTURE behavior OF control IS A SIGNAL R_format, Lw, Sw, Beq : STD_LOGIC; : SIGNAL RegWrite_DDD, RegWrite_DD, RegWrite_D : STD_LOGIC; SIGNAL RegDst_D, ALUSrc_D : STD_LOGIC; SIGNAL Branch_DD, Branch_D, MemWrite_DD, MemWrite_D, MemRead_DD, MemRead_D : STD_LOGIC; SIGNAL MemtoReg_DDD, MemtoReg_DD, MemtoReg_D : STD_LOGIC; SIGNAL ALUop_D : STD_LOGIC_VECTOR( 1 DOWNTO 0 ); : BEGIN -- Code to generate control signals using opcode bits R_format <= '1' WHEN Opcode = "000000" ELSE '0'; Lw <= '1' WHEN Opcode = "100011"
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/01/2010 for the course ECE 3055 taught by Professor Staff during the Fall '08 term at Georgia Institute of Technology.

Page1 / 2

CONTROL - - control module (implements MIPS control unit)...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online