⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 signext32.v

📁 是verilog做的简化mips32指令系统。 有些小问题
💻 V
字号:
`timescale 100ns/1nsmodule SignExt32(immediate,clk,Extend);	input [15:0] immediate;	input clk;	output reg [31:0] Extend;
		
	reg [31:0] temp;		always @(posedge clk)	begin		if(immediate[15]==1'b1)
		begin
			temp[31: 0]={17'b0,immediate[14:0]};
			Extend = ~temp+1;//as mentioned in Ifetch32 , 
							//we needn't to time 4 now , we offer all radix complement
		end
		else
		begin
			Extend[31:0] = {16'b0,immediate[15:0]};
		end	end	endmodule

⌨️ 快捷键说明

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