Skip to content

Add missing end on initial begin in README.md#27

Open
danb123 wants to merge 1 commit into
yuri-panchul:mainfrom
danb123:patch-1
Open

Add missing end on initial begin in README.md#27
danb123 wants to merge 1 commit into
yuri-panchul:mainfrom
danb123:patch-1

Conversation

@danb123

@danb123 danb123 commented Nov 3, 2025

Copy link
Copy Markdown

No description provided.

@yuri-panchul yuri-panchul left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The absense of "end" is intentional. In most testbenches this block continues:

initial
begin
    `ifdef __ICARUS__
        // Uncomment the following line
        // to generate a VCD file and analyze it using GTKwave or Surfer

        // $dumpvars;
    `endif

    @ (negedge rst);

    repeat (100)
    begin
        // If probability is 50%, then b is always 1
        a <= $urandom_range (0, 100) < 30;
        @ (posedge clk);
    end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants