Navigate back to the homepage

Coding Phase 1 - Week 1 & 2

Nancy Chauhan
June 8th, 2019 · 1 min read

It has been almost two weeks since coding phase 1 has started and things are getting clearer with every discussion I have with my mentors Oleg Nenashev and Stafford Horne on Setting up demo CI flow for mor1kx. Till now I have worked on modifying mor1kx Travis CI flow to use Librecores-CI docker image.

Background : Librecores CI and mor1kx

Librecores CI is an approach/service to provide continuous integration to hardware projects hosted on Librecores to improve user experience and reliability and mor1kx is an OpenRISC processor IP core . So my first phase mainly consists of working on the mor1kx project.

In mor1kx project Travis CI flow was already implemented in which mor1kx pipelines are constantly verified for correctness . This covers:

1) source linting — a verilator —lint-only check is run on each commit to ensure there are no code quality issues.

2) or1k-tests — the or1k-tests test suite is run against each pipeline to check most major instructions, exception handling, caching, timers, interrupts and other features.

My main work was to use Librecores-CI docker image in mor1kx Travis CI Flow as the flow includes installation of many EDA tools that had already been included in Librecores-CI base image such as :

2Icarus Verilog

Implementation Details

In general, Docker containers are ephemeral, running just as long as it takes for the command issued in the container to complete. By default, any data created inside the container is only available from within the container and only while the container is running.

And so I created and used docker concept of volumes to persist data of in librecores-ci container. This approach let mor1kx tests to run within the environment of librecores-ci. I also worked on implementing parallel execution of tests in my newly created changes that use Librecores CI docker image. I used environment variables and travis stages to implement parallel execution :

1docker run — rm -v $(pwd):/src -e “JOB=$JOB” -e “SIM=$SIM” -e “PIPELINE=$PIPELINE” -e “EXPECTED_FAILURES=$EXPECTED_FAILURES” -e “EXTRA_CORE_ARGS=$EXTRA_CORE_ARGS” librecores/librecores-ci /src/.travis/

I also modified and updated Librecores CI docker image for its compatibility with mor1kx project

Pull Request Merged :

1) Run tests inside librecores CI docker image

2) Updating the Librecores CI Docker image for Compatibility with mor1kx

Whats Next?

Next, I intend to modify Travis CI Flow of or1k_marocchino core to use Librecores-CI image and also creating Jenkinsfile for Librecores-CI in mor1kx that uses the same flow as in Travis.

More articles from Nancy Chauhan

My Summer with Librecores CI

This year I have got the opportunity to work with Fossi Foundation as a Google Summer of Code Student Developer 2019.

May 10th, 2019 · 2 min read

My Journey with Aavesh

Aavesh is a Technical Society of Electronics and Communication Engineering Department of Indian Institute of Information Technology Una. It was founded in January 2019.

May 9th, 2019 · 1 min read
© 2018–2020 Nancy Chauhan
Link to $ to $ to $ to $ to $