Skip to main content

Questions tagged [system-verilog]

In the semiconductor and electronic design industry, SystemVerilog is a combined hardware description language and hardware verification language based on extensions to Verilog.

Filter by
Sorted by
Tagged with
0 votes
1 answer
695 views

I know that if I use s1 |=> s2 the consequent sequence expression s2 will be evaluated on the next clock tick. However, if there is no clock(combinational ...
daut's user avatar
  • 181
0 votes
1 answer
849 views

I am using Xilinx's PCIe Core, which in its latest version duplicates the AXI valid signal 22 times. This means writing something like {22{1'b1}} every time I try ...
ted's user avatar
  • 259
1 vote
2 answers
5k views

It seems that verifying a design is a more complex task than the actual design itself and takes a lot longer to carry out. We may even need to create testbench to very the original testbench that ...
quantum231's user avatar
  • 12.4k
2 votes
2 answers
101 views

I am a novice in SystemVerilog. I wish to know how to model a 8-bit signal X to attain four levels for certain ranges of time. For example,let the legal values of X be from 40 to 80(40 < X < 80) ...
envy_intelligence's user avatar
1 vote
1 answer
647 views

In "IEEE Std 1800-2012 SystemVerilog", p. 668, I find this: module mh11(output integer x); // output var integer x I wonder why it is default to 'var' but not '...
diverger's user avatar
  • 5,934
3 votes
2 answers
2k views

Just for fun, I wanted to design and simulate D-type flip-flops using only combinational logic in Verilog (or SystemVerilog). I am using using Verilator for the simulation. My initial attempt, which ...
Brent Bradburn's user avatar
0 votes
1 answer
3k views

I am trying to create an n-bit barrel shifter using the diagram in the answer to this question: https://stackoverflow.com/questions/26551049/vhdl-n-bit-barrel-shifter I've read that if the variable ...
rafafan2010's user avatar
0 votes
1 answer
3k views

I run onto a rather confusing situation where I was writing a code for a UVM monitor. This module performs these operations in order: Listen to channel (virtual interface) until intercepting one or ...
Theo's user avatar
  • 55
2 votes
1 answer
809 views

I am sometimes really confused by the abusive use of jargon in EDA/VLSI design articles and books. With no precise definitions, its upto the reader to make interpretation which is very ambiguous and ...
nurabha's user avatar
  • 907
0 votes
1 answer
142 views

Is it possible to inherit some properties from the scope that we invoke a function? A code snippet might help more to explain: ...
user2692669's user avatar
4 votes
2 answers
162 views

How can I be sure that at boot time my module won't get random values to it's control signals and write to an address* before I reset the module? *(or anything that shouldn't be done before reset) ...
user2692669's user avatar
16 votes
8 answers
18k views

Every textbook I've seen makes a big deal of the fact that testing and verification are two different concepts. Yet none of them provides a clear (or clear enough to me, at last) distinction. To ...
VHDL Addict's user avatar
-5 votes
2 answers
5k views

I am basically setting different control signals for the ALU to perform operations in verilog. But I have tried all possible ways of writing what I want but in vain, can you help me out. How should I ...
user124627's user avatar
-1 votes
1 answer
119 views

I am designing an ALU to add at state 000, I have to assign control signals for a mux, carry in, and operands so that it works. so, i wrote an if statement in the controller module, and the TA told me ...
user124627's user avatar
0 votes
3 answers
459 views

I'm implementing a radio in Verilog. the time taken for bit reversal while computing the FFT is more. it is almost equal to a symbol time (OFDM system). Can I use a FFT library in C, which can be ...
phanitej's user avatar
  • 225
2 votes
2 answers
794 views

Background and clarifications: I've never developed/written a single piece of hardware before, but I'm currently using Verilog to develop a huge project for a FPGA as my final graduation project. I'...
Daniel Carvalho's user avatar
17 votes
3 answers
87k views

What is the difference between >> and >>> in verilog/system verilog? I know that ...
daut's user avatar
  • 181
0 votes
0 answers
89 views

What's the difference between >> and >>> in Verilog/SystemVerilog? I know that ...
daut's user avatar
  • 181
0 votes
1 answer
927 views

...
SW.'s user avatar
  • 368
0 votes
2 answers
5k views

...
SW.'s user avatar
  • 368
0 votes
1 answer
10k views

What is wrong with following Verilog code where I am trying to pass a one-dimensional array? ...
SW.'s user avatar
  • 368
6 votes
2 answers
5k views

Hardware description language describes our circuit but what does Hardware Verification Language do? How does it verify the design?
sarthak's user avatar
  • 3,836
1 vote
1 answer
181 views

I have to emulate a single die roll, therefore it needs to wrap back to one at 6. `D1 and `D6 correspond to my 3-bit state ...
Kyle Calica-St's user avatar
2 votes
1 answer
3k views

In SystemVerilog I would love to instantiate modules like ...
Unreasonable Sin's user avatar
1 vote
2 answers
20k views

Please give me a simple example of a verilog code that results in combo feedback loop. Why are these feedback loops undesired in your design? How to interpret blocking vs non blocking assignments in ...
Anand's user avatar
  • 227
8 votes
3 answers
9k views

I have always read that delays declared in RTL code can never be synthesized. They are meant only for simulation purpose and modern synthesis tools will just ignore delays declarations in the code. ...
Anand's user avatar
  • 227
1 vote
1 answer
4k views

I have a very fast clock called CLOCK_50 which I would like to slow down through the use of a clock divider. The output is clock....
geft's user avatar
  • 425
3 votes
1 answer
1k views

I have written this code in system verilog to generate fifty 12-bit random numbers and write them to a file. How can I generate the random numbers in octal instead of decimal? Also, how can I make ...
priyanka's user avatar
0 votes
1 answer
5k views

Suppose I have a code written as ...
SW.'s user avatar
  • 368
1 vote
1 answer
582 views

For example if i am going to model T flip flop using D flip flop. I am not writing the whole code of T flip flop as here it is not related to my query. ...
SW.'s user avatar
  • 368
5 votes
2 answers
1k views

Now days SystemC or SystemVerilog are used for verification of complex designs, especially for things like SoC designs that are really complex. I do know that these languages bring in the OOP design ...
quantum231's user avatar
  • 12.4k
4 votes
3 answers
9k views

I have a fast clock and a switch called 'ready'. When the switch is flipped (ready goes HIGH), I would like the output pcEn to produce a pulse that lasts only for one clock cycle. pcEn will only ...
geft's user avatar
  • 425
4 votes
1 answer
899 views

I'm trying to synthesize an Altera circuit using as few logic elements as possible. Also, embedded multipliers do not count against logic elements, so I should be using them. So far the circuit looks ...
geft's user avatar
  • 425
2 votes
1 answer
45k views

I want to create an array in systemverilog which has n entries of m bits. logic [n-1:0] arr [m-1:0]; (a) Is this the right way to do it? What if I change the ...
Vaibhav Sundriyal's user avatar
3 votes
1 answer
2k views

(I have two questions for you at the end.) I'm using SystemVerilog to do various exercises (for personal edification) in Digital Design and Computer Architecture's chapter 7. I'm using Altera's ...
Software Engineer's user avatar
-1 votes
1 answer
1k views

I am trying to understand the working of Brent Kung adder, but I have not been able to. All that I see in tutorials is just the figure above for carry generation. Can anybody explain it to me with an ...
Vaibhav Sundriyal's user avatar
0 votes
2 answers
520 views

module blockingbad(input logic clk,a,b,c,output logic y); logic x; always_ff @(posedge clk) begin y=x|c; x=a&b; end endmodule For ...
Vaibhav Sundriyal's user avatar
3 votes
1 answer
4k views

I have some verilog VPI code that I'm porting to use SystemVerilog DPI, to be run in Modelsim and Verilator. In VPI, I use vpi_printf() for debugging and status information. This doesn't work when ...
pjc50's user avatar
  • 47.4k
1 vote
1 answer
19k views

After I synthesize it, the error occured like this: ...
user2020598's user avatar
2 votes
2 answers
2k views

I am a beginner in Verilog, and I am trying to design a counter. My aim is to increment the count value whenever I press the switch sw. But, I am getting a syntax ...
user30623's user avatar
0 votes
1 answer
2k views

I have three variables, x,y,z which acts as an input to my SV model. Each of the input are of 16bit length binary data and I have 500 values of them. I need to supply them as input to my module at ...
user29628's user avatar
2 votes
2 answers
5k views

I am providing input to an SPI interface. The input signal is a concatenation of several different signals. What I would like to do in simulation is have continuous concatenation of the different ...
Unreasonable Sin's user avatar
4 votes
1 answer
2k views

Some verification tools support the following System Verilog code: wire s = seq.ended; Where seq is an SVA sequence. Other tools do not support this code. Is ...
Avner Landver's user avatar
6 votes
3 answers
9k views

I have a code block (multiple files) in Systemverilog. I am using the Xilinx tool flow that does not understand SystemVerilog (an old part). Is there a tool (or a rule book) I can use to convert the ...
boffin's user avatar
  • 477
-1 votes
1 answer
4k views

I was running a test case for iverilog provided at this link and had posted a question earlier. When I tested iverilog with uart test case further, found that in uart_tb.v, we are using file uart_port....
shailendra's user avatar
3 votes
2 answers
10k views

Is something like this possible ? parameter width; wire[width-1] a_net = (width)'b0; I basically need a variable to control the width of the right hand side. I ...
Blackadder's user avatar
6 votes
2 answers
12k views

In Verilog, one can conveniently use _ anywhere in binary and hexadecimal literals. For example, 8'b0101_0011 and ...
Randomblue's user avatar
  • 11.3k
1 vote
1 answer
243 views

I learnt that SystemVerilog provides a string datatype, which allows for many string operations, such as comparison, concatenation, length, etc. Are those string operations synthesisable?
Randomblue's user avatar
  • 11.3k

1
8 9 10
11
12