Can Some One Explain To Me This Prom Circuit

  • Context: Engineering 
  • Thread starter Thread starter transgalactic
  • Start date Start date
  • Tags Tags
    Circuit Explain
Click For Summary

Discussion Overview

The discussion revolves around the implementation of a circuit that takes an 8-bit input number and outputs its two's complement using PROMs (Programmable Read-Only Memory). Participants are exploring the construction of truth tables for this circuit and the logic behind the connections between the PROMs.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant seeks clarification on how the truth tables for the PROMs are constructed and questions the logic behind the data line connecting to the address line of another PROM.
  • Another participant explains that the data line serves as a carry for the two's complement operation, which involves inverting bits and adding one, suggesting that the fifth bit indicates the sign of the number.
  • A different participant argues that the PROMs do not perform arithmetic operations and describes the outputs of the first PROM as resembling the two's complement but dropping the lowest bit, while noting that the last three lines appear incorrect.
  • Another participant suggests using a simulator to test the truth table and discusses conditions under which the output may return the same value based on the input being less than or equal to the maximum 8-bit value.
  • One participant challenges the idea that when A4=1, the output remains the same for values less than the maximum, questioning the necessity for change in outputs.

Areas of Agreement / Disagreement

Participants express differing views on the interpretation of the truth tables and the role of the PROMs in performing arithmetic operations. There is no consensus on the correctness of the outputs or the significance of certain conditions.

Contextual Notes

Some participants highlight potential inaccuracies in the truth tables and the implications for handling negative numbers, but these points remain unresolved. The discussion reflects uncertainty regarding the logic and functionality of the circuit design.

transgalactic
Messages
1,386
Reaction score
0
i need to implement a circuit that has 8 bit input number
and its output is the complement two of this number.
i need to implement it using
2^5 X 4 2^4X4 proms
here is the solution:
http://s290.photobucket.com/albums/ll279/t...nt=IMG_8819.jpg

but i can't understand how they constructed these tables??

why there is a data line goes into the address line of another prom?
 
Physics news on Phys.org
The data line is the carry for when you do the sum at the end...
Two's complement works by doing a logic 'not' on each bit and then adding '1' to the sum.
You'll need the carry bit, as it's two four bit words.
I think the fifth bit (A4) in the second array is to show its a negative or positive number but isn't applied.
The first bit is tied to the input as its always the same if its posiitve or negative.
Hope that helps.
 
but this is not a half adder component this is prom
we don't need to do math in proms
we have for each address a data .
i was told some thing else if you could explain it to me:
"
In PROM #1, the first 5 lines look like the output is the two's complement of the input, but drops the lowest bit. The last 3 lines don't look right though.
However, they will apparently never be executed.

In PROM #2, it looks the same except the last 3 lines are correct as well.

The D3 output of PROM #1 is sort of like a carry output of an adder.
The equivalent input for the most significant bit is always 0. So when you invert it, it should always be a 1. The only way it is a zero is when you do the second half of two's complement (increment by 1), if it has a carry. So that bit acts like a reverse carry. It is 1 if nothing carried out, and 0 is something did.

If you look at the PROM #2, you will notice that it needs a reverse carry since if the A0 is 1 and goes to 0, it actually adds 1.
"
 
Yes...i agree about the maths but just saying what is obvious from the table only...

Have you tried sticking the truth table into the simulator if there is one in the software?

really, with the last three lines being incorrect as a two's complement, its highly likely then that negative numbers aren't important.

What seems obvious from the three peices of data given is the following set conditions:-

if A4 is 1,

then the output returns a value depending on two conditions.

a) 1st condition is that its less than the highest value (ie. less than 1111 1111)
as in the two values that returned the same answer

and

b) the 2nd condition is that its the highest value. (ie. it is 1111 1111)
which returned a unique answer.

only based on the data what we have.
 
Last edited:
so you are saying then when A4=1 then if the data is smaller then 1111 it returns
the same as it was before.
all the numbers except one are smaller then 1111 1111
they cannot stay the same
they have to change
?
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 25 ·
Replies
25
Views
6K
  • · Replies 3 ·
Replies
3
Views
5K