rlindsberg / 1331IL-VHDL-Design

Microprocessor AR 4003
GNU General Public License v3.0
0 stars 0 forks source link

Preparations for lab 2 done, Simulation 50% passed #27

Closed rlindsberg closed 6 years ago

rlindsberg commented 6 years ago

closes #15 , closes #16 , closes #17 , closes #18 , closes #19 , closes #20 , closes #21 , closes #22 , closes #23 , closes #24

screen shot 2018-09-11 at 00 47 44

gitgnmn commented 6 years ago

"8 + 8 -> o_flag = 1, failed" looks like it doesn't have enough time to propagate. So that might work.

8-(-8) shouldn't be im the test since we should be using signed numbers.

I think y should be 4 bits (data_size) and the carry is overflow.

Also I think all our in and out signals should be data_size or even be using data word.

rlindsberg commented 6 years ago

"8 + 8 -> o_flag = 1, failed" looks like it doesn't have enough time to propagate. So that might work.

In which statement do you think we should change the delay?

rlindsberg commented 6 years ago

8-(-8) shouldn't be im the test since we should be using signed numbers.

What do you think about 5-(-5)?

rlindsberg commented 6 years ago

I think y should be 4 bits (data_size) and the carry is overflow. Also I think all our in and out signals should be data_size or even be using data word.

I tried that, but got issue: cannot assign 4 bit to a 5 bit vector. Thus I changed y to 5 bits. This problem is coming from my design of cpu package in the very first commit. Chaning the type to data_size means a large rewrite of the logic. Wouldd't recommend.

We could just forget about the 5th bit in y but instead assign it to carry.

gitgnmn commented 6 years ago

We could just forget about the 5th bit in y but instead assign it to carry.

Yeah, I think this is the right way to go here.

rlindsberg commented 6 years ago

FANTASTIC! @gitgnmn

rlindsberg commented 6 years ago

Confirmed working by trust. Not tested. Merged