SAP computer input and MAR

Source: Internet
Author: User

Input and MAR

Below The program counter is the input and MAR block.

It includes the address and data switch registers. These switch registers is part of the that input unit which allow you to send 4 address bits and 8 data bits to RAM. As you recall, instruction and data words is written into the RAM before a computer run.

The Memory address register (MAR) is part of teh memory. During a computer run, the address in the program counter was latched into the MAR. A bit later, the MAR applies this 4-bits address to teh RAM, where a read operation is performed.

  

1 LibraryIEEE;2  Useieee.std_logic_1164. All;3  use IEEE.NUMERIC_STD.All;
4
6 EntityMAR is7 Port8 (9Class:inch Std_logic;--! Rising Edge ClockTenClr:inch Std_logic;--! Active High Asynchronous clear OneLm:inch Std_logic;--! Active Low Load MAR AD:inch Std_logic_vector(3 Downto 0);--! MAR 4-bit Address Input -Q: out Std_logic_vector(3 Downto 0)--! MAR 4-bit Address Output - ); the EndMAR; - - ArchitectureBeh ofMAR is - begin + - Process(clr,clk,lm,d) + begin A ifCLR ='1' Then atQ <="0000"; -elsif LM ='0' Then - if(CLK'event and CLK ='1') Then -Q <=D; - End if; - End if; in End Process; - to EndBeh

SAP computer input and MAR

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.