📄 fixed2int.v
字号:
//// Verilog Module dwt_final_lib.fixed2int.arch_name//// Created:// by - VLSI4.UNKNOWN (VLSI04)// at - 15:20:39 05/03/2008//// using Mentor Graphics HDL Designer(TM) 2004.1b (Build 12)//`resetall`timescale 1ns/10psmodule fixed2int(fixed_in,int_out); input [23:0] fixed_in; output [7:0] int_out; reg [7:0] int_out; always@(fixed_in) begin int_out[7] <= fixed_in[23]; if(fixed_in[23]==1'b0) begin int_out[6:0]<={3'b0,fixed_in[22:16]}; end else begin int_out[6:0]<={~(fixed_in[22:16])+1'b1}; end end// ### Please start your Verilog code here ###endmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -