add i2c in connection
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 17 Jul 2018 11:51:21 +0000 (12:51 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 17 Jul 2018 11:51:21 +0000 (12:51 +0100)
src/bsv/bsv_lib/slow_peripherals.bsv

index 80deed7afc5e1734f3a66d5e246ecacef8669185..f3ea1f303bea1c91b49f6a90f92d5e1e3008a961 100644 (file)
@@ -284,10 +284,16 @@ package slow_peripherals;
       pinmux.peripheral_side.twi_scl_out(i2c0.out.scl_out);
       pinmux.peripheral_side.twi_scl_outen(pack(i2c0.out.scl_out_en));
     endrule
+    rule connect_i2c0_scl_in;
+      i2c0.out.scl_in(pinmux.peripheral_side.twi_scl_in);
+    endrule
     rule connect_i2c0_sda;
       pinmux.peripheral_side.twi_sda_out(i2c0.out.sda_out);
       pinmux.peripheral_side.twi_sda_outen(pack(i2c0.out.sda_out_en));
     endrule
+    rule connect_i2c0_sda_in;
+      i2c0.out.sda_in(pinmux.peripheral_side.twi_sda_in);
+    endrule
     rule connect_uart1tx;
       pinmux.peripheral_side.uart_tx(uart1.coe_rs232.sout);
     endrule