From 3519e040d3d906cb1e7190b37acf55e5f11e22df Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 17 Jul 2018 12:51:21 +0100 Subject: [PATCH] add i2c in connection --- src/bsv/bsv_lib/slow_peripherals.bsv | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bsv/bsv_lib/slow_peripherals.bsv b/src/bsv/bsv_lib/slow_peripherals.bsv index 80deed7..f3ea1f3 100644 --- a/src/bsv/bsv_lib/slow_peripherals.bsv +++ b/src/bsv/bsv_lib/slow_peripherals.bsv @@ -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 -- 2.30.2