
Scaling Silicon Innovation: Reflections on AI in Design Verification from my recent talks!

Design Automation Conference 2023 (60DAC) at San Francisco - Lets meet, share, learn and network!
Its an honor and privilege to share that I will be chairing Front End Design session at 60DAC at San Francisco. Are you attending 60DAC? Let’s meet, share, learn and network. Details at LinkedIn post here
Front Design Session for which I have given an opportunity to Chair @DAC
https://60dac.conference-program.com/session/?sess=sess189
Check out my last years DAC visit details here
The Design Automation Conference (DAC) is recognized as the premier conference for design and automation of electronic systems. The conference is devoted to Electronic Design Automation (EDA), Intellectual Property (IP), Embedded Systems and Software (ESS), IoT, Automotive Systems, Artificial Intelligence and Machine Learning (AI/ML), Security and Design on Cloud.
The 2023 Design Automation Conference (DAC 2023) will be held July 9–13 in San Francisco, CA, at the Moscone Center West.
If you are visiting DAC this year, lets stay in touch, I will be happy to meet, share and learn. Stay tuned for more details!
Thanks,
Semiconductor Ecosystem at a glance!
We all know semiconductor is the next growth story. we also seeing digital transformation of everything and in all industries, whether it is IOT (Internet of Things), AI (Artificial Intelligent), ML (Machine Learning), Automotive, Medical, Defense, 5G/6G, Networking, Cloud Computation or any retail business, Digital transformation is everywhere!
Here, I have tried putting things together to understand the Semiconductor Eco System in simple pictorial view below.
Copyright ©
2023 ASIC With Ankit @ www.asicwithankit.com
A companies which only manufactures chips design received from fabless and IDM companies. So basically Foundry companies do not design and develop chips, they only manufactures chips. Instead of producing their own products they mostly take orders from fabless companies and manufactures chips for them. Producing semiconductor chips requires billions of dollar of investments and extremely complex production technologies, so its difficult for every semiconductor companies to do it on their own. So basically, foundries becomes the production facility for all these fabless companies.
4. OSAT (Outsourced Semiconductor Assembly and Testing):
These companies are also called as Assembly or test packaging companies. Basically, it takes care of backend processes. In semiconductor industry backend processes are assembly and testing. Foundry manufactures the chips in to wafers but these chips can not exchange electric signals. Packaging are the process in which these chips are individually cut and packed to go in to devices. Now its time to check the quality of packed chips. So basically, OSAT companies are doing packaging and testing to make sure chips are working as expected and ready for end user.
How to Randomize non-random variable in System Verilog
System Verilog is industry adopted very popular hardware descriptive language, most of the companies in industry have been using this language for complex SOC, ASIC design and verification.
System verilog has various ways you can randomize values and fields to generate random stimulus for complex system verification. Randomizing variables and fields which are declared as rand are easy to randomize with or without constraints. In system verilog you can just do object.randomize() and all variables and fields declared as rand will gets random values during the simulation.
There could be different situation where one require to know how to generate random values for variables which are not declared as rand? The answer is scope randomize function (std::randomize())
std::randomize() is a scope randomize function that enables users to randomize data in the current scope. This method is also very useful if some variables required to be randomized are not part of a class.
Lets understand this with simple example:
module my_module;
bit [15:0] address;
bit [31:0] data;
function bit my_test ();
bit pass;
bit read_write;
pass = std::randomize(address, data, read_write);
return read_write;
endfunction
endmodule
In this example, if you notice, we are using all these variables for scope randomize function. When you run this type of code usage, it std::randomize function will randomize all variables in its scope to generate random values without needing to use .randomize() method.
Now that we learn to randomize variable which are not rand in nature, you might have question what about constraints? How should we write constraints in this method. Good news is, you can. You can provide your constrains using "with" something like below:
pass = std::randomize(address, data, read_write) with {read_write -> address > 'h000F ;};
Hope you find this information useful. Stay tuned for more interesting stuffs about verification!
My visit to DAC2022 at San Francisco!
The Design Automation Conference (DAC) is recognized as the premier conference for design and automation of electronic systems. The conference is devoted to Electronic Design Automation (EDA), Intellectual Property (IP), Embedded Systems and Software (ESS), IoT, Automotive Systems, Artificial Intelligence and Machine Learning (AI/ML), Security and Design on Cloud.
This year, DAC focused a lot on Machine/Deep learning & AI techniques, EDA on cloud and security verification. It was an honor and privilege to share that I will be chairing Front End Design session at 59DAC at San Francisco. Are you attending 59DAC?
As demand for more application-specific chips increasing, the EDA community is relying on ML techniques. ML was discussed at the silicon level, where the industry is looking forward to developing more and more ML and neural networking processors and also discussed about using ML to optimize various aspects of the life cycle of semiconductor engineering.
Many technical presentations and tech talks also covered the ML, There were panels to discuss how ML and AI could be used in design verification and implementation domains.
Security verification was one of the key topic for which I was given opportunity to chair the session. Great presentation from different companies and university. Session topic was "New Developments in security verification and controlling unpredictable behavior" For details on this session click here & here
Design Automation Conference 2022 (59DAC) at San Francisco - Lets meet, share, learn and network!
Its an honor and privilege to share that I will be chairing Front End Design session at 59DAC at San Francisco. Are you attending 59DAC? Let’s meet, share, learn and network. Details at LinkedIn post here
Front Design Session for which I have given an opportunity to Chair @DAC
The Design Automation Conference (DAC) is recognized as the premier conference for design and automation of electronic systems. The conference is devoted to Electronic Design Automation (EDA), Intellectual Property (IP), Embedded Systems and Software (ESS), IoT, Automotive Systems, Artificial Intelligence and Machine Learning (AI/ML), Security and Design on Cloud.
The 2022 Design Automation Conference (DAC 2022) will be held
July 10–14 in San Francisco, CA, at the Moscone Center West.
If you are visiting DAC this year, please send me an email, I will be happy to meet, share and learn. Stay tuned for more details!
Thanks,
System Verilog "ref" is a nice reference instead of "value"

To begin, lets understand basic concept for pass by value vs pass by reference. In verilog, method arguments takes as pass by value (this is default). The inputs are copied when the method is called and the outputs are assigned to relevant outputs when exiting the method.
In system verilog, methods can also have "pass by reference". In this case, arguments passed by reference are not copied into subroutine area instead, a reference to the original arguments are passed to subroutine. In this case subroutines can access the arguments data via reference.
This is very efficient way of passing arguments like class objects or arrays of objects. Scenario like these where you are dealing with class objects and arrays of objects, if you use pass by value it would create a consume lot of memory on the stack because it has to copy the values and then use it for subroutine. Another advantage of using pass by reference is, since the caller and the function/tasks shares the same reference, any change done inside function using reference would also be visible to the caller.
Example:
function automatic int my_crc (ref byte data [10:1]);
for (int j =1; j<=10; j++) begin
my_crc ^= data[j];
end
endfunction
In this example, you can see data is declared with "ref" meaning, each call to CRC in for loop, my_crc function does to need to create a copy of the data on stack memory. Memory would have been consumed more if you would not use "ref" and use it as pass by value (because in that case as mentioned, every time my_crc function calls, it would need to create a copy on stack memory)
Now, an obvious question!
What if user wants to make sure that the ref argument is not modified by the function?
Answer to this question is "const ref"!! We need to use const key word if you want to make sure that ref argument is not modified by the function.
For same example:
Same function "my_crc" the argument can be declared as "const ref" to make sure the original data contents are not modified accidently by my_crc function. Very very useful feature to understand in the case where you want to make sure engineers don't modified original content accidently.
function automatic int my_crc (const ref byte data [10:1]);
for (int j =1; j<=10; j++) begin
my_crc ^= data[j];
end
endfunction
Now another obvious question!
Do we need to declare each arguments as "ref" if you have more than one argument in your task/function.
Answer is "NO".
For example:
task my_task (ref int data[10], bit a, b)
In declaration like this, one needs to clearly understand each arguments to function/task can have direction which can be input, output or inout or ref. If no direction specified the default value of inputs are selected. If one argument is specifies the direction then all following arguments hold on to the same direction unless explicitly changed.
In above example, my_task, first argument is specifies "ref" direction and following variables does not explicitly specifies direction, a and b would be considered as pass by reference.
Hope this clears out some basic understanding of pass by value vs reference.
Thanks,
ASIC With Ankit on AMIQ and testbench.in's recommended list of blogs
Thank you AMIQ and Testbench.in for having ASIC With Ankit on recommended list of blogs.
System Verilog Array Randomization
System Verilog has different types of arrays that you can randomize to generate interesting scenario for the test bench you are working on. In SV we mainly have static array ,dynamic array and also queues that you can randomize, Lets deep dive in to each one of them to understand how you can use it with system Verilog:
Static Arrays:
class my_static_array;
rand bit [3.0] my_array [8];
endclass
module my_testbench;
my_static_array my_static_array_obj;
initial begin
my_static_array_obj = new ();
my_static_array_obj.randomize();
$display (“my randomize value =%p”,
my_static_array_obj.my_array);
end
endmodule
In above example, we have my_array declared as static array
which is declared as rand so that you array will be randomize when you do class
object.randomize in your module to generate random value for our static array,
You can play around with this example by changing different seed to how it
changes the random value w.r.t to different seed.
Dynamic Array:
As we know, Dynamic arrays are the array for which size will
not be pre-determined during the declaration. Dynamic array declaration will
have square bracket [ ]. Lest deep dive in to example to better understand its
declaration and how you can randomize it:
class my_dynamic_array;
rand bit [7:0] my_array [] //dynamic array
//Adding some constraint to this array so we can constraint
array during randomization
constraint c1 {my_array.size >2 ; my_array_size <=10;}
//Constraint each array index value to be equal to index+1
constraint c2 {foreach (my_array[i])
my_array[i] = i+1;
}
function void print_value ();
foreach (my_array[i])
$display(“my array value
my_array[%0d] = 0x%0h”, i, my_array[i] );
endfunction
endclass
module my_testbench;
my_dynamic_array my_dynamic_array_obj;
initial begin
my_dynamic_array_obj = new(); //create a
memory for the class object
my_dynamic_array_obj.randomize();
//randomize class with constraint provided
my_dynamic_array_obj.print_value (); //calling
function from class to print array value
end
endmodule
Try this example and play around by changing constraint for
index value, array size and seed to see how it changes the value to create
corner scenario.
Queue randomization
We can have a queue declared as rand and then later in test
bench you can randomize the queue to create a random value generate from the
queue elements, We can constraint and limit the queue size in the constraints.
Lets deep dive in to the example to better understand declaration of the queue,
how you can limit and constraint the size of the queue and how you can randomize
the queue to generate random behavior for your test bench:
class my_queue_c;
rand bit [3:0] my_queue [$] // Queue declaration with rand
to randomize it later
//constraint to limit the size of the queue
constraint c1 {my_queue.size() == 5;}
endclass
module my_testbench;
my_queue_c my_queue_c_obj;
initial begin
my_queue_c_obj = new ();
my_queue_c_obj.randomize ();
//Print values
$display(“my queue value =%p”,
my_queue_c_obj.my_queue);
end
endmodule
Try this example and play around by changing constraint to
change size of the queue and seed to see how it changes the value to create
corner scenario.
Hope, this is useful simple example to understand
randomization of arrays. Stay tuned for more simple but exciting post to learn
System Verilog.
Keep reading and keep learning, stay tuned for more simple but exciting learning posts
Future of 5G looks bright!
Dear Readers,
Hope everyone are doing great, staying safe and healthy in this challenging time! The whole world these days are covered with unexpected challenge, we are all in this together and will come out from this together. We are strong together. First of all I would like to express Thanks from bottom of my heart to all the Doctors, Nurses and medical staffs, Paramedics, Police officers, Home care workers, grocery store personnel, Delivery people, transit workers, Airline worker and anyone who works with the public and making everyone's life moving.
We all understand the typical and challenging situation around and we are together fighting strongly against and will come out from this too! We are together moving ahead with the new technologies like, IoT, Automotive, Artificial Intelligence, 5G networking, WiFi-6, Robotics, Health Care, Smart Cities, Connected Cars and many more technologies and applications. These days pretty much everything is very well accessed and in our palm through smart phones, internet and with 4G, LTE and 5G technology.
As 5G technologies have been continuously evolving, it will certainly change the way we spend our lives, our communications will be faster than you can imagine, When you imagine a future powered by 5G, connected factory devices that “talk” to each other, mobile internet-connected to multiple devices at the same time, different vehicles communicating with the roads they travel on, and accessibility of information at unprecedented speeds will come to mind.
Lot of companies are actively and aggressively working towards making 5G technology available for the world to connect quicker and faster. Once 5G is fully operational, there will no need for any kind of cable or wire to deliver entertainment or communications service to your mobile device, some companies have successfully introduced 5G-capable handsets, it might require more time for the proper availability of 5G. But it is expected that the maximum number of 5G connections would exist in the years to come. 5G is the future!!
Thanks,
ASIC With Ankit
System Verilog Assertions (SVA) – Types, Usage, Advantages and Important Guidelines!
There was an article published by SmartPlay Technologies back in 2015 when I was working with them. It has very useful information to understand the usage, advantages, and guidelines about System Verilog Assertions (SVA).
ASICs continue to grow in size and complexities and in this case, traditional verification techniques are not sufficient to achieve verification confidence. In complex designs, debugging simulations is an ever-increasing challenge. To address these challenges assertion-based verification is found. Design and Verification engineers can place assertions in design or bind to design which will be useful to monitor, report and take action when incorrect behavior is detected. Assertions are playing a major role in test bench development which helps to achieve maximum confidence on bug-free design. Moreover, it can be used in simulations as well as in formal verification. It enables engineers to leverage the strength for block level, subsystem level and for chip level verification in order to reduce the overall effort and efficient verification closure. System Verilog Assertions are setting up a viable and effective standard in design and verification. An assertion adds an advantage in the debugging process and makes complex simulation debug easy.
The introduction of SVA added the ability to perform immediate and concurrent assertions for Design as well as for Verification. Assertions are used to validate design whether it is working correctly or not. Assertions can be useful to make sure ‘How good is the test case?’ Furthermore, it provides a means to measure the quality of the verification process through the creation of coverage using cover property feature of System Verilog assertion.
Questions are
1. What type of System Verilog Assertions we have?
2. Where to put these assertions in our test bench development?
3. How to implement these assertions?
4. Usage, Advantage
5. What are the important Guidelines for SVA implementation?
To find more details please read this blog post "System Verilog Assertions (SVA) Types, Usage Advantages and Important Guidelines"
Thanks,
Ankit

.jpeg)











