Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Build with the following and no blink. Omit the -abc9 and blink.
- %.json: $(SRC) Makefile
- yosys -p "read -sv -DBADGE_VER=$(BADGE_VER) -DBADGE_V$(BADGE_VER)=1 $(SRC);\
- synth_ecp5 -abc9 -top $(PROJTOP) -json $@"
- */
- module led_blink (
- input clk,
- output [10:0] ledc
- );
- reg [28:0] led_counter = 0;
- always @( posedge clk ) begin
- led_counter <= led_counter + 1;
- end
- assign ledc[ 8 ] = !led_counter[ 23:17 ];
- endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement