首次提交

This commit is contained in:
eesimple
2026-03-06 16:22:17 +08:00
commit b8fe9f77ec
465 changed files with 115939 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
/*
can bus physical model by leguoqing
*/
module can_transceiver
(
output logic rxd = 1,
input logic txd,
inout tri1 line
);
always@(*)
if (line == 1'b0) rxd <= 1'b0;
else rxd <= 1'b1;
logic line_reg;
always@(*)
if (txd == 0) line_reg <= 0;
else line_reg <= 1;
assign line = line_reg ? 1'bz : 0;
endmodule