mirror of
https://github.com/annoyatron255/yosys4gal.git
synced 2024-12-23 02:52:24 +00:00
23 lines
347 B
Coq
23 lines
347 B
Coq
|
module wrapper (
|
||
|
input wire clk,
|
||
|
input wire [5:0] in,
|
||
|
output wire [4:0] out
|
||
|
);
|
||
|
|
||
|
wire [7:0] in_int;
|
||
|
wire [7:0] io_int;
|
||
|
wire oe_n;
|
||
|
|
||
|
assign oe_n = 0;
|
||
|
assign in_int = {3'b0, in};
|
||
|
assign out = {io_int[3], io_int[4], io_int[5], io_int[6], io_int[7]};
|
||
|
|
||
|
GAL16V8_reg GAL16V8_reg_inst (
|
||
|
.clk(clk),
|
||
|
.in(in_int),
|
||
|
.oe_n(oe_n),
|
||
|
.io(io_int)
|
||
|
);
|
||
|
|
||
|
endmodule
|