The system variable $time returns the current simulation time as a 64-bit integer. This comes handy when looking at the data ( if that is not in graph). Notice that we have introduced a system variable $time as one of the parameters in the $monitor statement. So here goes the test bench.Īs usual we will compile the program with following commands We will now add a test bench to confirm that the result is as expected. Notice how the vector array is formed using the curly bracket, which is A in this case forms the LSB. In this way it is possible in this case to assign the result of the adder to two bit vector. The important statement to note is the assignment statementĪn left side of the assignemnt statement can contain a concatenation of scalar or vector.
0 Comments
Leave a Reply. |