<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>adithyav.dev</title>
    <description>Hardware &amp; FPGA engineer. Currently at KaleidEO Space Systems. Previously ISRO, Polytechnique Montréal.</description>
    <link>https://adithyav.dev/</link>
    <atom:link href="https://adithyav.dev/feed.xml" rel="self" type="application/rss+xml"/>
    <lastBuildDate>Sat, 26 Sep 2026 00:00:00 GMT</lastBuildDate>
    <item>
      <title>Why our superloop got slower above 55°C</title>
      <link>https://adithyav.dev/writing/superloop-slower-above-55c/</link>
      <guid isPermaLink="true">https://adithyav.dev/writing/superloop-slower-above-55c/</guid>
      <pubDate>Sat, 26 Sep 2026 00:00:00 GMT</pubDate>
      <category>sta</category>
      <category>flight-hw</category>
      <category>fpga</category>
      <description>&lt;p&gt;This one is from my ISRO days. We had a board in the thermal chamber, and somewhere around 55°C the superloop occupancy in telemetry jumped by about 11%. Nothing failed. No corruption, no errors, every access completed. It took us a while to figure out why, and the answer turned out to be a nice little lesson on what worst-case design does (and doesn’t) guarantee.&lt;/p&gt;
&lt;h2&gt;What we saw&lt;/h2&gt;
&lt;p&gt;The flight software ran a 32 ms superloop, and one of the telemetry parameters was how much of that 32 ms was actually used. At cold and at room temperature it sat at one value. On the hot cycles, somewhere around 55°C (I don’t remember the exact number), it stepped up by roughly 11% and stayed there until things cooled down.&lt;/p&gt;
&lt;p&gt;If you’ve worked on flight software you know why this bugs you. A number that should not depend on temperature was depending on temperature, and we didn’t know why.&lt;/p&gt;
&lt;h2&gt;The setup&lt;/h2&gt;
&lt;p&gt;The FPGA sat between the CPU and its memories and acted as the memory/bus controller. It also generated the CPU’s clock (around 30 MHz, so ~33 ns per cycle).&lt;/p&gt;
&lt;p&gt;A memory access went roughly like this:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The CPU asserts a control strobe.&lt;/li&gt;
&lt;li&gt;The FPGA latches the strobe on its internal clock, which kicks off a wait-state timer.&lt;/li&gt;
&lt;li&gt;When the timer runs out, the FPGA drives RDY/BSY back to the CPU and the access completes.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;So the number of wait states the CPU actually sees depends on which FPGA clock edge catches the strobe first. Keep that in mind.&lt;/p&gt;
&lt;figure class=&quot;diagram&quot;&gt;
&lt;svg viewBox=&quot;0 0 760 312&quot; role=&quot;img&quot; aria-label=&quot;The FPGA clocks the CPU, then samples the CPU strobe&quot; font-size=&quot;13&quot; font-family=&quot;Roboto, system-ui, sans-serif&quot; style=&quot;width:100%;height:auto&quot;&gt;
&lt;defs&gt;
&lt;marker id=&quot;loop-arrow&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;9&quot; refY=&quot;5&quot; markerWidth=&quot;6&quot; markerHeight=&quot;6&quot; orient=&quot;auto-start-reverse&quot;&gt;&lt;path d=&quot;M0 0L10 5L0 10z&quot; fill=&quot;var(--sk-ink-faint, #7c84a3)&quot;/&gt;&lt;/marker&gt;
&lt;marker id=&quot;loop-arrow-accent&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;9&quot; refY=&quot;5&quot; markerWidth=&quot;6&quot; markerHeight=&quot;6&quot; orient=&quot;auto-start-reverse&quot;&gt;&lt;path d=&quot;M0 0L10 5L0 10z&quot; fill=&quot;var(--sk-carrot-strong, #b83e19)&quot;/&gt;&lt;/marker&gt;
&lt;/defs&gt;
&lt;text x=&quot;24&quot; y=&quot;32&quot; font-size=&quot;15&quot; font-weight=&quot;600&quot; fill=&quot;var(--sk-ink, #1d2133)&quot;&gt;The round trip: the FPGA clocks the CPU, then samples its strobe&lt;/text&gt;
&lt;rect x=&quot;24&quot; y=&quot;52&quot; width=&quot;260&quot; height=&quot;220&quot; rx=&quot;8&quot; fill=&quot;none&quot; stroke=&quot;var(--sk-ink-faint, #7c84a3)&quot; stroke-width=&quot;1.25&quot;/&gt;
&lt;text x=&quot;44&quot; y=&quot;76&quot; font-size=&quot;15&quot; font-weight=&quot;600&quot; fill=&quot;var(--sk-ink, #1d2133)&quot;&gt;FPGA&lt;/text&gt;
&lt;rect x=&quot;44&quot; y=&quot;88&quot; width=&quot;220&quot; height=&quot;36&quot; rx=&quot;8&quot; fill=&quot;none&quot; stroke=&quot;var(--sk-ink-faint, #7c84a3)&quot; stroke-width=&quot;1.25&quot;/&gt;&lt;text x=&quot;154&quot; y=&quot;110&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--sk-ink, #1d2133)&quot;&gt;Internal clock (~30 MHz)&lt;/text&gt;
&lt;rect x=&quot;44&quot; y=&quot;148&quot; width=&quot;220&quot; height=&quot;36&quot; rx=&quot;8&quot; fill=&quot;var(--sk-carrot-strong, #b83e19)&quot; fill-opacity=&quot;0.12&quot; stroke=&quot;var(--sk-carrot-strong, #b83e19)&quot; stroke-width=&quot;2&quot;/&gt;&lt;text x=&quot;154&quot; y=&quot;170&quot; text-anchor=&quot;middle&quot; font-weight=&quot;600&quot; fill=&quot;var(--sk-ink, #1d2133)&quot;&gt;Strobe capture flop&lt;/text&gt;
&lt;rect x=&quot;44&quot; y=&quot;208&quot; width=&quot;220&quot; height=&quot;36&quot; rx=&quot;8&quot; fill=&quot;none&quot; stroke=&quot;var(--sk-ink-faint, #7c84a3)&quot; stroke-width=&quot;1.25&quot;/&gt;&lt;text x=&quot;154&quot; y=&quot;230&quot; text-anchor=&quot;middle&quot; fill=&quot;var(--sk-ink, #1d2133)&quot;&gt;Wait-state timer&lt;/text&gt;
&lt;rect x=&quot;476&quot; y=&quot;52&quot; width=&quot;260&quot; height=&quot;220&quot; rx=&quot;8&quot; fill=&quot;none&quot; stroke=&quot;var(--sk-ink-faint, #7c84a3)&quot; stroke-width=&quot;1.25&quot;/&gt;
&lt;text x=&quot;606&quot; y=&quot;156&quot; text-anchor=&quot;middle&quot; font-size=&quot;15&quot; font-weight=&quot;600&quot; fill=&quot;var(--sk-ink, #1d2133)&quot;&gt;CPU&lt;/text&gt;
&lt;text x=&quot;606&quot; y=&quot;178&quot; text-anchor=&quot;middle&quot; font-size=&quot;11.5&quot; fill=&quot;var(--sk-ink-soft, #5c6380)&quot;&gt;bus master, clocked by the FPGA&lt;/text&gt;
&lt;g fill=&quot;none&quot; stroke=&quot;var(--sk-ink-faint, #7c84a3)&quot; stroke-width=&quot;1.25&quot;&gt;&lt;path d=&quot;M154 124V148&quot; marker-end=&quot;url(#loop-arrow)&quot;/&gt;&lt;path d=&quot;M154 184V208&quot; marker-end=&quot;url(#loop-arrow)&quot;/&gt;&lt;/g&gt;
&lt;text x=&quot;164&quot; y=&quot;140&quot; font-size=&quot;11.5&quot; fill=&quot;var(--sk-ink-soft, #5c6380)&quot;&gt;samples&lt;/text&gt;
&lt;text x=&quot;164&quot; y=&quot;200&quot; font-size=&quot;11.5&quot; fill=&quot;var(--sk-ink-soft, #5c6380)&quot;&gt;starts&lt;/text&gt;
&lt;g fill=&quot;none&quot; stroke=&quot;var(--sk-carrot-strong, #b83e19)&quot; stroke-width=&quot;2&quot;&gt;&lt;path d=&quot;M264 106H476&quot; marker-end=&quot;url(#loop-arrow-accent)&quot;/&gt;&lt;path d=&quot;M476 166H264&quot; marker-end=&quot;url(#loop-arrow-accent)&quot;/&gt;&lt;/g&gt;
&lt;g fill=&quot;none&quot; stroke=&quot;var(--sk-ink-faint, #7c84a3)&quot; stroke-width=&quot;1.25&quot;&gt;&lt;path d=&quot;M264 226H476&quot; marker-end=&quot;url(#loop-arrow)&quot;/&gt;&lt;/g&gt;
&lt;text x=&quot;380&quot; y=&quot;98&quot; text-anchor=&quot;middle&quot; font-size=&quot;11.5&quot; fill=&quot;var(--sk-ink-soft, #5c6380)&quot;&gt;forwarded clock&lt;/text&gt;
&lt;text x=&quot;380&quot; y=&quot;158&quot; text-anchor=&quot;middle&quot; font-size=&quot;11.5&quot; fill=&quot;var(--sk-ink-soft, #5c6380)&quot;&gt;control strobe&lt;/text&gt;
&lt;text x=&quot;380&quot; y=&quot;218&quot; text-anchor=&quot;middle&quot; font-size=&quot;11.5&quot; fill=&quot;var(--sk-ink-soft, #5c6380)&quot;&gt;RDY/BSY&lt;/text&gt;
&lt;text x=&quot;380&quot; y=&quot;298&quot; text-anchor=&quot;middle&quot; font-size=&quot;11.5&quot; fill=&quot;var(--sk-ink-soft, #5c6380)&quot;&gt;Loop delay = FPGA clock out + trace + CPU clock-to-out + trace + FPGA input&lt;/text&gt;
&lt;/svg&gt;
&lt;figcaption&gt;The clock-strobe round trip between the FPGA and the CPU.&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;The strobe isn’t an ordinary input. The CPU launches it off the clock the FPGA sent out, so by the time it gets back to the capture flop it has gone through the FPGA’s output pad, the board, the CPU’s clock-to-out, the board again and the FPGA’s input pad.&lt;/p&gt;
&lt;h2&gt;What was actually happening&lt;/h2&gt;
&lt;p&gt;All of those delays grow with temperature, and the FPGA’s I/O pad delays are the biggest movers. Between cold and hot, the strobe’s arrival shifted by a few nanoseconds.&lt;/p&gt;
&lt;p&gt;A few ns against a 33 ns cycle shouldn’t matter. Unless the strobe is arriving right next to a capture edge, which in our case it was. At cold and room it came in just before edge N and got caught there. When hot, it slipped just past N and only got caught at N+1.&lt;/p&gt;
&lt;figure class=&quot;diagram&quot;&gt;
&lt;svg viewBox=&quot;0 0 760 344&quot; role=&quot;img&quot; aria-label=&quot;A few ns of drift moves the strobe across a capture edge&quot; font-size=&quot;13&quot; font-family=&quot;Roboto, system-ui, sans-serif&quot; style=&quot;width:100%;height:auto&quot;&gt;
&lt;text x=&quot;24&quot; y=&quot;28&quot; font-size=&quot;15&quot; font-weight=&quot;600&quot; fill=&quot;var(--sk-ink, #1d2133)&quot;&gt;A few ns of drift moves the strobe across a capture edge&lt;/text&gt;
&lt;g fill=&quot;none&quot; stroke=&quot;var(--sk-rule, #d3d9ec)&quot; stroke-width=&quot;1.25&quot; stroke-dasharray=&quot;4 4&quot;&gt;&lt;path d=&quot;M240 58V252&quot;/&gt;&lt;path d=&quot;M440 58V252&quot;/&gt;&lt;/g&gt;
&lt;text x=&quot;240&quot; y=&quot;52&quot; text-anchor=&quot;middle&quot; font-size=&quot;11.5&quot; fill=&quot;var(--sk-ink-soft, #5c6380)&quot;&gt;edge N&lt;/text&gt;
&lt;text x=&quot;440&quot; y=&quot;52&quot; text-anchor=&quot;middle&quot; font-size=&quot;11.5&quot; fill=&quot;var(--sk-ink-soft, #5c6380)&quot;&gt;edge N+1&lt;/text&gt;
&lt;text x=&quot;24&quot; y=&quot;90&quot; fill=&quot;var(--sk-ink, #1d2133)&quot;&gt;FPGA clock&lt;/text&gt;
&lt;text x=&quot;24&quot; y=&quot;160&quot; fill=&quot;var(--sk-ink, #1d2133)&quot;&gt;Strobe, cold/room&lt;/text&gt;
&lt;text x=&quot;24&quot; y=&quot;230&quot; fill=&quot;var(--sk-ink, #1d2133)&quot;&gt;Strobe, hot&lt;/text&gt;
&lt;path d=&quot;M160 100H240V70H340V100H440V70H540V100H640V70H736&quot; fill=&quot;none&quot; stroke=&quot;var(--sk-ink-faint, #7c84a3)&quot; stroke-width=&quot;1.5&quot;/&gt;
&lt;path d=&quot;M160 170H225V140H736&quot; fill=&quot;none&quot; stroke=&quot;var(--sk-ink-faint, #7c84a3)&quot; stroke-width=&quot;1.5&quot;/&gt;
&lt;path d=&quot;M160 240H255V210H736&quot; fill=&quot;none&quot; stroke=&quot;var(--sk-carrot-strong, #b83e19)&quot; stroke-width=&quot;2&quot;/&gt;
&lt;text x=&quot;460&quot; y=&quot;132&quot; font-size=&quot;11.5&quot; fill=&quot;var(--sk-ink, #1d2133)&quot;&gt;seen at edge N: nominal wait states&lt;/text&gt;
&lt;text x=&quot;460&quot; y=&quot;202&quot; font-size=&quot;11.5&quot; fill=&quot;var(--sk-ink, #1d2133)&quot;&gt;missed at N, seen at N+1: one extra wait state&lt;/text&gt;
&lt;path d=&quot;M225 262V272M225 267H255M255 262V272&quot; fill=&quot;none&quot; stroke=&quot;var(--sk-ink-faint, #7c84a3)&quot; stroke-width=&quot;1.25&quot;/&gt;
&lt;text x=&quot;240&quot; y=&quot;290&quot; text-anchor=&quot;middle&quot; font-size=&quot;11.5&quot; fill=&quot;var(--sk-ink-soft, #5c6380)&quot;&gt;a few ns of thermal drift&lt;/text&gt;
&lt;path d=&quot;M240 306V316M240 311H440M440 306V316&quot; fill=&quot;none&quot; stroke=&quot;var(--sk-ink-faint, #7c84a3)&quot; stroke-width=&quot;1.25&quot;/&gt;
&lt;text x=&quot;340&quot; y=&quot;334&quot; text-anchor=&quot;middle&quot; font-size=&quot;11.5&quot; fill=&quot;var(--sk-ink-soft, #5c6380)&quot;&gt;one cycle, about 33 ns&lt;/text&gt;
&lt;/svg&gt;
&lt;figcaption&gt;Strobe arrival against the FPGA capture edge, cold and hot (not to scale).&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;One edge late means the timer starts one cycle late, RDY comes one cycle late and the access is one cycle longer. Do that on every bus access in a 32 ms loop and you get the ~11% jump. The drift itself is smooth, but the capture flop can only see it in steps of one full clock.&lt;/p&gt;
&lt;h2&gt;Wait, so fewer wait states also work?&lt;/h2&gt;
&lt;p&gt;This is the obvious question (and the first one I got whenever I explained this to someone). If the design needed X wait states, how were the memories fine with X−1 at cold and room?&lt;/p&gt;
&lt;p&gt;The answer is that X was never set by the memories alone. It was set by the round trip in the hot corner, where the FPGA’s I/O pad delays are at their worst. The wait-state count had to cover the full loop there: clock out, strobe back in, and then the memory access itself with its own pad delays on top.&lt;/p&gt;
&lt;p&gt;At cold and room, those same pad delays are a lot smaller. The RTAX-S datasheet gives every timing number at worst-case military conditions (TJ = 125 °C, VCCA = 1.425 V) and then hands you a derating table to scale it to other temperatures and voltages (Table 2-11).&lt;/p&gt;
&lt;p&gt;To get a feel, count the FPGA pads each path goes through. The strobe-to-RDY loop crosses two output pads (clock out, RDY out) and one input pad (strobe in). A memory read, the worst case, crosses three outputs (clock, address, RDY) and two inputs (strobe, data). Using an LVTTL 8 mA low-slew output buffer (18.60 ns max, Std speed) and an input buffer (2.17 ns max) from Table 2-25, derated at VCCA = 1.5 V:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Junction temp (°C)&lt;/th&gt;
&lt;th&gt;Derating factor&lt;/th&gt;
&lt;th&gt;Strobe loop, 2 out + 1 in (ns)&lt;/th&gt;
&lt;th&gt;Memory read, 3 out + 2 in (ns)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;−55&lt;/td&gt;
&lt;td&gt;0.73&lt;/td&gt;
&lt;td&gt;28.74&lt;/td&gt;
&lt;td&gt;43.90&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;0.81&lt;/td&gt;
&lt;td&gt;31.89&lt;/td&gt;
&lt;td&gt;48.71&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;70&lt;/td&gt;
&lt;td&gt;0.87&lt;/td&gt;
&lt;td&gt;34.25&lt;/td&gt;
&lt;td&gt;52.32&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;85&lt;/td&gt;
&lt;td&gt;0.90&lt;/td&gt;
&lt;td&gt;35.43&lt;/td&gt;
&lt;td&gt;54.13&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;125&lt;/td&gt;
&lt;td&gt;0.97&lt;/td&gt;
&lt;td&gt;38.19&lt;/td&gt;
&lt;td&gt;58.34&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;From 25 °C to 85 °C junction, the strobe loop moves by about 3.5 ns and a memory read by about 5.4 ns, from the FPGA pads alone. From −55 °C it’s closer to 6.7 ns and 10.2 ns. The CPU’s output delays drift the same way on top of that. (The exact numbers depend on the I/O standard, drive strength and speed grade, so treat this as a feel for the size of the effect).&lt;/p&gt;
&lt;p&gt;Look at the memory read column at 125 °C too. That’s about 10-15 ns from the FPGA pads alone, before you add the board traces or the memory’s own access time. That’s why the hot corner, and not the memory itself, set the wait-state count.&lt;/p&gt;
&lt;p&gt;So everything gets faster at once. The strobe comes back earlier, and the memory access has much more slack than it needs. Losing one wait state only eats into margin that exists because the chip is cool. When it heats up, the strobe slips to N+1 and the extra wait state comes back right when that margin goes away, which is also why nothing ever broke.&lt;/p&gt;
&lt;p&gt;Source: &lt;a href=&quot;https://ww1.microchip.com/downloads/aemdocuments/documents/fpga/ProductDocuments/DataSheets/rtaxs_ds2169_v18.pdf&quot;&gt;RTAX-S/SL and RTAX-DSP datasheet, DS2169 v18&lt;/a&gt;, Tables 2-11 and 2-25.&lt;/p&gt;
&lt;h2&gt;Why simulation didn’t show it&lt;/h2&gt;
&lt;p&gt;We designed to the CPU’s worst-case strobe delay from the datasheet, which is what you’re supposed to do. The board-level simulations (with fairly precise timing checks on the CPU and memory interfaces) were all run at that corner. At that corner the strobe always lands after edge N, and simulation happily reported the longer loop time. That number was correct. It just wasn’t the whole picture.&lt;/p&gt;
&lt;p&gt;The real CPU was faster than its datasheet max (real parts usually are), and at cold and room the FPGA pads were fast too. We knew the round trip drifted with temperature, and we had characterized it. What we never asked was where the actual hardware sat relative to the capture edge.&lt;/p&gt;
&lt;p&gt;Reproducing it in the lab took a while. It only showed up above some temperature, and we had no idea which interface was misbehaving. Once we suspected the strobe path, we added the short-delay CPU case to simulation next to the worst-case one, and it reproduced the shorter loop time.&lt;/p&gt;
&lt;h2&gt;What we did&lt;/h2&gt;
&lt;p&gt;Nothing was broken, so there was nothing to fix in the RTL. We documented both operating points and the temperature dependence, and gave the software team the higher (hot) number as their budget. That way their margins hold at any temperature, whichever side of the edge the hardware happens to be on.&lt;/p&gt;
&lt;h2&gt;What I took away from it&lt;/h2&gt;
&lt;p&gt;A few things I’ve carried with me since:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Worst-case analysis tells you the design works. It doesn’t tell you it behaves the same way everywhere. If the min and max delays land on different sides of a capture edge, you have two behaviours, and sooner or later you’ll see both.&lt;/li&gt;
&lt;li&gt;Simulate the fast corner too, not just the slow one, especially on paths where you care about cycle counts and not just setup/hold.&lt;/li&gt;
&lt;li&gt;Be extra careful with round trips through a forwarded clock. The capture timing depends on both chips and the board twice, and it’s easy to constrain the strobe as if it were an ordinary input.&lt;/li&gt;
&lt;li&gt;Put loop time in telemetry. That one number is the only reason we caught this at all.&lt;/li&gt;
&lt;/ul&gt;
</description>
    </item>
    <item>
      <title>Notes on the Hog presentation by the CERN team</title>
      <link>https://adithyav.dev/writing/pres-on-hog/</link>
      <guid isPermaLink="true">https://adithyav.dev/writing/pres-on-hog/</guid>
      <pubDate>Tue, 11 Mar 2025 00:00:00 GMT</pubDate>
      <category>fpga</category>
      <category>open-source</category>
      <description>&lt;h2&gt;Introduction/Problem statement&lt;/h2&gt;
&lt;p&gt;One of the things I have been struggling with at work is getting version control
to work well with my FPGA projects. My custom solution has been to include all
user files (.vhd, .v, .sv etc.) to exist in the git project and to .gitignore
everything else. While this has allowed me to version control the source code,
my configurations for each FPGA has to be changed every time I clone the project.
This leads to several issues:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Repetitive work/Loss of productivity&lt;/strong&gt;: I end up spending a lot of time
linking my project files with the project, choosing the device configuration,
setting the top module and then setting up the synthesis and place and route
tools with the correct configuration.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Incorrect configuration&lt;/strong&gt;: While collaborating with larger teams, the
configuration often gets messed up when each of us clones the repository and
builds the project separately. There is no way to communicate the chosen options
with the team members and a lot of time effort ends up being spent debugging
what was essentially a config issue.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Lack of reproducibility&lt;/strong&gt;: The biggest cause of concern is the lack of
reproducibility of the final binary. Since there are no configurations to go
off of, we end up having a lot of versions each with a slightly different
config change that our build becomes ir-reproducible.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Path issues&lt;/strong&gt;: The only alternative would be sending the entire project to
your team member but that comes with the caveat that the paths for all content
would be incorrect and requires correction (especially when you work on Linux).&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;How does hog fit in?&lt;/h2&gt;
&lt;p&gt;Hog (&lt;a href=&quot;https://hog.readthedocs.io/en/latest/&quot;&gt;Docs&lt;/a&gt;) or &lt;em&gt;HDL on Git&lt;/em&gt; is a project
by CERN where build scripts (tcl), config files describing the structure of the
project and the actual source code are all versioned using git. This allows us
to keep builds reproducible and tagged with the git hash/version.&lt;/p&gt;
&lt;p&gt;Another advantage is that it plays well with CI/CD pipelines, requiring the
runner to have just the build tool, git and bash, nothing else. Developing using
CI/CD pipelines would also solve the issue with incorrect artifacts from
different runs, lack of traceability across runs and differently configured
environments on each user machine.&lt;/p&gt;
&lt;p&gt;They also support configuring files into libraries (using configs) making
multi-library projects easy to build. To change from one vendor to another, we
need to change the config file (can recursively call configs, allowing common
files to be called together).&lt;/p&gt;
&lt;p&gt;There is also versioning of FPGAs i.e., the build script can be suffixed with
.1, .2 etc to indicate they are for the same build type but with different
targets (something like that)?&lt;/p&gt;
&lt;p&gt;We can port non-hog projects to hog through a single command (plus some
finagling). This would simplify the hassle of shifting build systems.&lt;/p&gt;
&lt;h2&gt;My questions and their responses&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Q.&lt;/strong&gt; Does hog also check if config changes have been made in the GUI (say
the fanout limits, or vhdl standard for the project etc.) How do we ensure that
the reproducibility is maintained then? &lt;strong&gt;A.&lt;/strong&gt; Yes, this is checked every time
you launch the synthesis (expect for Quartus and ISE, where they still need to
implement this feature).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Q.&lt;/strong&gt; Is there a recommended way of deploying the IDE for CI? (I know I am
asking a lot here, but have you created Dockerfile for common tools)? &lt;strong&gt;A.&lt;/strong&gt;
CERN has &lt;em&gt;ci4fpga&lt;/em&gt; project for internal use. Can send the hog team an email to
get in contact with the CERN guy preparing the Dockerfile.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Q:&lt;/strong&gt; How can the register with version be read when physical hardware is
fused? Are there any primitives preventing it from being pruned during
synth/pnr? &lt;strong&gt;A:&lt;/strong&gt; The top file should take the generics as input and the data
from those generics should be added to the internal register bus.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Q:&lt;/strong&gt; Has anyone here used Libero IDE v9.2? I saw there is support for 10 and
above. &lt;strong&gt;A:&lt;/strong&gt; As long as there is no big change between versions in terms of
commands issues, it should be fine. Need to test on our side.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
</description>
    </item>
    <item>
      <title>Day 1: ICML 2021</title>
      <link>https://adithyav.dev/writing/icml-day-1/</link>
      <guid isPermaLink="true">https://adithyav.dev/writing/icml-day-1/</guid>
      <pubDate>Mon, 19 Jul 2021 00:00:00 GMT</pubDate>
      <category>ml</category>
      <category>open-source</category>
      <description>&lt;p&gt;This was the first time I had attended a full blown major conference. For
those of you who are unaware ICML stands for International Conference On
Machine Learning and is the third largest AI-ML conference in the world.
The conference has three types of technical events:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Talk Panel/Poster presentation - This is either in the form of 30 min
talks or through virtual interaction in a virtual room on “gather”.&lt;/li&gt;
&lt;li&gt;Workshops - These are sessions where a team presents their work, its
applications and walk you through its uses in real life with examples.&lt;/li&gt;
&lt;li&gt;Tutorials - These are demo sessions where the presenter shows a demo
of their working product and usually share a copy of the code for the audience
to test/tinker with.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Some of the spots in these events are reserved for the sponsors (usually tech
megacorps/startups flush with cash who are doing work in cutting edge AI).
These events have an Expo tag next to it and today was Expo Day.&lt;/p&gt;
&lt;p&gt;I attended one Expo Workshop by Microsoft (4.5 hrs) and one Expo Talk Panel
by IBM (0.5 hr) today, on very different and very interesting topics.
These notes are in the order of interest in the topic and are mostly just
“notes”. Wherever possible, I will add my commentary on the topic!&lt;/p&gt;
&lt;h2&gt;Expo Talk Panel - IBM Analog Hardware Acceleration Kit&lt;/h2&gt;
&lt;p&gt;This is a really cool piece of tech being developed by IBM for fast and low
power training of small and medium sized neural networks in a completely
analog way. First of all the links shared with us:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Landing page: &lt;a href=&quot;https://analog-ai.mybluemix.net&quot;&gt;https://analog-ai.mybluemix.net&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Github page: &lt;a href=&quot;https://github.com/IBM/aihwkit&quot;&gt;https://github.com/IBM/aihwkit&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Documentation page: &lt;a href=&quot;https://aihwkit.readthedocs.io/en/latest/&quot;&gt;https://aihwkit.readthedocs.io/en/latest/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;AI hardware center webpage to learn more about other projects in the space
of AI acceleration: &lt;a href=&quot;https://www.research.ibm.com/artificial-intelligence/ai-hardware-center/&quot;&gt;https://www.research.ibm.com/artificial-intelligence/ai-hardware-center/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Before discussing what is analog computing, we need to understand why it
helps.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;1000x improvement in speed (without reducing precision)! This is by far the
biggest factor. This speed improvement comes mainly from the efficiency of
matrix multiplication in the analog domain with help from laws of physics. This
eliminates the Von-Neumann architecture (in CPU’s) bottlenecks and allows
computation directly in memory.&lt;/li&gt;
&lt;li&gt;Much lower power consumption. No requirement of accessing DRAM, need not
keep moving data (from storage to RAM to the caches and back and forth between
RAM and cache).&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;With that out of the way, lets discuss how it works: (Note: I didn’t clearly
understand the device physics but here it goes)&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://adithyav.dev/img/posts/2021-07-19-icml-day-1/analog_dot_product.png&quot; alt=&quot;Source IBM Research AI&quot; title=&quot;Analog dot product using crossbar array&quot;&gt;&lt;/p&gt;
&lt;p&gt;As is visible in the diagram, if one set of voltages are used to tune the
conductance (G) (weights) and another set of voltage are used as inputs,
we can just take the output current of the structure to get the dot product
of the input with weight! Pretty cool right!&lt;/p&gt;
&lt;p&gt;If this is done on a grid of such conductors, we get and array and matrix
multiplication or matrix-matrix multiplication. This makes the calculation
of matrix products almost instantaneous across the whole matrix saving
lot of time. Also, since the conductance is supplied with a separate source,
the weights are essentially embedded in them!&lt;/p&gt;
&lt;p&gt;Such a structure is called a crossbar array and each conductance (G)
is a resistive processing unit.&lt;/p&gt;
&lt;p&gt;An obvious question is, how do we represent negative weights? Since negative
resistance is not a reality (yet), the authors propose using a pair of
crossbar arrays for each neuron and taking the difference in their output
for the value of the neuron. This gives us a differential conductance pair
(G+ and G-). This network is called an NVM array (don’t know the expanded
name)&lt;/p&gt;
&lt;p&gt;The conductance can be provided using a variety of “devices” such as:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;PCM (Phase change memory) which transitions between crystalline and
amorphous states&lt;/li&gt;
&lt;li&gt;RPAM&lt;/li&gt;
&lt;li&gt;ECRAM&lt;/li&gt;
&lt;li&gt;CMOS&lt;/li&gt;
&lt;li&gt;Photonics where ring resonators (to boost?) are used followed by photo
detectors.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Based on these, they developed an open source AI Hardware Kit which simulates
how the network will learn in hardware for different “devices” and shows
plots of predicted hardware behaviour. This kit is completely compatible with
PyTorch (yay!) and is optimized for GPUs as well (CUDnn)&lt;/p&gt;
&lt;p&gt;From the QnA:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Effects of temperature changes on the stability of training/inference
(since voltages and currents are prone to thermal noise): “... So far our
preliminary work indicates that we can compensate for temperature dependence
of device conductance - and have demonstrate minimal accuracy loss across
small to medium MLP, and CNN networks”&lt;/li&gt;
&lt;li&gt;Advantage of Analog over Digital: “(i) the synaptic weight are already
mapped onto the NVM array (saves DRAM access energy), (ii) NxM matrix vector
multiply can be done in a single time step using an NxM NVM array (performance
improvement over digital) - and the improvement scales with the size of the
NN layer”&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Expo Workshop - Real World RL: Azure Personalizer &amp;amp; Vowpal Wabbit&lt;/h2&gt;
&lt;h3&gt;Vowpal Wabbit&lt;/h3&gt;
&lt;p&gt;Notes:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;On-line (as in when data comes it updates the model) machine learning system&lt;/li&gt;
&lt;li&gt;Very extensible (similar to PyTorch and Tensorflow but for RL models)&lt;/li&gt;
&lt;li&gt;Built-in access to different datasets/RL environments&lt;/li&gt;
&lt;li&gt;Ability to convert pandas df to vw format&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Azure Personalizer&lt;/h3&gt;
&lt;p&gt;Notes:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Send request containing the places for product 
placement on webpage along with the importance metric for each of
those and get a response with a personalized recommendation on what
goes where.&lt;/li&gt;
&lt;li&gt;On-line learning enabling it to adapt to the user preferences and
general trends. Uses CCB (conditional contextual bandit) for the model. &lt;/li&gt;
&lt;li&gt;Loss function defined by the developer to accurately measure what a
positive interaction is and provide cost/reward to the RL system.&lt;/li&gt;
&lt;li&gt;Custom RL models can be defined and loss of all models can be compared.&lt;/li&gt;
&lt;li&gt;Easy to switch between models if a better one found.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Multi-Slot Learning - Slates vs Bandits&lt;/h3&gt;
&lt;p&gt;Notes:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Used in the same context as Personalizer. We have certain contextual
inputs (what are the positions for banners, what is the color of the 
banner etc.) which are conditioned on some other inputs (importance of 
position) and evaluated based on a &lt;strong&gt;global&lt;/strong&gt; cost.&lt;/li&gt;
&lt;li&gt;Assumes that the slots are disjoint and linearly independent.&lt;/li&gt;
&lt;li&gt;Only single cost is available (how long the user looked at your &lt;/li&gt;
&lt;li&gt;website/did they buy suggested product/did they click on the link).&lt;/li&gt;
&lt;li&gt;Not integrated with Azure Personalizer currently but will be done
after performance validation.&lt;/li&gt;
&lt;li&gt;Available as a part of Vowpal Wabbit&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Continuous Actions in VW&lt;/h3&gt;
&lt;p&gt;Notes:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Binary tree structure defined based on $2^n$ terminal nodes given as input.&lt;/li&gt;
&lt;li&gt;Each terminal node corresponds to a bin from the output range.&lt;/li&gt;
&lt;li&gt;$\epsilon$ greedy system used during prediction. Initially binary 
decision tree decides the bin to choose. Apply a smoothing parameter 
(bandwidth?) about the center of the slot where probability is higher.&lt;/li&gt;
&lt;li&gt;Sample randomly based on that distribution and use the reward to 
teach the binary network if the bin chosen was correct. If we smooth 
over several bins, feedback to the binary tree that any of those bins 
are fine!&lt;/li&gt;
&lt;li&gt;Smaller the bin size (larger the number of terminal node), more bias
and lower variance in prediction&lt;/li&gt;
&lt;li&gt;Larger the bandwidth, higher the variance and lower the bias in prediction.&lt;/li&gt;
&lt;/ol&gt;
</description>
    </item>
    <item>
      <title>The Final GSoC Blog</title>
      <link>https://adithyav.dev/writing/final-gsoc-blog/</link>
      <guid isPermaLink="true">https://adithyav.dev/writing/final-gsoc-blog/</guid>
      <pubDate>Mon, 24 Aug 2020 00:00:00 GMT</pubDate>
      <category>gsoc</category>
      <category>open-source</category>
      <category>ml</category>
      <description>&lt;p&gt;&lt;strong&gt;Statutory warning&lt;/strong&gt;: This blog is for documentation purposes. It will
mostly be filled with facts and little story. If you want a more free-flowing
experience, please read my previous blog posts.&lt;/p&gt;
&lt;h2&gt;The projects&lt;/h2&gt;
&lt;h3&gt;Polaris&lt;/h3&gt;
&lt;p&gt;A CLI based satellite telemetry analysis tool which uses XGBoost inside and
3d-force-graph for the output!&lt;/p&gt;
&lt;p&gt;Lets break that down.&lt;/p&gt;
&lt;p&gt;Polaris is an awesome command line tool which aims at making the life of
satellite operators easier by manifold. The tool has 4 parts.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;polaris fetch: It fetches telemetry from the SatNOGs network, space weather
from SWPC (NOAA)&lt;/li&gt;
&lt;li&gt;polaris learn: A machine learning (XGBoost) based module that analyses the
relationship between all data “fetched” and gives a json graph file as output.&lt;/li&gt;
&lt;li&gt;polaris viz: A 3d graph based visualization module, which gives an
intuitive graph representation of data as output.&lt;/li&gt;
&lt;li&gt;polaris anomaly (WIP): An autoencoder (betsi) based tool that detects
anomalies in telemetry data and warns satellite operators.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;This was the main project I was working on. All the work I did are used as
modules here.&lt;/p&gt;
&lt;p&gt;I know that pictures speak greater than a thousand words. So here are some
for you to drool over :P&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://adithyav.dev/img/posts/2020-08-24-the-final-gsoc-blog/CubeBel1.png&quot; alt=&quot;CubeBel-1&quot; title=&quot;CubeBel-1&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://adithyav.dev/img/posts/2020-08-24-the-final-gsoc-blog/quetzal1.png&quot; alt=&quot;Quetzal-1&quot; title=&quot;Quetzal-1&quot;&gt;&lt;/p&gt;
&lt;h2&gt;The modules&lt;/h2&gt;
&lt;h3&gt;Vinvelivaanilai (space weather)&lt;/h3&gt;
&lt;p&gt;Vinvelivaanilai translates to space weather in Tamil. It is a python module
which uses FTP services to fetch space weather data from SWPC/NOAA’s
servers and stores it locally or in influxdb based docker-containers.&lt;/p&gt;
&lt;p&gt;It also contains functions to parse TLEs and OMMs (any GP data) and propagate
the orbit to find the position and velocity of the satellite at any time.
All red nodes in the Quetzal-1 graph (2nd graph above) belong to
vinvelivaanilai.&lt;/p&gt;
&lt;h3&gt;Betsi:&lt;/h3&gt;
&lt;p&gt;Betsi is shorthand for “Behaviour Extraction for Time-Series Investigation”. It
uses the power of deep learning :trademark: to detect anomalies in the telemetry
data. An anomaly can range from a simple orientation change to a mega scale
explosion which wiped out all of humanity. If it happened, betsi detected it*.&lt;/p&gt;
&lt;p&gt;* You can always change the sensitivity though :P&lt;/p&gt;
&lt;p&gt;One more graph? The black dotted lines are the breakpoints. We are working
on finding a better way to represent 200 params we use for anomaly
detection though. So any opinions/views are welcome at our
&lt;a href=&quot;https://app.element.io/#/room/#polaris:matrix.org&quot;&gt;matrix/element chatroom&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://adithyav.dev/img/posts/2020-08-24-the-final-gsoc-blog/anomaly_detect.png&quot; alt=&quot;They are not real spikes&quot; title=&quot;Anomalies detected by betsi&quot;&gt;&lt;/p&gt;
&lt;h3&gt;Wrapping it all up&lt;/h3&gt;
&lt;p&gt;A high level representation of everything in Polaris:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://adithyav.dev/img/posts/2020-08-24-the-final-gsoc-blog/polaris_arch.png&quot; alt=&quot;It’s all coming together&quot; title=&quot;A complete polaris workflow&quot;&gt;&lt;/p&gt;
&lt;h2&gt;The work&lt;/h2&gt;
&lt;p&gt;To see what my original plan was, you can checkout my GSoC proposal
&lt;a href=&quot;https://docs.google.com/document/d/1GVbmv9YMhXaJt9hbE953zJ0iL7Dt21HpBrtxRQMbKvk/&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What I ended up learning was much much more.&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I learnt to read, comprehend and implement a full blown research paper as a
part of a whole new project betsi. This will be used inside Polaris to detect
anomalies in satellite telemetry!&lt;/li&gt;
&lt;li&gt;I interfaced with an ftp server and created a stable API to fetch space
weather data.&lt;/li&gt;
&lt;li&gt;I went through a whole bunch of DBMS systems, tried them all out and chose
what would be used for storing the space weather data. This was a very unique
learning experience because I had to choose something future proof, but feature
rich, tailored to suit our needs (time series data) (and as my mentors half
joked, my whole career was at stake with that choice).&lt;/li&gt;
&lt;li&gt;I fully familiarised with and modified an existing API (Polaris’), finding
scalable ways to add new space weather data. The infrastructure can combine
telemetry and space weather frames allowing Polaris to give more accurate
and relavent links.&lt;/li&gt;
&lt;li&gt;I learnt to use liquid, CSS and javascript to create a whole blog (the one
you are reading on) and contributed to improving the user experience while
viewing the graph (WebGL and D3js)!&lt;/li&gt;
&lt;li&gt;I am adding (MR is already submitted) a way to skip the normalization step
(normalization to SI units) which will help add support to all satellite
telemetry which can be decoded. I am currently analyzing the difference in
results produced by normalized and non-normalized frames. The Bobcat-1 team
tried it on an open loop testbench and we were able to validate some results
(all the telemetry was completely independent of space weather).&lt;/li&gt;
&lt;li&gt;I guided new users on how to set up Polaris and helped them troubleshoot
their installations.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You can find a list of commits with their corresponsing merge requests in
&lt;a href=&quot;https://docs.google.com/spreadsheets/d/1OUVnI2uxR2T98s6PAyqsyOlI9XK6BYwMQLjQ_1ck76c&quot;&gt;this google sheet&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Work left to do&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Finish betsi integration in Polaris. A path has been charted in
&lt;a href=&quot;https://gitlab.com/librespacefoundation/polaris/polaris/-/issues/110&quot;&gt;an issue&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Find an innovative way to represent the betsi data (in a graph probably)&lt;/li&gt;
&lt;li&gt;Add TLE/OMM propagation once SatNOGs opens up their database.&lt;/li&gt;
&lt;li&gt;Add features to the viz module requested by satellite operators (viewing a
list of nodes, hiding unused nodes, etc.)&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;A message to my mentors&lt;/h2&gt;
&lt;p&gt;All of this was possible because of your support. You not only helped me in my
work but also helped me grow as an individual. I learnt so much
more than just programming. I learnt to respect and enjoy the open-source
culture, make my own decisions, put my point across and defend it. I learnt to
be self-sufficient but also approach you when I need it (you were always
there to guide me). If any of you are reading this, please know that you have
helped me realize the potential I carry in me and I will forever be indebted to
you for that!&lt;/p&gt;
&lt;h2&gt;Is this the end of my journey with Polaris&lt;/h2&gt;
&lt;p&gt;There is a hindi movie dialogue which goes like &lt;em&gt;picture abhi baaki hai mere dost&lt;/em&gt;
(the film’s not over yet, my friend). I plan to stay with LSF and the Polaris
team for a long, long time. Hopefully, I will make it to the list of core-contributors
sometime in the future ;-)&lt;/p&gt;
</description>
    </item>
    <item>
      <title>A Graph Like None Other</title>
      <link>https://adithyav.dev/writing/a-graph-like-none-other/</link>
      <guid isPermaLink="true">https://adithyav.dev/writing/a-graph-like-none-other/</guid>
      <pubDate>Thu, 20 Aug 2020 00:00:00 GMT</pubDate>
      <category>gsoc</category>
      <category>open-source</category>
      <category>space</category>
      <description>&lt;p&gt;There are very few things that give a person absolute joy, a sense of pride
and satisfaction. I felt that joy when all the work I did over the past few
months started to show results. The path was beautiful, but seeing the
garden it ended in was even more satisfying.&lt;/p&gt;
&lt;p&gt;This blog post is about the Vinvelivaanilai (vv) merge request in Polaris and
how seeing it working and producing tangible real-world results was as
rewarding as a child learning to walk!&lt;/p&gt;
&lt;h2&gt;Story time (I hope this become a regular segment)&lt;/h2&gt;
&lt;p&gt;It was the fated day of 20-08-2020 when vv got merged. It was finally time
to analyze the graph formed from the union of space-weather and telemetry
in Polaris with the power bestowed upon me by the maintainers. And what a
beauty she was &lt;em&gt;-&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://adithyav.dev/img/posts/2020-08-20-a-graph-like-none-other/polaris-vv.png&quot; alt=&quot;Color color what color do you choose&quot; title=&quot;C&amp;#39;est beau&quot;&gt;&lt;/p&gt;
&lt;p&gt;There were a lot of interesting observations we were able to make: (This is
an actual excerpt from the message I had sent that day):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Only 4 major parameters of the telemetry depend on the space_weather:&lt;ul&gt;
&lt;li&gt;Camera (because they avoided taking images when there was a lot of sunspots?)&lt;/li&gt;
&lt;li&gt;Bus Voltage (3V) (obvious)&lt;/li&gt;
&lt;li&gt;Boot time (why?)&lt;/li&gt;
&lt;li&gt;Few temperature readings (obvious again)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;The telemetry is independent of position (r) and velocity (v) (coz sun synchronous?)&lt;/li&gt;
&lt;li&gt;Space weather parameters seem to cluster on one side of the graph and
on-board sensors (for magnetometer and others) cluster on the other side&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This probably means that the satellite is well designed and (for the most part)
is resistant to space-weather.&lt;/p&gt;
&lt;p&gt;All of this is from a layman’s perspective. I am sure the satellite operators
will be able to read much more into the graph. It just goes to show the power of
such a measuring tool!&lt;/p&gt;
&lt;p&gt;Reading the graph is pretty easy. You can follow along at
&lt;a href=&quot;http://deepchaos.space&quot;&gt;http://deepchaos.space&lt;/a&gt;. (At the time of writing, space weather had not been
added to the graph but is expected to be pushed soon)&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://adithyav.dev/img/posts/2020-08-20-a-graph-like-none-other/nodes_links.png&quot; alt=&quot;It’s time to read it read it&quot; title=&quot;2 nodes and a link&quot;&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Each white/lavender dot is a node. It represents telemetry/space weather&lt;/li&gt;
&lt;li&gt;Each line between two nodes is a link and the speed of the moving dot inside
this link represents the strength of the connection (Faster =&amp;gt; High relation)&lt;/li&gt;
&lt;li&gt;You can zoom using the scroll, pan using right click and spin with left click&lt;/li&gt;
&lt;li&gt;The box on the top left corner helps search for stuff&lt;ol&gt;
&lt;li&gt;If you type the name of the telemetry data and press enter, you will be
 jetpacked to the node&lt;/li&gt;
&lt;li&gt;If you type a part of the name and click “Ctrl + Enter”, all matching
 nodes will be highlighted&lt;/li&gt;
&lt;li&gt;(Once the website is updated with the upstream commits) The colors you set
 will be retained and you can press “Ctrl + Shift + Enter” to reset it.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;You now know everything you need to start using the graph xD&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;So what we learnt was about a “new” type of graph not:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the stonks one:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&quot;https://adithyav.dev/img/posts/2020-08-20-a-graph-like-none-other/stonks.jpeg&quot; alt=&quot;Up up and away&quot; title=&quot;The good kind&quot;&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;or the not-stonks one:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&quot;https://adithyav.dev/img/posts/2020-08-20-a-graph-like-none-other/not-stonks.png&quot; alt=&quot;Down down underground?&quot; title=&quot;The bad kind&quot;&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;or any of these:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img src=&quot;https://adithyav.dev/img/posts/2020-08-20-a-graph-like-none-other/curve_fitting.png&quot; alt=&quot;XKCD for the win&quot; title=&quot;Confused you eh!&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;but the polaris one&lt;/strong&gt; :D&lt;/p&gt;
</description>
    </item>
    <item>
      <title>The First Evaluation</title>
      <link>https://adithyav.dev/writing/first-evaluation/</link>
      <guid isPermaLink="true">https://adithyav.dev/writing/first-evaluation/</guid>
      <pubDate>Thu, 02 Jul 2020 00:00:00 GMT</pubDate>
      <category>gsoc</category>
      <category>open-source</category>
      <description>&lt;p&gt;There are many things which send chills down the spine. Death, ghosts, that
bully who is ready to give you a wedgie and choosing the right database.&lt;/p&gt;
&lt;p&gt;And I just faced one of them (nope not the wedgie, maybe death (so I will send
shivers down your spine?)). No prizes for guessing it right, “choosing the
database” is the correct answer (more about the database at the end).&lt;/p&gt;
&lt;p&gt;Jokes apart, it has been a great month. First evaluations are over and I
received the most heartwarming message from my mentor, appreciating my attitude
and the effort I put into my work. If you are reading this Red, I want you to
know that I couldn’t have asked for a better mentor than you. I am not only
growing as a programmer but also as a person and hope that one day, I would
be able to guide and appreciate students just like you do with me!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://adithyav.dev/img/posts/2020-07-02-two-months-of-gsoc/big-heart-little-minds.jpg&quot; alt=&quot;Yes you have the biggest heart!&quot; title=&quot;Can&amp;#39;t agree with this more&quot;&gt;&lt;/p&gt;
&lt;p&gt;So emotional stuff aside, what has been cooking in the polaris kitchen
you ask? Well vinvelivaanilai (Ah another weird/beautiful sounding project
name). It is a module to store and retrieve space-weather data and propagate
TLEs.&lt;/p&gt;
&lt;h2&gt;The analogy&lt;/h2&gt;
&lt;p&gt;That was a whole bunch of jargons but it will all become clear shortly.
Say it is a rainy day and you have hung your clothes outside, what will happen?
It will get wet of course. But what if it was raining somewhere else. Will that
have any effect on your clothes? No.&lt;/p&gt;
&lt;p&gt;Space-weather is like rain (it is more complex and is influenced by the sun,
distant stars/supernovae, earth’s magnetic feild... but it has a similar
effect). Just like rain wets the clothes, space-weather has its effect on
anything in space (so naturally satellites are affected).&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://adithyav.dev/img/posts/2020-07-02-two-months-of-gsoc/space_weather.jpg&quot; alt=&quot;Thank god for goldilocks&quot; title=&quot;Cool right&quot;&gt;&lt;/p&gt;
&lt;p&gt;The position of the satellite matters as well, if it is not in front of the sun,
it will not be affected by the sun (just like the clothes are not affected by
rains somewhere else). TLEs (Two Line Elements) help us find the position of
the satellite (coordinates of the satellite) for the same.&lt;/p&gt;
&lt;h2&gt;Why is it important?&lt;/h2&gt;
&lt;p&gt;The satellite health depends on the space-weather and since polaris aims at
predicting satellite health, vinvelivaanilai becomes important (and also
because I am doing it. Are you questioning my intensions?)&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://adithyav.dev/img/posts/2020-07-02-two-months-of-gsoc/disturbing_it_is.jpg&quot; alt=&quot;Crushed neck&quot; title=&quot;Believe in the force&quot;&gt;&lt;/p&gt;
&lt;h2&gt;What else?&lt;/h2&gt;
&lt;p&gt;Well, polaris is getting quite popular. Red was invited to three meetups in a
week (GitLab, H2O.ai and SGAC) which was great publicity for the project.&lt;/p&gt;
&lt;p&gt;Ah, the database (almost forgot about it); the winner of the first and hopefully
last vinvelivaanilai database challange is, drum rolls please, influxdb 2.0.
The competition was great this year. The [songs written]({{ site.baseurl }}/one-month-of-gsoc)
about it will go down in historya and it was probably the toughest decision
I had to take in my quest to become a Jedi (I mean a polarite?).&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Community Bonding</title>
      <link>https://adithyav.dev/writing/community-bonding/</link>
      <guid isPermaLink="true">https://adithyav.dev/writing/community-bonding/</guid>
      <pubDate>Sat, 20 Jun 2020 00:00:00 GMT</pubDate>
      <category>gsoc</category>
      <category>open-source</category>
      <description>&lt;p&gt;Time is flying (rocket puns XD). It has been a month (two actually) already and
there is a lot of stuff I have to talk about.&lt;/p&gt;
&lt;h2&gt;Betsi&lt;/h2&gt;
&lt;p&gt;Nope that is not my new girlfriend. But I am passionate about it nonetheless.
So what is it exactly?&lt;/p&gt;
&lt;p&gt;Imagine the tail of a cow, an elephant’s trunk in a mouse’s body. Now keep
imagining and ask the others to imagine. Do you feel odd (and kind of like a
fool)? So does betsi!&lt;/p&gt;
&lt;p&gt;betsi is nothing but an AI which helps find odd behaviour in data. Period.
It is shorthand for Behaviour Extraction using Time Series Investigation, but
we’ll stick to betsi ; -)&lt;/p&gt;
&lt;p&gt;I had to read a paper.&lt;/p&gt;
&lt;h4&gt;A research paper&lt;/h4&gt;
&lt;h3&gt;&lt;strong&gt;A RESEARCH PAPER&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;Can you believe that! Me reading and implementing a research paper. Who knew.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://adithyav.dev/img/posts/2020-06-20-one-month-of-gsoc/woah.gif&quot; alt=&quot;It wasn’t all that bad though, to be fair&quot; title=&quot;Research and me&quot;&gt;&lt;/p&gt;
&lt;p&gt;So I spent day and night on betsi, showering all my smiles and tears, rejoicing
every successful pipeline, spending sleepless nights trying to perfect it.
And boy am I proud.&lt;/p&gt;
&lt;p&gt;So here I present the grand structure.&lt;/p&gt;
&lt;p&gt;|=&amp;gt; Input&lt;/p&gt;
&lt;p&gt;|=&amp;gt; Processed input (zero mean and unit deviation, column vectors)&lt;/p&gt;
&lt;p&gt;|=&amp;gt; More processing (autoencoder, encoder-decoder)&lt;/p&gt;
&lt;p&gt;|=&amp;gt; Even more processing (distance measurement)&lt;/p&gt;
&lt;p&gt;|=&amp;gt; Event detection (finally)&lt;/p&gt;
&lt;p&gt;(Read more about it &lt;a href=&quot;https://gitlab.com/librespacefoundation/polaris/betsi&quot;&gt;here&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;I learnt how to setup a python project from scratch, write .gitlab-ci.yml files, 
write testing code, develop usable API*.&lt;/p&gt;
&lt;p&gt;(* You be the judge of that : P)&lt;/p&gt;
&lt;h2&gt;What else?&lt;/h2&gt;
&lt;p&gt;Databases, databases, databases. I even made a song about it.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://adithyav.dev/img/posts/2020-06-20-one-month-of-gsoc/to-die-or-not-to.gif&quot; alt=&quot;Don’t worry, I tried JSON as well&quot; title=&quot;To database or not to, that is the question&quot;&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-text&quot;&gt;Start my day with MariaDB,
Then try out MongoDB.
If bored slap myself
and play with InfluxDB.

Not night yet,
bring out ArangoDB.
Oh MySQL,
and PostgreSQL.
Won&amp;#39;t you let me sleep
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I am no Shakespeare, but that legit sounds great.&lt;/p&gt;
&lt;h2&gt;And?&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;This blog of course. This is a product created by me during GSoC, for which I
sat and learnt CSS, SASS, liquid, HTML5... It might not sound like much, but
trust me, the dark circles in my eyes stand evidence of the effort I put in!&lt;/li&gt;
&lt;li&gt;Polaris Friday Meetings (I love this)&lt;/li&gt;
&lt;li&gt;More Polaris contrib (GPU param setting), dask tests...&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;TL; DR&lt;/h2&gt;
&lt;p&gt;Learnt a lot, read the horrible song above, before-after pictures are the worst.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Getting into GSoC!</title>
      <link>https://adithyav.dev/writing/getting-into-gsoc/</link>
      <guid isPermaLink="true">https://adithyav.dev/writing/getting-into-gsoc/</guid>
      <pubDate>Fri, 29 May 2020 00:00:00 GMT</pubDate>
      <category>gsoc</category>
      <category>open-source</category>
      <category>space</category>
      <description>&lt;p&gt;I know, I know that I am quite late at writing this blog (by almost a month),
but what can I say, I wanted to write a lot, but had too little time!&lt;/p&gt;
&lt;p&gt;This post is just for me to remember, and for you to learn, on what I
went through to get GSoC and how I should thank Covid-19. Don’t follow?
Read on :P&lt;/p&gt;
&lt;h2&gt;Selecting Libre Space Foundation&lt;/h2&gt;
&lt;p&gt;For those of you who don’t know, I am a big time space enthusiast. So
while searching for GSoC projects, I searched for, wait for it, space
science. That pretty much narrowed it down to Libre Space Foundation.&lt;/p&gt;
&lt;p&gt;My takeaway: always choose your passion, it will end up working for you
eventually!&lt;/p&gt;
&lt;h3&gt;What about the project?&lt;/h3&gt;
&lt;p&gt;Even though I had chosen the organization, the project was yet to be
chosen. I initially worked on the HRPT decoder, breaking my head over
setting everything up and all that boring stuff. Fast forward a couple
of weeks, I had a vague understanding of how gnu-radio works, and severe
sleep deprivation.&lt;/p&gt;
&lt;p&gt;That’s when my knight in shining armor came: &lt;strong&gt;Polaris&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://adithyav.dev/img/posts/2020-05-29-getting-into-gsoc/knight_in_shining_armor.png&quot; alt=&quot;My knight in shining armor Polaris (╯✧ ∇ ✧)╯&quot; title=&quot;Sir Polaris&quot;&gt;&lt;/p&gt;
&lt;h3&gt;What’s so special about Polaris anyway?&lt;/h3&gt;
&lt;p&gt;In two words &lt;strong&gt;the team&lt;/strong&gt;. What I love about contributing to Polaris is
the team I am contributing with. When I first saw the project listed in
the GSoC projects page for Libre Space, I knew I had a lot to learn, but
I also knew that it was right up my alley. I was half-anxious, half-excited
to join the Polaris and when I ended up garnering enough courage to introduce
myself, I received the warmest welcome; I felt at home.&lt;/p&gt;
&lt;p&gt;And that is what keeps me going, the knowledge that I am working with a group
of highly talented people who are passionate about what they do, who want
the best for the project and who would do anything to help! They even
sent me a welcome poster on my first (cough, cough third ;-P) contribution
to Polaris.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://adithyav.dev/img/posts/2020-05-29-getting-into-gsoc/welcome_to_polaris.png&quot; alt=&quot;Thanks Hugh (@SaintAardvark)&quot; title=&quot;(｡♥‿♥｡)&quot;&gt;&lt;/p&gt;
&lt;p&gt;I could feel the same passion growing in me, I wanted to call myself a
Polaris member, to contribute back to the community who helped me, so I
did. This helped me grow as a person and a team member! It was no longer
my work, it was our work (communism).&lt;/p&gt;
&lt;p&gt;My takeaway: As the greatest master this universe has seen said
“Pass on what you have learned.” and “No! Try not! Do or do not,
there is no try.” Can’t frame it any better than that! XD&lt;/p&gt;
&lt;h2&gt;Making use of time&lt;/h2&gt;
&lt;p&gt;You might or might not have been searching for the use of Covid-19
in this post till now. Either way here it is!&lt;/p&gt;
&lt;p&gt;Thanks to that-which-shall-not-be-named (I know I have mentioned its name)
I got two months of alone time at home, time which I used wisely
&lt;del&gt;watching TV series and movies (I did this but you should not know)&lt;/del&gt;
understanding the polaris pipeline. I experimented with different modules
of Polaris, submitted MRs for issues from the issues page and did what I
do best (usually in exams), solve stuff I don’t know completely with
the help of others.&lt;/p&gt;
&lt;p&gt;I loved working on Polaris, it kept me up day and night. It was like
a new unexplored puzzle, a 5 by 5 Rubik’s cube perhaps. I learnt and
learnt and learnt, soaking everything up like a dry sponge. I am sure
I wouldn’t have been able to spend so much time had it not been for the
unexpected holidays from Covid-19 (Every cloud has a silver lining eh).
By the end of March, I had started helping other newcomers out with their
MRs and environments and ...!&lt;/p&gt;
&lt;p&gt;My takeaway: “It is our choices... that show what we truly are, far more than our abilities.” -- Dumbledore&lt;/p&gt;
&lt;h2&gt;Writing the proposal&lt;/h2&gt;
&lt;p&gt;I spent about two weeks writing my proposal, which you can find &lt;a href=&quot;https://docs.google.com/document/d/1GVbmv9YMhXaJt9hbE953zJ0iL7Dt21HpBrtxRQMbKvk/edit#&quot;&gt;here&lt;/a&gt;. I am not sure what
aspects of the proposal (if at all any) helped my case, but my proposal
reflected who I am, what I love. I believe in keeping everything organised,
scheduled and I tried my best to show that in my proposal.&lt;/p&gt;
&lt;p&gt;My takeaway: Let your work reflect your attitude.&lt;/p&gt;
&lt;h2&gt;TL;DR&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Love what you do&lt;/li&gt;
&lt;li&gt;Do what you love&lt;/li&gt;
&lt;li&gt;Stay organized&lt;/li&gt;
&lt;li&gt;Manage your time&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And may the force be with you!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://adithyav.dev/img/posts/2020-05-29-getting-into-gsoc/may_the_force_be_with_you.jpg&quot; alt=&quot;Seriously&quot; title=&quot;Control, control, you must learn control!&quot;&gt;&lt;/p&gt;
</description>
    </item>
  </channel>
</rss>
