# \#assignment

**URL:** https://verificationacademy.com/forums/tag/assignment/6700.md

[Latest](https://verificationacademy.com/forums/latest.md) · [Categories](https://verificationacademy.com/forums/categories.md) · [Tags](https://verificationacademy.com/forums/tags.md)

---

## [Assignment rules for different width & sign](https://verificationacademy.com/forums/t/assignment-rules-for-different-width-sign/51697)

<div class="topic-metadata">

**Author:** [@bhosaleakash00](https://verificationacademy.com/forums/u/bhosaleakash00)\
**Replies:** 5\
**Last updated:** [July 1, 2026, 2:28pm UTC](https://verificationacademy.com/forums/t/assignment-rules-for-different-width-sign/51697 "2026-07-01T14:28:43Z")

</div>

Hi Moderators, I am new to SV and am currently trying to understand sign extension / zero padding in an assignment bit \[7:0\] A,B; bit signed \[7:0\] A\_S; bit \[30:0\] b; bit signed \[30:0\] s\_b; initial begin:i1 A\_S = …

---

## [Blocking or non-blocking statement (= vs. \<=)](https://verificationacademy.com/forums/t/blocking-or-non-blocking-statement-vs/42389)

<div class="topic-metadata">

**Author:** [@stefaniemcg](https://verificationacademy.com/forums/u/stefaniemcg)\
**Replies:** 8\
**Last updated:** [August 10, 2024, 11:54pm UTC](https://verificationacademy.com/forums/t/blocking-or-non-blocking-statement-vs/42389 "2024-08-10T23:54:47Z")

</div>

Should i take by defacto that: all description of combinatorial logic should use the blocking assignment: = all description of sequential logic should be using non-blocking assignments: \<= i.e. always\_comb begin a =…

---

## [Assign associating with index and element in an array](https://verificationacademy.com/forums/t/assign-associating-with-index-and-element-in-an-array/42543)

<div class="topic-metadata">

**Author:** [@zygu](https://verificationacademy.com/forums/u/zygu)\
**Replies:** 1\
**Last updated:** [October 10, 2023, 1:40am UTC](https://verificationacademy.com/forums/t/assign-associating-with-index-and-element-in-an-array/42543 "2023-10-10T01:40:24Z")

</div>

I want to assign values by system verilog .For example, given an array a = {4, 7, 5, 8, 3}, i want to assign Y = X, where X is an identifier related to the index value of array a, such as xi, and Y is an identifier relat…

---

## [Assign to interface input inside Class](https://verificationacademy.com/forums/t/assign-to-interface-input-inside-class/40528)

<div class="topic-metadata">

**Author:** [@Junior](https://verificationacademy.com/forums/u/Junior)\
**Replies:** 3\
**Last updated:** [June 14, 2022, 1:33pm UTC](https://verificationacademy.com/forums/t/assign-to-interface-input-inside-class/40528 "2022-06-14T13:33:53Z")

</div>

Hi I have an interface : interface bus\_ifc (inout\[2:0\] bus); .... and I want to assign to the bus variable in class struct temp {a,b,c} class a temp t; t.a = 1; t.b=0; t.c=0; fork begin agent.bus\_if…

---

## [D flipflop can u check the errors in code](https://verificationacademy.com/forums/t/d-flipflop-can-u-check-the-errors-in-code/38233)

<div class="topic-metadata">

**Author:** [@rakesh\_varikela](https://verificationacademy.com/forums/u/rakesh_varikela)\
**Replies:** 1\
**Last updated:** [October 16, 2020, 3:35pm UTC](https://verificationacademy.com/forums/t/d-flipflop-can-u-check-the-errors-in-code/38233 "2020-10-16T15:35:36Z")

</div>

module test (dff\_if.tb intf); initial begin fork drv(); mon(); join $finish end task drv(); repeat(10) begin @(intf.cb); intf.d\<=$random(); $display("d=%0d q=%0d",intf.q,intf.d); end endtask t…

---

## [\[SV LRM 2017\]Usage of continuous assignment delays in verification](https://verificationacademy.com/forums/t/sv-lrm-2017-usage-of-continuous-assignment-delays-in-verification/37753)

<div class="topic-metadata">

**Author:** [@juhi\_p](https://verificationacademy.com/forums/u/juhi_p)\
**Replies:** 1\
**Last updated:** [June 23, 2020, 6:36pm UTC](https://verificationacademy.com/forums/t/sv-lrm-2017-usage-of-continuous-assignment-delays-in-verification/37753 "2020-06-23T18:36:48Z")

</div>

I was going through 10.3.3 Continuous assignment delays of IEEE-2017 LRM. can someone tell me what is application of continuous assignment delay in terms of verification purpose?

---

## [For loop to assign multiple variables](https://verificationacademy.com/forums/t/for-loop-to-assign-multiple-variables/37111)

<div class="topic-metadata">

**Author:** [@sj1992](https://verificationacademy.com/forums/u/sj1992)\
**Replies:** 5\
**Last updated:** [January 31, 2020, 9:52pm UTC](https://verificationacademy.com/forums/t/for-loop-to-assign-multiple-variables/37111 "2020-01-31T21:52:44Z")

</div>

Hi, I am coding some coverpoints and I have variables like bit \[31:0\] var\_inst0; bit \[31:0\] var\_inst1; bit \[31:0\] var\_inst2; . . bit \[31:0\] var\_inst99; I have to assign these variables to RTL signals in my TB. Ex: a…

---

## [Variable "x" is driven by multiple structural drivers](https://verificationacademy.com/forums/t/variable-x-is-driven-by-multiple-structural-drivers/36482)

<div class="topic-metadata">

**Author:** [@sj1992](https://verificationacademy.com/forums/u/sj1992)\
**Replies:** 3\
**Last updated:** [September 1, 2019, 2:52am UTC](https://verificationacademy.com/forums/t/variable-x-is-driven-by-multiple-structural-drivers/36482 "2019-09-01T02:52:00Z")

</div>

Hi, I am seeing Illegal combination of drivers for the following code: output logic \[1:0\] sig1; logic \[1:0\] sig2; generate for(genvar i = 0 ; i \< 2 ; i++) begin assign sig1\[i\] = sig2\[i\]; //(sig2 is coming from some …

---

## [\[How to\] Assign integer value to unpacked array slice](https://verificationacademy.com/forums/t/how-to-assign-integer-value-to-unpacked-array-slice/35290)

<div class="topic-metadata">

**Author:** [@Fipser](https://verificationacademy.com/forums/u/Fipser)\
**Replies:** 9\
**Last updated:** [November 8, 2018, 10:25am UTC](https://verificationacademy.com/forums/t/how-to-assign-integer-value-to-unpacked-array-slice/35290 "2018-11-08T10:25:15Z")

</div>

Hi, I currently can’t help myself with the following situation where I have a random unpacked array inside a sequence item. rand logic tcode\_tx \[8:0\]; Because 3 bits of the array always need to be zero, I constrained …

---

## [Unpacked array concatenation assignment](https://verificationacademy.com/forums/t/unpacked-array-concatenation-assignment/42911)

<div class="topic-metadata">

**Author:** [@stefaniecg](https://verificationacademy.com/forums/u/stefaniecg)\
**Replies:** 6\
**Last updated:** [November 29, 2016, 7:07am UTC](https://verificationacademy.com/forums/t/unpacked-array-concatenation-assignment/42911 "2016-11-29T07:07:10Z")

</div>

Good Morning ! I’m failing to do a simple concatenation assignment to an unpacked array: parameter int c\_data\_width = 16; var logic \[c\_data\_width-1:0\] a; var logic \[c\_data\_width-1:0\] a\_z \[2:0\]; so if i do this, it w…
