1
0
mirror of https://github.com/myhdl/myhdl.git synced 2025-01-24 21:52:56 +08:00

10 lines
150 B
Coq
Raw Permalink Normal View History

2003-04-24 11:04:01 +00:00
module bin2gray(B, G);
parameter width = 8;
input [width-1:0] B;
output [width-1:0] G;
2016-05-22 14:01:58 +02:00
assign G = (B >> 1) ^ B;
2003-04-24 11:04:01 +00:00
endmodule // bin2gray