decode.v

来自「arm10-behavioral的行为仿真代码verilogHDL」· Verilog 代码 · 共 42 行

V
42
字号
`timescale 1ns/10ps/*****************************************************************************$RCSfile: decode.v,v $$Revision: 1.1 $$Author: kohlere $$Date: 2000/04/09 22:28:33 $$State: Exp $$Source: /home/lefurgy/tmp/ISC-repository/isc/hardware/ARM10/behavioral/pipelined/decode.v,v $Description: 4->16 decoder*****************************************************************************/moduledecode (in, out);input [3:0] in;output [15:0] out;reg [15:0] out;always @(in)  begin    case (in) //synopsys full_case parallel_case      4'h0: out = 16'h0001;      4'h1: out = 16'h0002;      4'h2: out = 16'h0004;      4'h3: out = 16'h0008;      4'h4: out = 16'h0010;      4'h5: out = 16'h0020;      4'h6: out = 16'h0040;      4'h7: out = 16'h0080;      4'h8: out = 16'h0100;      4'h9: out = 16'h0200;      4'hA: out = 16'h0400;      4'hB: out = 16'h0800;      4'hC: out = 16'h1000;      4'hD: out = 16'h2000;      4'hE: out = 16'h4000;      4'hF: out = 16'h8000;    endcase  endendmodule

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?