1 //
2 // Copyright (c) 2010-2024 Antmicro
3 //
4 // This file is licensed under the MIT License.
5 // Full license text is available in 'licenses/MIT.txt'.
6 //
7 using Antmicro.Renode.Peripherals.Bus;
8 
9 namespace Antmicro.Renode.Peripherals.Mocks
10 {
11     public class MockDoubleWordPeripheralWithOnlyRegionReadMethod : IDoubleWordPeripheral
12     {
MockDoubleWordPeripheralWithOnlyRegionReadMethod()13         public MockDoubleWordPeripheralWithOnlyRegionReadMethod()
14         {
15         }
16 
Reset()17         public void Reset()
18         {
19         }
20 
ReadDoubleWord(long offset)21         public virtual uint ReadDoubleWord(long offset)
22         {
23             return 0;
24         }
25 
WriteDoubleWord(long offset, uint value)26         public virtual void WriteDoubleWord(long offset, uint value)
27         {
28         }
29 
30         // Write method is intentionally omitted to test error checking logic.
31         [ConnectionRegion("region")]
ReadDoubleWordFromRegion(long offset)32         public uint ReadDoubleWordFromRegion(long offset)
33         {
34             return 0;
35         }
36     }
37 }
38