Building a Bluespec LED Controller Using Connectal Build
by jameyhicks in Circuits > Linux
1955 Views, 8 Favorites, 0 Comments
Building a Bluespec LED Controller Using Connectal Build
![5436bdb7d535cf310a000040.jpeg](/proxy/?url=https://content.instructables.com/FD1/8DX1/I11YUD6Q/FD18DX1I11YUD6Q.jpg&filename=5436bdb7d535cf310a000040.jpeg)
This tutorial explains how to use the public Connectal Build service to build and simulate an application with hardware and software components written in BSV and C++ using the Connectal Framework.
We assume that you will store your design sources in a publicly available Git repository such as Github. The build service, which is based on buildbot, automatically builds your project when it detects changes. If you are simulating your design, the build service runs the applications and displays the logs automatically.
Using other tutorials, you can build a software executable and FPGA .bit file for the Zedboard, program the FPGA, and download and run the software.
What You Will Need
- A github.com account
- A web browser
Create Your Git Repository
![5436bddcd535cfb842000022.jpeg](/proxy/?url=https://content.instructables.com/FDU/Y1VQ/I11YUD9L/FDUY1VQI11YUD9L.jpg&filename=5436bddcd535cfb842000022.jpeg)
We're going to modify and build an existing example. ConnectalBuild builds from github repositories, so we're going to create a personal repo by forking the example.
Browse to https://github.com/connectal-examples/leds and press the fork button to create your own copy.
Login to Connectal Build
![5436bdf5d535cf8f9a000015.jpeg](/proxy/?url=https://content.instructables.com/FDI/TTXC/I11YUDB2/FDITTXCI11YUDB2.jpg&filename=5436bdf5d535cf8f9a000015.jpeg)
Now browse to the build service at http://connectalbuild.qrclab.com/ and login using your github username and password.
Add Your Project to Connectal Build
![5436be40d535cfb842000023.jpeg](/proxy/?url=https://content.instructables.com/F5V/SAKO/I11YUDI1/F5VSAKOI11YUDI1.jpg&filename=5436be40d535cfb842000023.jpeg)
![5436be52d535cfd0ff000054.jpeg](/proxy/?url=https://content.instructables.com/FYT/EMB7/I11YUDJ0/FYTEMB7I11YUDJ0.jpg&filename=5436be52d535cfd0ff000054.jpeg)
After logging in, click the "Add Project" link to add your project to be built.
Open Testled.cpp to Edit
![5436be7dd535cf8f9a000018.jpeg](/proxy/?url=https://content.instructables.com/FSW/P0Z5/I11YUDLL/FSWP0Z5I11YUDLL.jpg&filename=5436be7dd535cf8f9a000018.jpeg)
Now that you have your own personal repo for the example, you can modify the application. Click on the testleds.cpp link so that you can edit the file.
Edit the Application
The Connectal build service will build the application whenever it changes.
Let's edit it from the web interface.
Connectal Build Will Build and Simulate the Application
![5436becfd535cf1dce000010.jpeg](/proxy/?url=https://content.instructables.com/F0D/5UF8/I11YUDQY/F0D5UF8I11YUDQY.jpg&filename=5436becfd535cf1dce000010.jpeg)
![5436bebdd535cf61130000a2.jpeg](/proxy/?url=https://content.instructables.com/FFW/46ZV/I11YUDQ4/FFW46ZVI11YUDQ4.jpg&filename=5436bebdd535cf61130000a2.jpeg)
![5436bea9d535cff246000208.jpeg](/proxy/?url=https://content.instructables.com/FPW/TN1C/I11YUDOS/FPWTN1CI11YUDOS.jpg&filename=5436bea9d535cff246000208.jpeg)
Navigate to the waterfall view: http://connectalbuild.qrclab.com/waterfall?reload=60. It may take a minute for the service to notice the change to your repo. Once it begins building, you will see the status changing. As we can see in the first picture, it is building the application. In the next picture we can see it running the application and in the last picture we can see the output from the application.