<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Vineet Jain on Medium]]></title>
        <description><![CDATA[Stories by Vineet Jain on Medium]]></description>
        <link>https://medium.com/@vineetajm1999?source=rss-a28427a6644d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*RUPqkhStfULFyYh-.jpg</url>
            <title>Stories by Vineet Jain on Medium</title>
            <link>https://medium.com/@vineetajm1999?source=rss-a28427a6644d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 15:12:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vineetajm1999/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Developing applications for Cloud FPGAs are easier than you think]]></title>
            <link>https://medium.com/@vineetajm1999/developing-applications-for-cloud-fpgas-are-easier-than-you-think-6b39b7010412?source=rss-a28427a6644d------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b39b7010412</guid>
            <dc:creator><![CDATA[Vineet Jain]]></dc:creator>
            <pubDate>Mon, 23 Aug 2021 15:47:09 GMT</pubDate>
            <atom:updated>2021-08-23T17:40:36.480Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*WDqYxhpTeqdhneLM-SsP7g.png" /><figcaption>Developing manycore accelerator using 1st Class Framework</figcaption></figure><p>Hi everyone,</p><p>I am <a href="https://www.linkedin.com/in/vineetjain78/"><strong>Vineet Jain</strong></a>, a final year Electronics and Communication undergrad at LNMIIT, Jaipur. I am penning this blog to describe my journey in open source and contributions made over this summer as a Google Summer of Code participant under the <a href="https://fossi-foundation.org/"><strong>Free and Open Source Silicon Foundation</strong></a> with the project titled <a href="https://summerofcode.withgoogle.com/projects/#5475393722646528"><strong>WARP-V Many-Core in the Cloud</strong></a>.</p><h3>Abstract</h3><p><a href="https://github.com/stevehoover/warp-v"><strong>WARP-V</strong></a> is a highly configurable, adaptable, and flexible open-source<a href="https://warp-v.org/"> CPU core generator</a>. It supports various ISA like MIPS, RISC-V and can even be configured with a custom one. One can tune it accordingly to requirements from a Single-cycle, Low power, Frequency FPGA implementation to High-Frequency 6-cycle ASIC Design. It is designed using an emerging <a href="https://www.redwoodeda.com/tl-verilog">“Transaction-Level” methodology</a> that takes advantage of advanced digital design features, timing-abstract nature of language features provided by TL-Verilog, and provides a far better abstraction over traditional used HDLs like Verilog, VHDL.</p><p>After CPU and GPUs, FPGAs are another wave of cloud computing that opens new opportunities for new and exciting computation models. Due to its highly configurable logic blocks and parallelization, it helps in accelerating compute-intensive cloud workloads. But all this comes with a tradeoff, as FPGAs are expensive and not freely available to everyone.</p><p><a href="https://github.com/stevehoover/1st-CLaaS"><strong>1st CLaaS</strong></a> is an emerging generic framework that helps in eliminating these up-front costs by providing support for developing custom hardware accelerators and integrating them with web applications and cloud infrastructure, bringing it within reach of everyone.</p><h3>About Project</h3><p>This Project is aimed to harnesses these advantages brought by <a href="https://warp-v.org/">Warp-V</a> and <a href="https://github.com/stevehoover/1st-CLaaS">1st CLaaS framework</a> by providing support for the multicore NoC design, building a custom kernel interface, and accelerate the complex computation of web applications by deploying it on the cloud.</p><p>This project aims not only to provide a highly configurable many-core hardware accelerator in the cloud but will also drive the industry toward FPGA-accelerated web applications and cloud computing, also demonstrating the flexibility of TL-Verilog to motivate the industry toward better design methodology.</p><h3><strong>Coding Round begins-</strong></h3><h3>Phase-1: 💻</h3><p><strong>Debugging of Manycore and build the Visualization for Insertion Ring</strong></p><p>The first task was to fix the manycore and insertion ring hardware itself, as after a few test instructions we found that the packets were not contiguous and were not able to be pulled out of Ingress buffers.</p><p><strong>🔷 Fixed the issue with INGRESS Buffer</strong></p><p>The Ring interconnect in itself was functioning properly for a small set of stimulus, and the flits were getting stored in the Ingress FIFO at the destination end. But the Core itself was speculatively reading the flits every time, this behavior was leading flits to get dropped if they were on a bad-path(shadows of a replay). To solve this problem, a logic was added to do forcefully replay of packet reads which were in goodpath every time, hence making it non-speculative in nature. Although this approach is leading to replay every flit in the packet but is more robust and faultless.</p><p><strong>🔷 Visualization for the Memory banks and support for Multiple Cores</strong></p><p>Initially, the Visual diagram of Warp-V shows only a single memory bank, but RISCV also supports Loads/Store instruction which only operates on Bytes(8-bit) rather than a complete Word(32-bit). Hence, we decided to extend the VIZ to support multiple memory banks. Another student <a href="https://www.linkedin.com/in/mayank-kabra-6993701ab"><strong><em>Mayank Karba</em></strong></a> did a fantastic job in incorporating cool animations into the diagram giving it a real feel. Along with him, I added support for Multiple Cores (aligned vertically) as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DwX2edSMHwO4Ah-ntBSdmw.png" /><figcaption>WARP-V Visualization (with insertion ring on the side)</figcaption></figure><p>Have a look at this <a href="https://www.makerchip.com/sandbox/0PNf4hW7B/0lOhOw2">Sandbox link</a> -</p><p><strong>🔷 Architectural changes and Visualization for Insertion Ring</strong></p><p>The Insertion Ring was behaving correctly for small inputs but for large inputs, the packets were getting lost and following a different path, missing their contiguity and its order. Since the design was a bit complex and interconnected it was difficult to pull the waveforms every time and see the behavior of a particular module and its impact on others. To tackle this problem, the easiest approach we came out with was to use the <a href="https://www.redwoodeda.com/tl-verilog"><strong><em>Visual Debug</em></strong></a> feature of<a href="https://www.makerchip.com/"> <strong>Makerchip</strong></a> which helps in debugging by abstracting our design at a high visual level and this helps to get an idea of the overall functionality of separate pipelines.</p><p>This was a challenging task as monitoring and managing each and every packet in a rather complex design is quite difficult, but thanks to the TL-Verilog wild card construct <strong>ANY</strong>, which pulls signal from the stage in is consumed to the place where it is assigned and stitches the necessary FF in between. Hence, in this case, a Unique Id field (UID) is attached to the flits coming out of Core into the Ring (though Egress port), and at any point, a packet can be referenced by its UID field to animate it along the path.</p><p>This took a bit a longer time than it should have but finally, we got visualization that helps in fixing bugs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*R4KxCLAQcKNwvKqUTXAmgA.gif" /></figure><p>Blue color means data is “Valid” and Red means the “blocked” (or not ready) is asserted from upstream. <br>In rectangle boxes, Pink means “header flit”, Green means “normal flit” and Blue means “tail flit”.</p><p><strong>And finally, we got the issue.</strong></p><p>a. Packets were always taking deflected path (i.e. going upwards into the FIFO), it should be the other way around i.e. flits should follow the horizontal path until this particular core is ejecting into the ring(in that case it should follow the above path).</p><p>b. The Header flits generation at Egress port was not consistent, i.e. the order was {src, vc, dest} but it should be {vc, src, dest}. Because of this, the packets were received at a different VC (or Virtual Channel) hence, causing the issue.</p><p>To solve the above problems a slight modification to the architecture was made and the image below shows that.</p><figure><img alt="https://docs.google.com/drawings/u/1/d/1VS_oaNYgT3p4b64nGSAjs5FKSvs_-s8OTfTY4gQjX6o/preview" src="https://cdn-images-1.medium.com/max/1024/1*Wiv6u_Z0PwSVuHqb6lMrjQ.png" /><figcaption>Insertion RIng Diagram</figcaption></figure><p>One can spend as much time in making attractive and fancy visualization, but the whole purpose of Visual debug is to help in debugging and visualizing our logic in lesser time possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*Djv1gn1nbZ35-EMxxh2nDA.gif" /><figcaption>New Visual Debug</figcaption></figure><p>Hence, we decided to make the viz a bit more abstract and easy to make. Also added support different colors for multiple VCs as well. The Red Dot in the above image represents the nodes for the VIZ of the insertion ring. Although it might not be fancier looking, it was built in under 30 mins (no joke).</p><h3>Phase-2: 💻</h3><p><strong>Building Manycore kernel to be deployed on Cloud FPGAs using AWS F1</strong></p><p>After completing the functionality check of the manycore versions of warp-v and debugging it. It was now the time to take this whole thing into the cloud (but step by step).</p><p><strong>🔷 Modification to WARP-V Kernel</strong></p><p>As things get older they begin to rust. The same occurred with the already built warp-v kernel. The issue was with missing older functions and macros definitions which were changed and moved out to different places as the WARP-V was evolving over in the meantime. So, the task was to fix that and get the warp-v kernel back to its working state. To do this we used the <em>1st CLaaS default template</em>, which changes I/O for the kernel (AXI-stream interface) supporting development in both Makerchip and 1st CLaaS local environment.</p><p>The development of web app and whole infrastructure in 1st CLaaS local environment is pretty easy and simple. The below diagram shows profiling reports generated by Xilinx tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4aR7Z2k9ucc6N0KCIjVDjA.png" /><figcaption>WARP-V Application timeline in hardware-emulation mode</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*czBH_goSGwViPbyLM9WWxw.png" /><figcaption>WARP-V Real-time Simulation Waveform in hardware-emulation mode</figcaption></figure><p><strong>🔷 Build support for Manycore Kernel</strong></p><p>After getting WARP-V up and working it was time to get into manycore. But we faced few challenges. Firstly, the memory was just a simpler one and only support 1 write and 1 read operation. In our case, we needed a mechanism for all the Cores to get Instructions from the web client to operate according. This method might it a bit uncomfortable from the user’s point of view as they have to load them separately, etc. Hence, we decided to have the same Global Memory from which all Cores can fetch the data and operates according. In the Global Memory, no. of read ports equals to no. of Cores so each core can read separately.</p><p>Secondly, the kernel is communicating to the host application and shell via the single AXI-stream interface. So we decided to attach Core-0 with the I/O part of the kernel and the communication we happen through Core-0 (as it was the easiest approach to take)</p><p>After a few modifications and fixes, we managed to get Manycore working in the local development environment. The below video shows the process and running the “Hello Core” program on <strong>5-cores</strong>, in which each Core spits out its Index number and sent to Core-0 which he adds all of them and sends back to the web client.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*_DsE8LKxCEbyQHaWbIq25Q.gif" /><figcaption>Demo of the manycore kernel using 1st Class (local) Environment</figcaption></figure><p>Have a look at this <a href="https://www.makerchip.com/sandbox/0PNf4hW7B/0mwh1o5">sandbox link</a> (manycore in Makerchip)</p><p><strong>🔷 Using AWS F1 Instance to test for correctness on Actual Hardware</strong></p><p>After the previous step, now the next task was to take the design to actual FPGA and use Xilinx tools the optimize the design. In the process, few changes to the script were to make-</p><p><strong>a.</strong> Added Reset button to the web client, which will stop and release the OpenCL function calls the exit the host application. Also made changes to relate Host and server code accordingly.</p><p><strong>b.</strong> Sandpiper-saas to latest version and changed python version and few links to solve dependencies issues.</p><p><strong>c.</strong> In Terraform script fixed a bug that leads to AWS credential failure on the F1 instance (it was extra space, xD).</p><p><strong>d.</strong> few debug packages and added sdaccel.ini to overwrite and generate profiling report and waveform.</p><p><strong>e.</strong> Added Xilinx Parametrized Bram (XPM) macro to be used as memory because earlier designs were taking a long time to synthesize due to tools not being able to infer Memory properly.</p><p>After these steps, I was able to get Mandelbrot, Vector-Addition application up and running on the Cloud (F1 instance).</p><p>Let’s see Mandelbrot in action -<br>(I have already gone through the process of synthesis, implementation, and generated bitstream. Hence I will load it using PREBUILT)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*IZPhLzGRZnv4BfPGifGStg.gif" /><figcaption>Mandelbrot Demo Application of F1 Instance</figcaption></figure><p>Also the Vector Addition example -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*cKVLRSprC8XhDF_hDARRRQ.gif" /><figcaption>Vector Add Demo on F1 instance</figcaption></figure><h4><strong>Let&#39;s go through the steps to build your custom kernel</strong></h4><p>Step-1: got to the <a href="https://github.com/stevehoover/1st-CLaaS"><strong>1st-CLaaS repo</strong></a><strong> </strong>and clone it (you might want to fork it first).</p><pre>git clone <a href="https://github.com/stevehoover/1st-CLaaS.git">https://github.com/stevehoover/1st-CLaaS.git</a><br>cd 1st-CLaaS</pre><p>Step-2: run Init script</p><pre>./init</pre><p>Step-3: Copy the Vector addition example application</p><pre>cd apps/vadd/build<br>make copy_app APP_NAME=toy</pre><p>Step-4: Modify kernel (and web client if you want)</p><pre>cd &lt;repo&gt;/apps/toy/fpga/src<br>vim toy_kernel.tlv # Modify this</pre><p>Step-5: Run the Application</p><pre>cd &lt;repo&gt;/apps/toy/build<br>make launch</pre><p>Open <a href="http://localhost:8000/index.html.">http://localhost:8000/index.html</a> and see your hardware in action.</p><p>AND DONT FORGET to <strong>STOP YOUR INSTANCE</strong> when working with AWS Instance.</p><p>For more info about different modes and running over F1 instances refer to the<em> </em><a href="https://github.com/stevehoover/1st-CLaaS/blob/master/doc/GettingStarted.md"><em>Getting Started Guide</em></a>, <a href="https://github.com/stevehoover/1st-CLaaS/blob/master/doc/DevelopersGuide.md"><em>Developers Guide</em></a><em>, </em>and<em> </em><a href="https://github.com/stevehoover/1st-CLaaS/blob/master/doc/GettingStartedF1.md"><em>Getting Started with AWS and F1</em></a> Guide on the 1st-CLaaS repo.</p><h3><strong>Learning along the way -</strong></h3><ol><li>The most important thing I learned was to manage my time and using resources well enough, as <strong>TIME=MONEY</strong> (AWS instance taught me this).</li><li>Importance of planning and organizing tasks before executing them. When working on a big project, It becomes crucial that every task is properly segregated and planned before the actual work begins. And the efficiency of work is increased by proper structure.</li><li>Improved my collaboration and communication skills.</li><li>Sharpened my skills in GIT and writing skills.</li></ol><h3><strong>Challenges faced —</strong></h3><ol><li>Faced some AWS platform issues regarding permissions, setting up AMI, getting Remmina to work, and got quite expensive F1 ($1.65/hour) and C4-2x large($0.85/hour).</li><li>Although the Xilinx tools stack is already well maintained, we faced quite annoying dependence issues. The tools are not back-compatible and we faced few issues in setting up the Xilinx SDAccel 2018.3 environment.</li><li>Even after 2 weeks of work, I wasn’t able to run Manycore on Actual FPGA(i.e. in HW mode). It took me quite a while to understand the issue with congestion (~7) was occurring due to memory not being inferred in Bram/Rams, etc.</li><li>Development VIZ for a big model like manycore on Makerchip was taking quite a time to compile (until debug mode in Makerchip comes up).</li></ol><h3>Future enhancements:🚀</h3><ol><li>Fix the remaining issue with Manycore not behaving properly on Real FPGA hardware.</li><li>Add support for individual VIZ for TLV library components.</li><li>Integrate the 1st-CLaaS version of warp-v and manycore kernel into the <a href="https://warp-v.org/"><strong><em>warp-v.org</em></strong></a> configurator.</li></ol><h3><strong>Links to my Commits</strong></h3><p>Here are links-</p><p>WARP-V repo: <a href="https://github.com/stevehoover/warp-v/pull/85">https://github.com/stevehoover/warp-v/pull/85</a><br><a href="https://github.com/stevehoover/warp-v/commits?author=vineetjain07">https://github.com/stevehoover/warp-v/commits?author=vineetjain07</a></p><p>1st-CLaaS repo: <a href="https://github.com/stevehoover/1st-CLaaS/pull/63">https://github.com/stevehoover/1st-CLaaS/pull/63</a><br><a href="https://github.com/stevehoover/1st-CLaaS/commits?author=vineetjain07">https://github.com/stevehoover/1st-CLaaS/commits?author=vineetjain07</a></p><h3>Final Words:</h3><p>In the end, I just want to thank my mentors <a href="https://www.linkedin.com/in/shivampotdar99/"><strong>Shivam Potdar</strong></a><strong>, </strong><a href="https://www.linkedin.com/in/steve-hoover-a44b607/"><strong>Steve Hoover</strong></a>,<strong> and </strong><a href="https://www.linkedin.com/in/akos-hadnagy/"><strong>Ákos Hadnagy</strong></a><strong> </strong>for their enormous helping in me in achieving this goal, and for keep motivating me to think forward. I am extremely happy to have them.<br>I would also like to congratulate fellow GSoC participants (<a href="https://www.linkedin.com/in/ninadjangle/"><strong>Ninad Jangle</strong></a><strong>, </strong><a href="https://www.linkedin.com/in/bala-dhinesh/"><strong>Bala Dhinesh</strong></a><strong>, </strong><a href="https://www.linkedin.com/in/nitin-mishra-76a48353/"><strong>Nitin Mishra</strong></a>)and their mentors for achieving mind-blowing results in their projects in the Tl-Verilog domain(do read their blog).<br>Special thanks to <a href="https://www.linkedin.com/in/mayank-kabra-6993701ab/"><strong>Mayank Kabra</strong></a> and <a href="https://www.linkedin.com/in/shivani-shah26/"><strong>Shivani Shah</strong></a> for helping throughout the project.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b39b7010412" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[You probably will never use VHDL/Verilog after this]]></title>
            <link>https://medium.com/@vineetajm1999/you-probably-will-never-use-vhdl-verilog-after-this-47ac61715d15?source=rss-a28427a6644d------2</link>
            <guid isPermaLink="false">https://medium.com/p/47ac61715d15</guid>
            <category><![CDATA[gsoc-2020]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[risc-v]]></category>
            <category><![CDATA[verilog-hdl]]></category>
            <dc:creator><![CDATA[Vineet Jain]]></dc:creator>
            <pubDate>Wed, 20 May 2020 08:29:27 GMT</pubDate>
            <atom:updated>2020-05-20T10:48:56.060Z</atom:updated>
            <content:encoded><![CDATA[<h4>— GSoC 2020 My First Blogpost!</h4><p>Hi everyone,</p><p>My name is Vineet Jain, a Junior EC undergrad at <a href="https://www.lnmiit.ac.in/">LNMIIT, Jaipur</a>.</p><p>On 4th May 2020, my proposal for <a href="https://summerofcode.withgoogle.com/">Google Summer of Code</a> (GSoC) 2020 got accepted under <a href="https://fossi-foundation.org/">FOSSi Foundation</a>. It was a fascinating and joyful moment for me to start a journey on learning something new while contributing to the Open-Source Community.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NqnHXdycywH5rvz0zld9AQ.png" /><figcaption>How satisfying moment it is</figcaption></figure><p>Although there are many software-oriented organizations, only a <strong>few of them are related to hardware domain</strong> i.e. <em>Digital design, FPGA’s,</em> etc. So, I thought it would an exciting idea to let others know about my experiences along the way, which would hopefully help someone in the future.</p><blockquote><strong>Quick info on GSoC and Open Source?</strong></blockquote><p><em>Google Summer of Code</em> is a global program focused on bringing more student developers into open source software development.</p><p>It is conducted and administrated by Google themselves with a mission to promote the Open-Source community development cycle by connecting various open-source organizations to students, managing their application process, and provides with a generous stipend amount after completion of their task.</p><p>The program serves as a gateway for many students to get into the open-source community and learn about production-grade software development in general. It also helps the student to understand the general workflow of an actual development process happening in any organization i.e. from issues to bug fixes to developing a new feature.</p><p><strong>The basic motto of open-source development is working in a collaborative approach. </strong>This not only helps the community to develop but also provides a platform for individuals to interact with highly knowledgeable and friendly people both industry and academia.</p><p>And what do you need to get involved? <strong>Interest and Motivation</strong>. That’s it!</p><blockquote><strong>Does open-source means something related to software?</strong></blockquote><p>Well, It was History. In this new area of Hardware Development due to its highly dedicated and active community, have reached a new level of heights, we already have a large stack of open source tools for hardware development (like verilator, gtkwave, etc.) available and also have our new whole open-source<em> ISA</em> called<strong><em> RISC-V</em></strong>, which started a revolution in the open-source development environment, many of the RISC-V based designs are available freely on a platform like OpenCores, Github, etc. where anyone can contribute and learn from them, which helps the community to get updated.</p><p>Let’s go to one of those open-source environment named <a href="http://makerchip.com/">MakerChip </a>and <a href="https://tl-x.org/">TL-Verilog</a>.</p><blockquote><strong>A bit about TL-Verilog</strong></blockquote><p>If you are a digital design enthusiast (like me), you probably have experience with some<strong> </strong>HDL’s(<em>Hardware Descriptive Language</em>) like <em>Verilog</em>, <em>VHDL</em>, <em>System-Verilog</em>, etc. They are different from High-Level Language(like C, C++, Python) because rather than doing an operation it builds hardware for that operation.</p><p>They are generally used for RTL frontend designing to building various digital logic and some advanced designs.</p><p>The thing is, they are of <em>heavy syntax (specially VHDL) </em>and are also <em>buggy</em> in some context. It sometimes feels kinda messy as sometimes they do not provide enough flexibility to a designer to do some particular stuff and have a lot of conditions like<strong><em> </em></strong><em>blocking vs non-blocking assignments</em>, etc to care for.</p><p><strong>What if there exists something that eliminates all this boring stuff?</strong></p><p>And, here comes our savior, <strong><em>a new design methodology</em></strong> known as <strong>Transaction-Level Design</strong>. A Transaction means any entity(like packets) that moves through structures like pipelines, FIFO, etc. and Transaction-Level Verilog or TL-Verilog is a new emerging and easy to learn and understandable HDL based on that.</p><p>It is the future of the hardware designing as existing <strong>RTL designing is now becoming old and inconvenient for IP designing</strong>, and the transaction flow suits perfectly for this purpose.</p><blockquote>Things you don’t need to worry about in <em>TL-Verilog</em>, <strong><em>reg vs. wire vs. logic vs. bit</em></strong><em> </em><strong><em>assignments</em></strong><em>,</em><strong><em> blocking vs. non-blocking</em></strong><em> </em><strong><em>assignments</em></strong> (I don’t know about others, but I personally had to struggle a lot understanding it.), <strong><em>packed vs. unpacked</em></strong><em>, </em><strong><em>generate blocks</em></strong><em>, </em><strong><em>loops</em></strong><em>, </em><strong><em>always block</em></strong><em>, </em><strong><em>sensitivity lists</em> </strong>and more.</blockquote><p>Some cool stuff you can do easily do with TL-Verilog</p><blockquote><strong><em>Pipelines</em> </strong>— super easy (would have taken numbers of lines in Verilog in big designs), <strong><em>hierarchy, state, transactions,</em></strong> and much more.</blockquote><p>Wow, that’s awesome, right?</p><p>TL-Verilog not only<strong> reduces your code size significantly</strong> but allows you to <strong>freely declare signals without explicitly declaring them</strong> (just like Python does compare to C). Believe me, ones you get addicted to TLV then there is no going back to those old styles.</p><blockquote><strong>What is the makerchip platform?</strong></blockquote><p>You probably also have worked with some various design tools like <em>ModelSim, Xilinx Vivado, Altera’s Quartus Prime,</em> etc. which requires you to have some decent system and some of them require you to have its license to design your logic.</p><p>What if I tell you that there exists an online IDE platform that minimizes your efforts, not only by<strong> reducing the code size</strong> in TL-Verilog but also <strong>eliminates the need to write long and boring test-benches</strong> to see the simulation going on, Plus its also <strong>Free</strong>…</p><blockquote>and here we have it <a href="http://makerchip.com/">Makerchip.com</a></blockquote><p>We can do a lot of stuff in makerchip like, It allows the designer to <strong>debug signals explicitly</strong>, letting them which lines in code produced them.</p><p>Plus you can generate Verilog/SystemVerilog code from TL-Verilog in makerchip which uses Sandpiper complier to do that. There is a lot of stuff we can do with it, I won’t get much into that for now (maybe on another blog post…).</p><p><strong>Let me show you a quick case.</strong></p><p>From the past few days, I have been working on Bit_maniplulation instructions implementation on hardware, one of them looks something like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*pYu2F2-xOH186E7aqDhR0A.png" /><figcaption><strong>Fig: 8-bit Barrel Shifter</strong></figcaption></figure><p>It’s Barrel Shifter Right? If we were to use Verilog if would have taken numerous numbers on lines to implement it. The case becomes more complex if we were to build that module for variable-size inputs like (8, 16, 32, 64, etc.).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uZfa9GvUVaCGfwMsAQs-bw.png" /><figcaption>Fig: Code on the left side with the Diagram and Simulation on the Right</figcaption></figure><p><strong><em>Leveraging the power of TL-V with the use of Macro</em></strong></p><p>And here comes the power of TLV on makerchip with the help of powerful prepossessing Macro (M4) the whole logic just only takes a few lines of codes, and more interestingly for various inputs as well. And this a short snippet of example that Verilog isn’t capable of.</p><blockquote><strong>Let’s Sum-it up…</strong></blockquote><p>In this year’s GSoC, some organizations were hosting hardware-related projects, including FOSSi, lowRISC, BeagleBoard.org, SymbiFlow, etc.</p><p>They work on exciting projects across numerous areas like digital-design, robotics, microcontrollers, EDA tools, etc. and have a very active worldwide community.</p><p><strong>My Proposed Project</strong></p><p>Free and Open Source Silicon Foundation (FOSSi) has hosted many interesting projects such as LibreCores, cocotb, and Embench.</p><p>I will be working on the project titled “<em>Enhancement in Warp-V and Optimization </em>“.</p><p>The<strong> </strong><a href="https://github.com/stevehoover/warp-v"><strong>WARP-V</strong></a> RISC-V core was developed in 2018, it is the most-configurable, most-adaptable open-source RISC-V CPU core generator, taking advantage of advanced digital design features of TL-Verilog. It can be configured as a low-power, slow-clock, single-stage pipeline, a high-frequency seven-stage pipeline, or anywhere in between. We can even swap out the RISC-V ISA for a completely different ISA altogether.</p><p>I will be mentored by super-friendly and knowledgeable, Steve Hoover, Akos Hadnagy and Abhishek Sharma.</p><p>I will keep posting updates about the same as I go through the GSoC timeline!</p><blockquote><strong>Bottom line</strong></blockquote><p>It’s my first blog post, pardon me for any mistakes any advice and suggestions would be greatly appreciated.</p><p>I would be happy to talk if you have any questions: <em>vineetajm1999@gmail.com</em></p><p>Cheers!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47ac61715d15" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>