Cadence® system design and verification solutions, integrated under our System Development Suite, provide the simulation, acceleration, emulation, and management capabilities.
System Development Suite Related Products A-Z
Cadence® digital design and signoff solutions provide a fast path to design closure and better predictability, helping you meet your power, performance, and area (PPA) targets.
Full-Flow Digital Solution Related Products A-Z
Cadence® custom, analog, and RF design solutions can help you save time by automating many routine tasks, from block-level and mixed-signal simulation to routing and library characterization.
Overview Related Products A-Z
Driving efficiency and accuracy in advanced packaging, system planning, and multi-fabric interoperability, Cadence® package implementation products deliver the automation and accuracy.
Cadence® PCB design solutions enable shorter, more predictable design cycles with greater integration of component design and system-level simulation for a constraint-driven flow.
An open IP platform for you to customize your app-driven SoC design.
Comprehensive solutions and methodologies.
Helping you meet your broader business goals.
A global customer support infrastructure with around-the-clock help.
24/7 Support - Cadence Online Support
Locate the latest software updates, service request, technical documentation, solutions and more in your personalized environment.
Cadence offers various software services for download. This page describes our offerings, including the Allegro FREE Physical Viewer.
The Cadence Academic Network helps build strong relationships between academia and industry, and promotes the proliferation of leading-edge technologies and methodologies at universities renowned for their engineering and design excellence.
Participate in CDNLive
A huge knowledge exchange platform for academia to network with industry. We are looking for academic speakers to talk about their research to the industry attendees at the Academic Track at CDNLive EMEA and Silicon Valley.
Come & Meet Us @ Events
A huge knowledge exchange platform for academia. We are looking for academic speakers to talk about their research to industry attendees.
Americas University Software Program
Join the 250+ qualified Americas member universities who have already incorporated Cadence EDA software into their classrooms and academic research projects.
EMEA University Software Program
In EMEA, Cadence works with EUROPRACTICE to ensure cost-effective availability of our extensive electronic design automation (EDA) tools for non-commercial activities.
Apply Now For Jobs
If you are a recent college graduate or a student looking for internship. Visit our exclusive job search page for interns and recent college graduate jobs.
Cadence is a Great Place to do great work
Learn more about our internship program and visit our careers page to do meaningful work and make a great impact.
Get the most out of your investment in Cadence technologies through a wide range of training offerings.
Overview All Courses Asia Pacific EMEANorth America
Instructor-led training [ILT] are live classes that are offered in our state-of-the-art classrooms at our worldwide training centers, at your site, or as a Virtual classroom.
Online Training is delivered over the web to let you proceed at your own pace, anytime and anywhere.
Exchange ideas, news, technical information, and best practices.
The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information.
It's not all about the technlogy. Here we exchange ideas on the Cadence Academic Network and other subjects of general interest.
Cadence is a leading provider of system design tools, software, IP, and services.
Get email delivery of the Cadence blog featured here
Welcome to Part 6 of Android System Verification. It's getting hard to trace back to the previous articles, so here is a complete list of links:
Part 1 Part 2 Part 3 Part 4 Part 5
Last time I showed how to create hardware stimulus and use coverage to keep track of the generated stimulus across multiple runs. Recall, that we were sending commands representing hardware stimulus to the Android device and the operations could be seen on the emulated device display, but there was no way to check the commands were being executed correctly. In order to close the loop we need a way to check that the operations are actually being performed and flag an error if they are not.
So far we have been doing everything with an unmodified Android emulator. To add the needed checking it's time to put some instrumentation into the emulator to help out. The instrumentation will communicate with Specman to close the loop. Step one is to build the emulator from source and run the new executable to make sure everything is OK. Once this is done we can work on instrumenting the emulator.
Recall from Part 1 that the emulator executable is creatively named "emulator" and is found in the tools/ directory of the Android SDK. This is the executable we want to learn how to build. Let's get started.
First, information about how to download the source code is at http://source.android.com/download
Today, I'm working on Ubuntu 9.04 so the instructions about the needed packages are easy to follow and I can get any needed packages using apt-get. We are not going to build the entire Android source tree, only the emulator, so the entire list of required tools is probably not needed. The main tool that is needed and not normally available on most Linux machines is git. Make sure you have git installed.
Android doesn't use git directly, but instead provides a script named repo to make it easier to work with git.
I installed my Android SDK at /home/jasona/android. The SDK install created the new directory /home/jasona/android/android-sdk-linux_86
To setup repo:
$ cd /home/jasona/android$ curl http://android.git.kernel.org/repo > repo ; chmod +x repo
Now create a directory to hold the source tree:
$ mkdir mydroid$ cd mydroid
The instructions from source.android.com show the -b donut option, but the eclair release is newer so let's download that one.
$ ../repo init -u git://android.git.kernel.org/platform/manifest.git -b eclair$ ../repo sync
When prompted I entered my gmail login, but I'm not sure it's needed if you are not going to submit any code, probably not.
Once the download is done we are ready to build the emulator. The main hurdle is usually the SDL library, but I found that there is a pre-built version that comes in the source tree that works well using the --sdl-config option to configure.
$ cd external/qemu$ android-configure.sh --sdl-config=../../prebuilt/linux-x86/sdl/bin/sdl-config$ make
If all of this succeeds you have a new emulator in the objs/ directory. Just to make sure we are running with the newly built emulator, I suggest putting a print statement into the emulator source code to confirm the modified emulator is actually running. To do this edit the file android/main.c. The main starts about line 1786. I added a print statement as the first line of code in main() just before the options are parsed.
printf("Warning: custom emulator\n");
Now rebuild again using make and the new emulator is ready. Save the original emulator to a new filename and copy the new emulator to the SDK tools/ directory and try it out.
$ emulator -avd verifyWarning: custom emulator
This confirms the warning appears when the emulator is run.
Next time we will start to instrument the emulator to provide the needed checking and start digging into the hardware model of the Goldfish platform to see what kind of interesting things are happening during the tests.
Thank you Jason your blog is really very helpful!