mirror of
https://github.com/myhdl/myhdl.git
synced 2024-12-14 07:44:38 +08:00
15 lines
212 B
Verilog
15 lines
212 B
Verilog
module dut_bin2gray;
|
|
|
|
reg [`width-1:0] B;
|
|
wire [`width-1:0] G;
|
|
|
|
initial begin
|
|
$from_myhdl(B);
|
|
$to_myhdl(G);
|
|
end
|
|
|
|
bin2gray dut (.B(B), .G(G));
|
|
defparam dut.width = `width;
|
|
|
|
endmodule
|