+ path add $ORIGIN
+ i @peripherals/trng_server.cs
+
+
+ private void DefineRegisters()
+ {
+ Registers.STATUS.Define(this) // RDY is set on reset
+ .WithFlag(0, name: "ready",
+ valueProviderCallback: _ => true)
+ .WithFlag(1, name: "avail",
+ valueProviderCallback: _ => true)
+ ;
+ Registers.DATA.Define(this)
+ .WithValueField(0, 32, FieldMode.Read,
+ valueProviderCallback: _ =>
+ {
+ return (uint)rng.Next();
+ },
+ name: "DATA"
+ );
+ }
+
+ From trng_server.cs
+ Auto-complete and contextual popups
+
+ emulation CreateSwitch "switch"
+ emulation CreateTap "renodetap" "tap"
+ connector Connect host.tap switch
+ connector Connect sysbus.wifi.wf200 switch
+
+ SoC → COM-SOC → COM → COM-EC → EC → + EC-WIFI → WF200 → Tap → Internet
+