concatenation of arrays in system verilog

Thunderstromz

I wrote a code for concatenation as below:

module p2;

int n[1:2][1:3] = {2{{3{1}}}};

initial
begin
$display("val:%d",n[2][1]);
end

endmodule  

It is showing errors. Please explain?

Greg

Unpacked arrays require a '{} format. See IEEE Std 1800-2012 § 5.11 (or search for '{ in the LRM for many examples).

Therefore update your assignment to:

int n[1:2][1:3] = '{2{'{3{1}}}};

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

cross coverage of transition in functional coverage of system verilog

분류에서Dev

System Verilog VPI의 패킹 된 구조?

분류에서Dev

How to ensure a signal is high until another signal has been asserted in System Verilog

분류에서Dev

C # System.ExecutionEngineError on P / Invoke call from large arrays

분류에서Dev

시퀀스가 발생하면 System-Verilog 어설 션에서 시퀀스가 발생합니다.

분류에서Dev

sybase - simple concatenation

분류에서Dev

String initialisation and concatenation in java

분류에서Dev

Simplify CTE string concatenation?

분류에서Dev

argument concatenation in a recursive function

분류에서Dev

String concatenation in Access VBA

분류에서Dev

SQL WHERE clause with concatenation

분류에서Dev

string concatenation and apostrophe marks

분류에서Dev

Ruby on Rails String Concatenation

분류에서Dev

Powershell string concatenation of expressions

분류에서Dev

C: Concatenation of 'n' strings

분류에서Dev

concatenation to previous line in bash

분류에서Dev

Verilog ** 표기법

분류에서Dev

Parameter array in Verilog

분류에서Dev

Verilog 비교기

분류에서Dev

Verilog assignments in a sequential always

분류에서Dev

Matlab string concatenation for file creation

분류에서Dev

Keras: output of concatenation has no parameters?

분류에서Dev

Java 8 Vavr onFailure concatenation

분류에서Dev

using concatenation in getUrl during loop?

분류에서Dev

Newlines and their effect in String concatenation in Javascript

분류에서Dev

Array stacking/ concatenation error in python

분류에서Dev

Fixing "multiple drivers" errors in Verilog

분류에서Dev

What does Z in Verilog stand for?

분류에서Dev

Verilog 코딩 오류