![]() |
|
|
|
#1 |
|
Hey all, for a computer organisation and design project we have to write a 4 bit alu in vhdl... so far so good, except i can not for the life of me get my program counter to increment. The program counter is a component with the current PC as input, and it outputs the new PC (it may be plus 1, or it may be plus an offset address for a branch operation)..
This is working ok, i enter a value of 0 and get out a value of 1, and this value is set to a signal in the main CPU component... how can i pass this signal back into the input? im pretty sure ive tried everything - i set both the input and the output as buffer but whenever i seem to think its wired up correctly, the output just doesnt change and so it doesnt get back into the input and the PC never increments, which leads to a useless cpu haha Program counter code: Code:
Code:
yeh so basically i need newPC to equal alteredPC - but i cant get it to work and i have no more ideas.... any help would be so appreciated!!! thanks GracelessROB |
|
|
|
|
|
|
#2 |
|
Member
Join Date: Jan 2009
Posts: 31
|
Code:
joris |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jun 2009
Posts: 2
|
hmnn ive already tried that, i put it in a process with alteredPC as the sensitivity list, and newpc never changes...
GracelessROB |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Telco question - Cisco LLF and loopback | skeeney | Hardware | 0 | 07-11-2007 07:40 PM |
| Homebuilt USB loopback plug | Dan Stephen | A+ Certification | 1 | 07-25-2005 11:08 AM |