This preview shows page 1. Sign up to view the full content.
Unformatted text preview: corresponds to this version of the calculator. You can include a subtract block in your diagram to implement the subtraction operation. process (clk) begin if rising_edge(clk) then if clear = '1' then dReg <= x"00"; elsif add = '1' then dReg <= dReg + dIn; elsif load = '1' then dReg <= dIn; elsif sub = '1' then dReg <= dReg - dIn; end if; end if; end process; CSE 260 Digital Computers: Organization and Logical Design Homework 2 Jon Turner...
View Full Document
This note was uploaded on 11/12/2010 for the course KTMT KTMT04 taught by Professor Son during the Spring '10 term at Dallas Colleges.
- Spring '10