OpenCores
Issue List
i2c_slave_model is not a synthesizable code #30
Closed jerry_hsu opened this issue over 13 years ago
jerry_hsu commented over 13 years ago

In the tilte of ./bench/verilog/i2c_slave_model.v, there is a sentence

WISHBONE rev.B2 compliant synthesizable I2C Slave model

But it fail to compile using design compiler

The expression in the reset condition of the 'if' statement in this 'always' block can only be a simple identifier or its negation.

// generate statemachine
always @(negedge scl or posedge sto)
  if (sto || (sta && !d_sta) )
    begin
        state <= #1 idle; // reset statemachine

        sda_o <= #1 1'b1;
        ld    <= #1 1'b1;
    end
  else
rherveille commented over 13 years ago

The slave model is not synthesizable (anymore)

rherveille closed this over 13 years ago

Assignee
No one
Labels
Bug