Can Some One Explain To Me This Prom Circuit

In summary, the table in PROM #1 is used to implement a 2's complement circuit, but it is incorrect and only works for positive numbers. In PROM #2, the table is correct, but the last three lines are not executed.
  • #1
transgalactic
1,395
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
  • #2
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.
 
  • #3
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.
"
 
  • #4
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:
  • #5
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
?
 

Related to Can Some One Explain To Me This Prom Circuit

1. What is a prom circuit?

A prom circuit is a type of electronic circuit that is used to store and retrieve digital information. It stands for Programmable Read-Only Memory and is commonly used in microcontrollers and other electronic devices.

2. How does a prom circuit work?

A prom circuit consists of an array of memory cells, each of which can store a single bit of digital information. These cells can be programmed (written to) by applying a specific electrical voltage to them. Once programmed, the information remains stored in the circuit even when the power is turned off.

3. What are the applications of prom circuits?

Prom circuits are commonly used in microcontrollers, which are found in a wide range of electronic devices such as computers, smartphones, and appliances. They are also used in industrial control systems, automotive electronics, and other applications where non-volatile storage of digital information is needed.

4. How is a prom circuit different from other types of memory?

Prom circuits differ from other types of memory, such as Random Access Memory (RAM), in that they are non-volatile and cannot be easily changed or erased. This makes them useful for storing important data that needs to be retained even when the power is turned off.

5. Can prom circuits be reprogrammed?

No, prom circuits cannot be reprogrammed once they have been initially programmed. This is because the programming process physically alters the circuit, making it impossible to change the stored information. However, modern versions of prom circuits, such as Electrically Erasable Programmable Read-Only Memory (EEPROM), allow for reprogramming by using specialized methods.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
10
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
4K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
11
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
25
Views
5K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
3K
Replies
16
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
4K
Back
Top