ASIC Verification Engineer
Embedded and hardwarePosted over 2 months agofrom NVIDIA's own hiring page
- Work type
- HybridBengaluru, Hyderabad
- Experience
- 0–2 years
- Pay
- Not listedUsually ₹4.1–5.9 LPAEmbedded and hardware, median at 0–4 years, in India (Payscale)
- Posted
- Over 2 months agoOpen 5 months
From the ad
Degree or equivalent experience
BS or MS in Computer Science or Electronics Engineering or equivalent experience with 0-2 years of experience
Skills it mentions
Add your skills to see which ones you have.
About the job
We are looking for a Hardware and Software Developer. The role is multifaceted - SoCV testbench Infrastructure, Bare-metal boot, Silicon Bringup Tools and CPU/SOC/GPU test frameworks. It involves a detailed understanding of the nVidia CPU, GPU, SOC system and boot architectures. The tools and technologies are complex and involve code that coordinates many IPs in the overall SOC. A key part of NVIDIA's strength is our development tools and environments that enable our incredible pace of delivering new technology to the market. We are looking for a creative and hardworking engineer who is passionate about joining a dynamic & agile SoCV/Emulation Infrastructure and test-frameworks team.
What you will be doing:
The work includes building tools, infrastructure, and test frameworks used in RTL-simulations, c-simulations, Emulation, FPGA, and on Silicon.
You will understand Tegra system architecture, with a focus on all IPs in the SOC that are involved in boot and security features.
The tools that you build give Design and Verification teams the ability to access registers/memory/DMA engines and other features in their unit. The tools also enable test re-use across multiple platforms (RTL, models, Emulation, and Silicon). The gamut of tools is wide and you also develop features used for Silicon bring up (example: FUSE, ATE, Security, Flash/DMA, Board I2Cs, USB debug devices among others). We strive for the highest quality of test frameworks and tools that we deliver from this team.
You would assess and build C-model or RTL-simulation capability that allows us to simulate the features before Silicon arrival in a pre-silicon environment.
What we need to see:
BS or MS in Computer Science or Electronics Engineering or equivalent experience with 0-2 years of experience
Strong programmer who is proficient with C, C++, Python.
Understanding of SOC and System Architecture.
Understanding of How the SOC Devices like DMA, interrupt-engines, CPU, boot-devices, MMU/IOMMU function.
Operating System and Device-Driver concepts and ability to write no-OS test frameworks - i.e tests that run directly on the bare-metal SOC.
A good programmer takes pride in building scalable and maintainable software.
Understanding Hardware and/or Software development life cycle.
Way to stand out from the crowd:
Previous experience handling Silicon Bringup and in enabling Emulation/FPGA related test frameworks.
Exposure to Testbench architectures (C++ testbenches, SV/UVM based testbenches).
Verilog and System Verilog coding skills are a plus.
With competitive salaries and a generous benefits package, we are widely considered to be one of the technology world’s most desirable employers. We have some of the most brilliant and talented people in the world working for us and, due to unprecedented growth, our elite engineering teams are rapidly growing. If you're a creative and autonomous engineer with a real passion for technology, we want to hear from you! We are an equal opportunity employer and value diversity at our company. We do not discriminate on the basis of race, religion, color, national origin, gender, sexual orientation, age, marital status, veteran status, or disability status.
#LI-Hybrid
1 more opening for this job
NVIDIA posts this job once per place or skill set. Pick the one that fits you.
Interested?ASIC Verification Engineer at NVIDIA
Apply on company site (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on C++, C and Python
Interview questions for this job
For the skills the ad mentions: C++, C and Python.
Why are elementwise additions much faster in separate loops than in a combined loop?C++
Upon further analysis of this, I believe this is (at least partially) caused by the data alignment of the four-pointers. This will cause some level of cache bank/way conflicts.
If I've guessed correctly on how you are allocating your arrays, they are likely to be aligned to the page line.
This means that all your accesses in each loop will fall on the same cache way. However, Intel processors have had 8-way L1 cache associativity for a while. But in reality, the performance isn't completely uniform. Accessing 4-ways is still slower than say 2-ways.
EDIT: It does in fact look like you are allocating all the arrays separately. Usually when such large allocations are requested, the allocator will request fresh pages from the OS. Therefore, there is a high chance that large allocations will appear at the same offset from a page-boundary.
Here's the test code:
int main(){ const int n = 100000; #ifdef ALLOCATE_SEPERATE double *a1 = (double*)malloc(n * sizeof(double)); double *b1 = (double*)malloc(n * sizeof(double)); double *c1 = (double*)malloc(n * sizeof(double)); double *d1 = (double*)malloc(n * sizeof(double)); #else double *a1 = (double*)malloc(n * sizeof(double) * 4); double *b1 = a1 + n; double *c1 = b1 + n; double *d1 = c1 + n; #endif // Zero the data to prevent any chance of denormals. memset(a1,0,n * sizeof(double)); memset(b1,0,n * sizeof(double)); memset(c1,0,n * sizeof(double)); memset(d1,0,n * sizeof(double)); // Print the addresses cout << a1 << endl; cout << b1 << endl; cout << c1 << endl; cout << d1 << endl; clock_t start = clock(); int c = 0; while (c++ < 10000){ #if ONE_LOOP for(int j=0;j<n;j++){ a1[j] += b1[j]; c1[j] += d1[j]; } #else for(int j=0;j<n;j++){ a1[j] += b1[j]; } for(int j=0;j<n;j++){ c1[j] += d1[j]; } #endif } clock_t end = clock(); cout << "seconds = " << (double)(end - start) / CLOCKS_PER_SEC << endl; system("pause"); return 0; }Benchmark Results:
EDIT: Results on an actual Core 2 architecture machine:
2 x Intel Xeon X5482 Harpertown @ 3.2 GHz:
#define ALLOCATE_SEPERATE #define ONE_LOOP 00600020 006D0020 007A0020 00870020 seconds = 6.206 #define ALLOCATE_SEPERATE //#define ONE_LOOP 005E0020 006B0020 00780020 00850020 seconds = 2.116 //#define ALLOCATE_SEPERATE #define ONE_LOOP 00570020 00633520 006F6A20 007B9F20 seconds = 1.894 //#define ALLOCATE_SEPERATE //#define ONE_LOOP 008C0020 00983520 00A46A20 00B09F20 seconds = 1.993Observations:
6.206 seconds with one loop and 2.116 seconds with two loops. This reproduces the OP's results exactly.
In the first two tests, the arrays are allocated separately. You'll notice that they all have the same alignment relative to the page.
In the second two tests, the arrays are packed together to break that alignment. Here you'll notice both loops are faster. Furthermore, the second (double) loop is now the slower one as you would normally expect.
As @Stephen Cannon points out in the comments, there is a very likely possibility that this alignment causes false aliasing in the load/store units or the cache. I Googled around for this and found that Intel actually has a hardware counter for partial address aliasing stalls:
5 Regions - Explanations
Region 1:
This one is easy. The dataset is so small that the performance is dominated by overhead like looping and branching.
Region 2:
Read the rest at the sourceFrom Stack Overflow: asked by Johannes Gerer, answered by Mysticial (CC BY-SA 4.0)
What does "static" mean in C?C
Usually, you will see the
statickeyword in these places:- A static variable inside a function keeps its value between invocations.
- A static global variable or function is "seen" only in the file in which it's declared.
(1) is the more foreign topic if you're a newbie, so here's an example:
#include <stdio.h> void foo() { int a = 10; static int sa = 10; a += 5; sa += 5; printf("a = %d, sa = %d\n", a, sa); } int main() { int i; for (i = 0; i < 10; ++i) foo(); }This prints:
a = 15, sa = 15 a = 15, sa = 20 a = 15, sa = 25 a = 15, sa = 30 a = 15, sa = 35 a = 15, sa = 40 a = 15, sa = 45 a = 15, sa = 50 a = 15, sa = 55 a = 15, sa = 60This is useful for cases where a function needs to keep some state between invocations, and you don't want to use global variables. Beware, however, this feature should be used very sparingly - it makes your code not thread-safe and harder to understand.
(2) is used widely as an "access control" feature. If you have a .c file implementing some functionality, it usually exposes only a few "public" functions to users. The rest of its functions should be made
static, so that the user won't be able to access them. This is encapsulation, a good practice.Quoting Wikipedia:
In the C programming language,
staticis used with global variables and functions to set their scope to the containing file. In local variables,staticis used to store the variable in the statically allocated memory instead of the automatically allocated memory. While the language does not dictate the implementation of either type of memory, statically allocated memory is typically reserved in data segment of the program at compile time, while the automatically allocated memory is normally implemented as a transient call stack.See here and here for more details.
And to answer your second question, it's not like in C#.
In C++, however,
staticis also used to define class attributes (shared between all objects of the same class) and methods. In C there are no classes, so this feature is irrelevant.Additionally, in C,
staticcan be used in array declarators to specify minimum size of the array (non-function array declarators cannot use this keyword). Consider this declaration:void func(int foo[static 42]);The function
func()takes an array of at least 42 elements.Note that C++ does not support this use of the
statickeyword.From Stack Overflow: asked by David, answered by Eli Bendersky (CC BY-SA 4.0)
What is the difference between __str__ and __repr__?Python
Alex Martelli summarized well but, surprisingly, was too succinct.
First, let me reiterate the main points in Alex’s post:
- The default implementation is useless (it’s hard to think of one which wouldn’t be, but yeah)
__repr__goal is to be unambiguous__str__goal is to be readable- Container’s
__str__uses contained objects’__repr__
Default implementation is useless
This is mostly a surprise because Python’s defaults tend to be fairly useful. However, in this case, having a default for
__repr__which would act like:return "%s(%r)" % (self.__class__, self.__dict__)Or in new f-string formatting:
return f"{self.__class__!s}({self.__dict__!r})"would have been too dangerous (for example, too easy to get into infinite recursion if objects reference each other). So Python cops out. Note that there is one default which is true: if
__repr__is defined, and__str__is not, the object will behave as though__str__=__repr__.This means, in simple terms: almost every object you implement should have a functional
__repr__that’s usable for understanding the object. Implementing__str__is optional: do that if you need a “pretty print” functionality (for example, used by a report generator).The goal of
__repr__is to be unambiguousLet me come right out and say it — I do not believe in debuggers. I don’t really know how to use any debugger, and have never used one seriously. Furthermore, I believe that the big fault in debuggers is their basic nature — most failures I debug happened a long long time ago, in a galaxy far far away. This means that I do believe, with religious fervor, in logging. Logging is the lifeblood of any decent fire-and-forget server system. Python makes it easy to log: with maybe some project specific wrappers, all you need is a
log(INFO, "I am in the weird function and a is", a, "and b is", b, "but I got a null C — using default", default_c)But you have to do the last step — make sure every object you implement has a useful repr, so code like that can just work. This is why the “eval” thing comes up: if you have enough information so
eval(repr(c))==c, that means you know everything there is to know aboutc. If that’s easy enough, at least in a fuzzy way, do it. If not, make sure you have enough information aboutcanyway. I usually use an eval-like format:"MyClass(this=%r,that=%r)" % (self.this,self.that). It does not mean that you can actually construct MyClass, or that those are the right constructor arguments — but it is a useful form to express “this is everything you need to know about this instance”.Note: I used
%rabove, not%s. You always want to userepr()[or%rformatting character, equivalently] inside__repr__implementation, or you’re defeating the goal of repr. You want to be able to differentiateMyClass(3)andMyClass("3").The goal of
__str__is to be readableSpecifically, it is not intended to be unambiguous — notice that
str(3)==str("3"). Likewise, if you implement an IP abstraction, having the str of it look like 192.168.1.1 is just fine. When implementing a date/time abstraction, the str can be "2010/4/12 15:35:22", etc. The goal is to represent it in a way that a user, not a programmer, would want to read it. Chop off useless digits, pretend to be some other class — as long is it supports readability, it is an improvement.Container’s
__str__uses contained objects’__repr__This seems surprising, doesn’t it? It is a little, but how readable would it be if it used their
__str__?[moshe is, 3, hello world, this is a list, oh I don't know, containing just 4 elements]Read the rest at the sourceFrom Stack Overflow: asked by Casebash, answered by moshez (CC BY-SA 4.0)
What does the explicit keyword mean?C++
The compiler is allowed to make one implicit conversion to resolve the parameters to a function. This means that the compiler can use constructors callable with a single parameter to convert from one type to another in order to get the right type for a parameter.
Here's an example with converting constructors that shows how it works:
struct Foo { // Single parameter constructor, can be used as an implicit conversion. // Such a constructor is called "converting constructor". Foo(int x) {} }; struct Faz { // Also a converting constructor. Faz(Foo foo) {} }; // The parameter is of type Foo, not of type int, so it looks like // we have to pass a Foo. void bar(Foo foo) {}; int main() { // However, the converting constructor allows us to pass an int. bar(42); // Also allowed thanks to the converting constructor. Foo foo = 42; // Error! This would require two conversions (int -> Foo -> Faz). Faz faz = 42; }Prefixing the
explicitkeyword to the constructor prevents the compiler from using that constructor for implicit conversions. Adding it to the above class will create a compiler error at the function callbar(42). It is now necessary to call for conversion explicitly withbar(Foo(42))The reason you might want to do this is to avoid accidental construction that can hide bugs.
Contrived example:- You have a
MyStringclass with a constructor that constructs a string of the given size. You have a functionprint(const MyString&)(as well as an overloadprint (char *string)), and you callprint(3)(when you actually intended to callprint("3")). You expect it to print "3", but it prints an empty string of length 3 instead.
From Stack Overflow: asked by Skizz, answered by Skizz (CC BY-SA 4.0)
- You have a
What is ':-!!' in C?C
This is, in effect, a way to check whether the expression e can be evaluated to be 0, and if not, to fail the build.
The macro is somewhat misnamed; it should be something more like
BUILD_BUG_OR_ZERO, rather than...ON_ZERO. (There have been occasional discussions about whether this is a confusing name.)You should read the expression like this:
sizeof(struct { int: -!!(e); }))(e): Compute expressione.!!(e): Logically negate twice:0ife == 0; otherwise1.-!!(e): Numerically negate the expression from step 2:0if it was0; otherwise-1.struct{int: -!!(0);} --> struct{int: 0;}: If it was zero, then we declare a struct with an anonymous integer bitfield that has width zero. Everything is fine and we proceed as normal.struct{int: -!!(1);} --> struct{int: -1;}: On the other hand, if it isn't zero, then it will be some negative number. Declaring any bitfield with negative width is a compilation error.
So we'll either wind up with a bitfield that has width 0 in a struct, which is fine, or a bitfield with negative width, which is a compilation error. Then we take
sizeofthat field, so we get asize_twith the appropriate width (which will be zero in the case whereeis zero).Some people have asked: Why not just use an
assert?keithmo's answer here has a good response:
These macros implement a compile-time test, while assert() is a run-time test.
Exactly right. You don't want to detect problems in your kernel at runtime that could have been caught earlier! It's a critical piece of the operating system. To whatever extent problems can be detected at compile time, so much the better.
From Stack Overflow: asked by chmurli, answered by John Feminella (CC BY-SA 3.0)
What do you do in your spare time?Behavioural
Employers will want to get to know you and may ask things like:
- what do you do in your spare time?
- what are your hobbies and interests?
Show what kind of personal qualities, interests and skills you have. For example, you could talk about:
- cooking - to show you're organised and can follow instructions
- travel - to show you're adventurous and flexible
- team sports - to show you're a team player with good communication
- music - to show you're creative
If the job requires certain skills, you should demonstrate these in your examples.
ExampleIf it's a graphic designer role, you could talk about taking a desktop publishing course.
From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Hardware Design EngineerBosch Group, Bengaluru, on-siteYesterday
- Founding Chief Operating Officer (COO), RoboticsWeekday, Bengaluru, on-site2 days ago
- ASIC Physical Design Engineer - 4 to 9 YearsCisco, Bengaluru, on-site2 days ago
- ASIC Verification EngineerHewlett Packard Enterprise, Bengaluru, on-site2 days ago
More like this: Embedded and hardware jobs in Bengaluru (605), Jobs in Bengaluru (10,735) and Embedded and hardware jobs in India (973)




