ArticleslgStudy

science

E (verification language)

E (verification language) is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand E (verification language) rather than just read about it. In short: e is a hardware verification language (HVL) which is tailored to implementing highly flexible and reusable verification testbenches. History e was first developed in 1992 in Israel by Yoav Hollander for his Specman software.

Key takeaways

  • E (verification language) belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect E (verification language) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of E (verification language) from memory before moving on to harder problems.

Reference excerpt

e is a hardware verification language (HVL) which is tailored to implementing highly flexible and reusable verification testbenches.

History e was first developed in 1992 in Israel by Yoav Hollander for his Specman software. In 1995 he founded a company, InSpec (later renamed Verisity), to commercialize the software. The product was introduced at the 1996 Design Automation Conference. Verisity has since been acquired by Cadence Design Systems.

Features Main features of e are:

Random and constrained random stimulus generation Functional coverage metric definition and collection Temporal language that can be used for writing assertions Aspect-oriented programming language with reflection capability Language is DUT-neutral in that you can use a single e testbench to verify a SystemC/C++ model, an RTL model, a gate level model, or even a DUT residing in a hardware acceleration box (using the UVM Acceleration for e Methodology) Can create highly reusable code, especially when the testbench is written following the Universal Verification Methodology (UVM) Formerly known as e Re-use Methodology (eRM) UVM e library and documentation can be downloaded here: UVM World

Language Features The e language uses an aspect-oriented programming (AOP) approach, which is an extension of the object-oriented programming approach to specifically address the needs required in functional verification. AOP is a key feature in allowing for users to easily bolt on additional functionality to existing code in a non-invasive manner. This permits easy reuse and code maintenance which is a huge benefit in the hardware world, where designs are continually being tweaked to meet market demands throughout the project lifecycle. AOP also addresses cross cutting concerns (features that cut across various sections of the code) easily by allowing users to extend either specific or all instances of a particular struct to add functionality. Users can extend several structs to add functionality related to a particular feature and bundle the extensions into a single file if desired, providing for more organized file partitioning.

Comments Executable e code is enclosed within code-segment markers <' and '>:

Example Anything outside the markers is a comment <' extend sys { // This is a comment Verilog style -- This is a comment in VHDL style post_generate() is also { out("... and everything else within the markers is executable code."); }; }; '>

Classes e also has two kinds of classes:

Dynamic classes are labeled with the keyword 'struct'. Structs are used for creating data that only exists temporarily and may be cleaned by the garbage collector. Static classes are labeled with the keyword 'unit'. Units are used for creating the permanent testbench structure. A class may contain fields, methods, ports and constraints. Fields can be of type integer, real, enum, string and even complex objects. The code segment shows a unit called 'environment_u' being instantiated within the e root 'sys'. This environment_u class contains a list of 5 packet_s objects and this packet_s class contains two fields and a method.

Example <' // This is a dynamic class with two fields struct packet_s { field0: uint (bits: 32); // This field is called 'field0' and is a // 32 bit wide unsigned integer. field1: byte; // This field is called 'field1' and is a byte. // This method is called once a packet_s object has been generated post_generate() is also { out(field0); // Printing the value of 'field0' }; };

// This is a static class with a list of five packet struct unit environment_u { my_pkt[5]: list of packet_s; };

// sys is the root for every e environment and instantiates the 'test_env' object extend sys { test_env: environment_u is instance; }; '>

Randomization In e each field is randomized by default. Field randomization can be controlled by hard constraints, soft constraints or even be turned off completely. Soft constraints are used as the default constraints, and may be automatically overridden by the test layer if a conflict occurs. Otherwise it behaves like a regular constraint.

Example <' struct my_pkt_s { destination_address: uint (bits: 48); // this field is randomized and is not constrained. data_payload : list of byte; !parity_field : uint (bits: 32); // '!' prevents the parity_field from being randomized. keep soft data_payload.size() in [64..1500]; // a soft constraint, used to provide a default randomization keep data_payload.size() not in [128..256]; // this is a hard constraint }; '>

Assertions e supports assertions with temporal expressions. A temporal expression is used at the same syntactic level as fields and methods and is thereby declarative by nature. A temporal expression describes timed behavior.

Example <' unit temporal_example_u { event a; // declaring an event 'a' event b; // declaring an event 'b' event c; // declaring an event 'c' // This assertion expects that the next cycle after event a // has been detected that event b followed by event c occurs. expect @a => {@b;@c} }; '>

Coverage e supports coverage that are grouped according to their sampled event and those groups are internally structured with items. Items can be simple items or complex items such as crossed items or transitional items.

Example unit coverage_example_u { event cov_event_e; // collecting coverage will be tied to this event

cover cov_event_e is { item a: uint (bits: 4); // this item has 16 buckets from 0 to 15 item b: bool; // this item has two buckets: TRUE and FALSE cross a, b; // this item contains a cross multiplication matrix of a and b trans b; // this item is derived of item b and has four buckets // transitioning each TRUE - FALSE combination }; };

Messaging & Reporting Messaging within e can be done with various methods.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with E (verification language)

Start with the simplest possible case. Write down what E (verification language) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to E (verification language) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about E (verification language) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of E (verification language)

In research
E (verification language) appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses E (verification language) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
E (verification language) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Hardware verification languages, so understanding it makes those chapters shorter.
In everyday life
Look for E (verification language) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “E (verification language)” →

How to study E (verification language) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what E (verification language) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain E (verification language) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is E (verification language) in simple terms?

e is a hardware verification language (HVL) which is tailored to implementing highly flexible and reusable verification testbenches. History e was first developed in 1992 in Israel by Yoav Hollander for his Specman software.

Why does E (verification language) matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study E (verification language)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on E (verification language).

Tags

  • Hardware verification languages

Keep exploring