S
Sylvain Munaut
Guest
Jeff Shafer wrote:
pipeline (i.e. the read data doesn't appear at T+1 but T+2 (or T+3,
depdnds if your timing margin requires u to re-register dout or not)).
But the two processors are not equal ... one has less latency ...
It depends of the controller. If you can modify it to tolerate moreThanks for the idea Sylvain. That would work for the test program I
described, but that was written only to illustrate the problem. In reality,
we'd like to have this shared scratchpad readable and writable by both
PowerPCs. So while registering and inverting the clock would work for the
writes, I think it would corrupt reads by that processor....
pipeline (i.e. the read data doesn't appear at T+1 but T+2 (or T+3,
depdnds if your timing margin requires u to re-register dout or not)).
But the two processors are not equal ... one has less latency ...
Thanks,
Jeff
"Sylvain Munaut" <com.246tNt@tnt> wrote in message
news:43e3b444$0$13886$ba620e4c@news.skynet.be...
As I understand, you use 1 port always for read and another always for
write.
So you could clock the write port on the negative edge even while
keeping the two processors and their plb bus on the same clock. Let's
says clk is your main clock. Instead of feeding di,dip and wren directly
to the BRAM, register them in the clk domain, then connect the output of
these registers to the respective port of the BRAM and feed "not clk" to
the wrclk ping of the BRAM.
Sylvain