OpenCores
URL https://opencores.org/ocsvn/cdc_ufifo/cdc_ufifo/trunk

Subversion Repositories cdc_ufifo

[/] [cdc_ufifo/] [trunk/] [gray2bin.v] - Rev 2

Compare with Previous | Blame | View Log

module gray2bin (bin, gray);
 
parameter lpm_size = 4;
 
output [lpm_size-1:0] bin;
input [lpm_size-1:0] gray;
reg [lpm_size-1:0] bin;
 
integer i;
always @(gray)
    for (i=0; i<lpm_size; i=i+1)
        bin[i] = ^(gray>>i);
endmodule

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.