D
dwerdna
Hi all
Not having thought it was necessary to use a dual port ram until now I
was after a bit of advice.. I'm getting a few warnings on ModelSim,
and though I dont think I'm doing anything critically wrong I would
like to know if it can be improved.
Im targetting a Spartan 2E, and instantiating ramb4_s8_s8
I have a sampler which updates a RAM addr every second. My RAM is 64
addresses deep, therefore storing the previous minutes results which
the CPU can retrieve and graph at its leisure. I actaully have 8
different sampler channels, so the RAM is being fully utilised
I have decided to use a DP RAM as I felt it was a good way for 2
completely different controllers to access the same information
independently, which would also reduce my coding lines to make a
simpler system.
Both clocks into the RAM are from the same source, so I am getting a
warning that there is no phase difference between the rising edges of
the clocks (apparently it needs 0.1ns). Is this something I need to
modify in some way??
It is also coming up with a warning that I should not be addressing the
same address with both ports (currently the ram_enable is hardwired
'1'), but due to only one side writing and the other side reading I am
comfortable with this. I will probably implement some arbitration here
so that I dont get a unknown value for the read if both sides are
accessing the same address. Again, do I need to worry about this at
all?? Xilinx does advertise it as 'true dual port ram'.. My read
sample might be unknown but that is the worst that could happen isnt
it??
Thanks for your time
Andrew
Not having thought it was necessary to use a dual port ram until now I
was after a bit of advice.. I'm getting a few warnings on ModelSim,
and though I dont think I'm doing anything critically wrong I would
like to know if it can be improved.
Im targetting a Spartan 2E, and instantiating ramb4_s8_s8
I have a sampler which updates a RAM addr every second. My RAM is 64
addresses deep, therefore storing the previous minutes results which
the CPU can retrieve and graph at its leisure. I actaully have 8
different sampler channels, so the RAM is being fully utilised
I have decided to use a DP RAM as I felt it was a good way for 2
completely different controllers to access the same information
independently, which would also reduce my coding lines to make a
simpler system.
Both clocks into the RAM are from the same source, so I am getting a
warning that there is no phase difference between the rising edges of
the clocks (apparently it needs 0.1ns). Is this something I need to
modify in some way??
It is also coming up with a warning that I should not be addressing the
same address with both ports (currently the ram_enable is hardwired
'1'), but due to only one side writing and the other side reading I am
comfortable with this. I will probably implement some arbitration here
so that I dont get a unknown value for the read if both sides are
accessing the same address. Again, do I need to worry about this at
all?? Xilinx does advertise it as 'true dual port ram'.. My read
sample might be unknown but that is the worst that could happen isnt
it??
Thanks for your time
Andrew