| 1 |
/* |
| 2 |
* Nothing meaningful is tested here other than compilation - a real I3C |
| 3 |
* system requires either a large state machine or an intricate connection to |
| 4 |
* the processor. |
| 5 |
*/ |
| 6 |
module top ( |
| 7 |
input clk, |
| 8 |
input key_i, |
| 9 |
input rst_i, |
| 10 |
output [`LEDS_NR-1:0] led, |
| 11 |
inout i3c |
| 12 |
); |
| 13 |
|
| 14 |
wire rst = rst_i ^ `INV_BTN; |
| 15 |
wire key = key_i ^ `INV_BTN; |
| 16 |
|
| 17 |
reg dat; |
| 18 |
always @(posedge clk) begin |
| 19 |
dat <= ~dat; |
| 20 |
end |
| 21 |
|
| 22 |
I3C_IOBUF inst( |
| 23 |
.IO(i3c), |
| 24 |
.O(led[0]), |
| 25 |
.I(dat), |
| 26 |
.MODESEL(key) |
| 27 |
); |
| 28 |
|
| 29 |
endmodule |