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

Subversion Repositories instruction_list_pipelined_processor_with_peripherals

[/] [instruction_list_pipelined_processor_with_peripherals/] [trunk/] [hdl/] [bitNegator.v] - Blame information for rev 8

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 maheshpalv
 
2
`include "timescale.v"
3
`include "defines.v"
4
 
5
module bitNegator (bitIn, bitN, bitOut);
6
 
7
        input bitIn, bitN;
8
        output bitOut;
9
 
10
        reg bitOut;
11
 
12
 
13
        always @ (bitIn or bitN)
14
        begin
15
 
16
                if (bitN)
17
                begin
18
                        bitOut = ~ bitIn;
19
                end
20
                else
21
                begin
22
                        bitOut = bitIn;
23
                end
24
 
25
        end
26
 
27
endmodule

powered by: WebSVN 2.1.0

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