05.09.2015 Views

更 加 细 化 的 框 图

乘法&移位

乘法&移位

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

第 二 种 乘 法 算 法<br />

Start<br />

Multiplier0 = 1<br />

1. Test<br />

Multiplier0<br />

Multiplier0 = 0<br />

1a. Add multiplicand to the left half of product &<br />

place the result in the left half of Product register<br />

Product Multiplier Multiplicand<br />

0000 0000 0011 0010<br />

1: 0010 0000 0011 0010<br />

2: 0001 0000 0011 0010<br />

3: 0001 0000 0001 0010<br />

1: 0011 0000 0001 0010<br />

2: 0001 1000 0001 0010<br />

3: 0001 1000 0000 0010<br />

1: 0001 1000 0000 0010<br />

2: 0000 1100 0000 0010<br />

3: 0000 1100 0000 0010<br />

1: 0000 1100 0000 0010<br />

2: 0000 0110 0000 0010<br />

3: 0000 0110 0000 0010<br />

0000 0110 0000 0010<br />

北 京 大 学 计 算 机 科 学 技 术 系<br />

2. Shift the Product register right 1 bit.<br />

3. Shift the Multiplier register right 1 bit.<br />

32nd<br />

repetition?<br />

No: < 32 repetitions<br />

Yes: 32 repetitions<br />

Done<br />

计 算 机 系 统 结 构 教 研 室

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!