fix i2c syntax error
[shakti-peripherals.git] / src / peripherals / i2c / I2C_top.bsv
index cd8bc37459a6cb62c005de9bc7e729a72ac63db0..0229502bdaa523e89bce12888a7c25719605aa39 100644 (file)
@@ -896,7 +896,8 @@ Interrupt Generation And Documentation
             interface scl_out = interface Get
               method ActionValue#(Bit#(1)) get;
                 return val_SCL;
-            endmethod
+              endmethod
+            endinterface;
             interface scl_in = interface Put
               method Action put(Bit#(1) in);
                 val_SCL_in <= in;
@@ -910,7 +911,8 @@ Interrupt Generation And Documentation
             interface sda_out = interface Get
               method ActionValue#(Bit#(1)) get;
                 return val_SDA;
-            endmethod
+              endmethod
+            endinterface;
             interface sda_in = interface Put
               method Action put(Bit#(1) in);
                 val_SDA_in <= in;