on-internet
← Community

Getting syntax errors in Verilog

Stack Overflow ·

I'm working on my first big Verilog project and having some problems, mostly in this snippet: always @(posedge clk) begin if (ii) begin instruction_register <= bus; end end for (integer i=0; i<=3; i++) begin assign bus[i] = io ? instruction_register[i] : 1'bz; end // STEP COUNTER always @(posedge clk) begin step_counter <= step_counter+1; if (step_counter == 4) begin step_counter=0; end end I keep getting syntax errors, invalid module item errors, and invalid module instantiation errors, and I'm really not sure how to fix them. The full code can be found at https://github.com/adarmaori/SUP-1-c

Comments

Sign in or sign up to comment and upvote.

No comments yet.