Re: custom peripheral registers



On Jun 13, 5:12 pm, Andrea05 <c...@xxxxxxxx> wrote:

I would like to set a bit of one register from software to tell the
peripheral to start to work. When it has finished, i'd like that the
peripheral sets to ' 0 ' the same bit in order to communicate that the
work is done. In this way setting again the bit to ' 1 ' the
peripheral will start to workagain, and so on.

The problem is: when I syntethize the peripheral I got the error:

Multi-source in Unit <user_logic> on signal <slv_reg3(0)>

Two simple choices:

1) Implement the by by instantiating the vendor's flip flop with
clear. Processor drives data and enable, peripheral drives clear.

2) Describe the desired behaviour of a register: At clock transition
if processor is writing, set to 1. Else if peripheral is done, set to
0. Otherwise, do nothing...

That's assuming you are willing to follow a rule in software of never
writing the bit without first checking to make sure its cleared. And
assuming your peripheral can't clear it until at least a few clocks
after it's been set. And assuming your processor and peripheral share
a clock; if any of these aren't true, it's a little more complicated.


.



Relevant Pages

  • Re: Now.date.tostring and now.seconds.tostring() giving different result.
    ... you have a race condition between your thread and the clock. ... DateTime dtNow = DateTime.Now; ... And then after some small processing i am writing ... the 4 separate accesses to DateTime.Now. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: GR ?
    ... > | snip ... > |> Yes I agree that locally the observer can effect the observed but its ... The SUMO clock might be an ...
    (sci.physics.relativity)
  • Re: Why should I (not) use an internal oscillator for 8-bit micros
    ... Both sides are NOT synchronized - that's the essence of async ... > clock and data lines, the clock can vary wildly with no adverse effect on ... No synchronization between devices needed. ... you'll be unable to communicate with anyone else. ...
    (comp.arch.embedded)
  • Re: Need help in writing a loop !
    ... I am confused in writing a loop. ... my data looks like  [time in sec, clock, work] ... look through a vector and find the indexes of all matching rows. ...
    (comp.soft-sys.matlab)
  • Re: Need help in writing a loop !
    ... On 2/15/2011 4:41 AM, Raady wrote: ... I am confused in writing a loop. ... my data looks like [time in sec, clock, work] ...
    (comp.soft-sys.matlab)