File size: 375 Bytes
8dc19e4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | // Hex inverter
module ttl_7404 #(parameter BLOCKS = 6, DELAY_RISE = 0, DELAY_FALL = 0)
(
input [BLOCKS-1:0] A,
output [BLOCKS-1:0] Y
);
//------------------------------------------------//
reg [BLOCKS-1:0] computed;
always @(*)
begin
computed = ~A;
end
//------------------------------------------------//
assign #(DELAY_RISE, DELAY_FALL) Y = computed;
endmodule
|