Skip to content
Snippets Groups Projects
Select Git revision
  • 19891e1f603403d3f9ebc58bf15dba656f71fa0b
  • master default protected
  • gitkeep
  • dev protected
  • Issue/2449-GuidPidSlugToProjectSettings
  • Issue/2309-docs
  • Issue/2355-topLevelOrg
  • Issue/2328-noFailOnLog
  • Hotfix/2371-fixGitLabinRCV
  • Issue/2287-guestRole
  • Fix/xxxx-activateGitlab
  • Test/xxxx-enablingGitLab
  • Issue/2349-gitlabHttps
  • Issue/2259-updatePids
  • Issue/2101-gitLabResTypeUi
  • Hotfix/2202-fixNaNQuota
  • Issue/2246-quotaResoval
  • Issue/2221-projectDateCreated
  • Hotfix/2224-quotaSizeAnalytics
  • Fix/xxxx-resourceVisibility
  • Issue/2000-gitlabResourcesAPI
  • v4.4.3
  • v4.4.2
  • v4.4.1
  • v4.4.0
  • v4.3.4
  • v4.3.3
  • v4.3.2
  • v4.3.1
  • v4.3.0
  • v4.2.8
  • v4.2.7
  • v4.2.6
  • v4.2.5
  • v4.2.4
  • v4.2.3
  • v4.2.2
  • v4.2.1
  • v4.2.0
  • v4.1.1
  • v4.1.0
41 results

Project.sln

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    alu8.v 677 B
    module alu8 (input [7:0] left, right, input status_in, input [1:0] opcode, output reg status_out, output reg [7:0] result);
    
        always @(left, right, status_in, opcode) begin
            case (opcode)
                0: {status_out, result} = left + right + status_in; // opcode 0: add with carry
                1: {status_out, result} = left - right - status_in; // opcode 1: subtract with borrow
                2: {status_out, result} = {1'b0, left & right};     // opcode 2: and
                3: {status_out, result} = {1'b0, left | right};     // opcode 3: or
                default: result = 8'bX;                             // default: undefined result
            endcase
        end
    
    endmodule