The following code runs well in simulation mode but synthesis fails. Please let me know how I can get this synthesized, thanks!
Fei `timescale 1ns / 1ps module blink_led(clk, d, led); input clk; input d; output wire led;
parameter blink_freq = 2; reg [blink_freq:0] count = 0; reg [1:0] state = 0; reg [1:0] next_state = 0; assign led = !count[blink_freq];
always @(posedge clk) begin state