python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Constrain total number of array elements less than predetermined value
I'm trying to create an array with a constraint on the total number of array elements less than given value. For example, I want to generate a random array where the total number of elements less than...
mdems
Votes: 0
Answers: 2
Clarification on uses of posedge in "if"
I'm trying my hand at teaching myself some Verilog. I'm trying to make a mod-10 counter that iterates every second or so. The code I'm trying to modify is some I found on an old forum.
I've tried to u...

Tesla047
Votes: 0
Answers: 1
Modulating a signal on-off at 10kHz
I have written the code for the input clk = 10MHz and output_clk = 5MHz. I want to modulate the output_clk on-off at 10kHz as shown in the example signal. But, my current code only modifies the output...

Pressing_Keys_24_7
Votes: 0
Answers: 1
Verilog - Assign an output that lasts more than 1 clock cycle
I have designed a simple sequence detector that works, but I am wondering how I can edit it so that the valid_password outputs as high for 3 clock cycles regardless of input changes.
Here is what I've...
NotAProgrammer
Votes: 0
Answers: 1