qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset


From: Blue Swirl
Subject: Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset
Date: Sun, 2 Oct 2011 20:05:53 +0000

On Sun, Oct 2, 2011 at 7:58 PM, Avi Kivity <address@hidden> wrote:
>> >
>> > There is no way to guarantee this.  If A is driven high before the
>> > target device detects RESET, it will see the edge.
>>
>> That case is not what we have here, it would be equivalent of pulsing
>> qemu_irq reset lines for each device in order. This would be even
>> worse than what we have now.
>
>
> That's  not what I'm saying.
>
>
>>
>> > Of course real hardware has timing specs, but these are maximum
>> > latencies.  If the XNOR gate is especially fast today it can
>> > overtake the target device's reset edge detector.
>>
>> Devices don't have reset edge detectors.
>>
>
> Say the target device's output has an AND connecting #RESET and an input, to 
> the output.  When #RESET is asserted, the input is driven low.  The output is 
> connected to a counter.
>
> When #RESET is asserted, the source device's A and B are raised high, with 
> delay Da and Db.  If they are different, the XNOR gate generates a pulse with 
> delay Dx.  If Dx is smaller than the AND gate's delay Drm, then the counter 
> will count.

On a real device, the reset and clocks are the few global signals
available, distributed to most places. The counter would be
constructed of JK flip flops and the reset line would be connected to
the clear line of the flip flops. Then the counters don't count while
reset is active.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]