CycloneIV 使用MAX7219驱动数码管

MAX7219驱动数码管的代码,C语言有大把的代码参考,实现的原理这里我就不细说了,其他博主说得很详细,但是Verilog的代码并没有很多,因此,这里我封装好了代码,仅需根据自己的需要去配置就可以

module nixie_tude(input               sys_clk  ,  //系统时钟input               sys_rst_n,  //系统复位,低电平有效input	wire	[3:0]	switch_1,input	wire	[3:0]	switch_2,input	wire	[3:0]	switch_3,input	wire	[3:0]	switch_4,input	wire	[3:0]	switch_5,input	wire	[3:0]	switch_6,input	wire	[3:0]	switch_7,input	wire	[3:0]	switch_8,output	reg	o_cs,		//片选output	reg	o_clk,		//时钟output	reg	o_din,		//数据);reg	[31:0] 		counter;		//计数器
reg	[7:0]		spi_state;		//状态标志
reg	[15:0]		data;			//数据
reg	[7:0] 		flag;			//数据标志reg [7:0] switch_1_q;
reg [7:0] switch_2_q;
reg [7:0] switch_3_q;
reg [7:0] switch_4_q;
reg [7:0] switch_5_q;
reg [7:0] switch_6_q;
reg [7:0] switch_7_q;
reg [7:0] switch_8_q;always @(posedge sys_clk or negedge sys_rst_n) beginif(!sys_rst_n)beginswitch_1_q <= 8'h00;switch_2_q <= 8'h00;switch_3_q <= 8'h00;switch_4_q <= 8'h00;switch_5_q <= 8'h00;switch_6_q <= 8'h00;switch_7_q <= 8'h00;switch_8_q <= 8'h00;endelsebegin			case(switch_1)4'h0 : switch_1_q <= 8'h7e;4'h1 : switch_1_q <= 8'h30;4'h2 : switch_1_q <= 8'h6d;4'h3 : switch_1_q <= 8'h79;4'h4 : switch_1_q <= 8'h33;4'h5 : switch_1_q <= 8'h5b;4'h6 : switch_1_q <= 8'h5f;4'h7 : switch_1_q <= 8'h70;4'h8 : switch_1_q <= 8'h7f;4'h9 : switch_1_q <= 8'h7b;4'ha : switch_1_q <= 8'h77;4'hb : switch_1_q <= 8'h1f;4'hc : switch_1_q <= 8'h4e;4'hd : switch_1_q <= 8'h3d;4'he : switch_1_q <= 8'h4f;4'hf : switch_1_q <= 8'h47;endcase	case(switch_2)4'h0 : switch_2_q <= 8'h7e;4'h1 : switch_2_q <= 8'h30;4'h2 : switch_2_q <= 8'h6d;4'h3 : switch_2_q <= 8'h79;4'h4 : switch_2_q <= 8'h33;4'h5 : switch_2_q <= 8'h5b;4'h6 : switch_2_q <= 8'h5f;4'h7 : switch_2_q <= 8'h70;4'h8 : switch_2_q <= 8'h7f;4'h9 : switch_2_q <= 8'h7b;4'ha : switch_2_q <= 8'h77;4'hb : switch_2_q <= 8'h1f;4'hc : switch_2_q <= 8'h4e;4'hd : switch_2_q <= 8'h3d;4'he : switch_2_q <= 8'h4f;4'hf : switch_2_q <= 8'h47;endcasecase(switch_3)4'h0 : switch_3_q <= 8'h7e;4'h1 : switch_3_q <= 8'h30;4'h2 : switch_3_q <= 8'h6d;4'h3 : switch_3_q <= 8'h79;4'h4 : switch_3_q <= 8'h33;4'h5 : switch_3_q <= 8'h5b;4'h6 : switch_3_q <= 8'h5f;4'h7 : switch_3_q <= 8'h70;4'h8 : switch_3_q <= 8'h7f;4'h9 : switch_3_q <= 8'h7b;4'ha : switch_3_q <= 8'h77;4'hb : switch_3_q <= 8'h1f;4'hc : switch_3_q <= 8'h4e;4'hd : switch_3_q <= 8'h3d;4'he : switch_3_q <= 8'h4f;4'hf : switch_3_q <= 8'h47;endcasecase(switch_4)4'h0 : switch_4_q <= 8'h7e;4'h1 : switch_4_q <= 8'h30;4'h2 : switch_4_q <= 8'h6d;4'h3 : switch_4_q <= 8'h79;4'h4 : switch_4_q <= 8'h33;4'h5 : switch_4_q <= 8'h5b;4'h6 : switch_4_q <= 8'h5f;4'h7 : switch_4_q <= 8'h70;4'h8 : switch_4_q <= 8'h7f;4'h9 : switch_4_q <= 8'h7b;4'ha : switch_4_q <= 8'h77;4'hb : switch_4_q <= 8'h1f;4'hc : switch_4_q <= 8'h4e;4'hd : switch_4_q <= 8'h3d;4'he : switch_4_q <= 8'h4f;4'hf : switch_4_q <= 8'h47;endcase	case(switch_5)4'h0 : switch_5_q <= 8'h7e;4'h1 : switch_5_q <= 8'h30;4'h2 : switch_5_q <= 8'h6d;4'h3 : switch_5_q <= 8'h79;4'h4 : switch_5_q <= 8'h33;4'h5 : switch_5_q <= 8'h5b;4'h6 : switch_5_q <= 8'h5f;4'h7 : switch_5_q <= 8'h70;4'h8 : switch_5_q <= 8'h7f;4'h9 : switch_5_q <= 8'h7b;4'ha : switch_5_q <= 8'h77;4'hb : switch_5_q <= 8'h1f;4'hc : switch_5_q <= 8'h4e;4'hd : switch_5_q <= 8'h3d;4'he : switch_5_q <= 8'h4f;4'hf : switch_5_q <= 8'h47;endcase	case(switch_6)4'h0 : switch_6_q <= 8'h7e;4'h1 : switch_6_q <= 8'h30;4'h2 : switch_6_q <= 8'h6d;4'h3 : switch_6_q <= 8'h79;4'h4 : switch_6_q <= 8'h33;4'h5 : switch_6_q <= 8'h5b;4'h6 : switch_6_q <= 8'h5f;4'h7 : switch_6_q <= 8'h70;4'h8 : switch_6_q <= 8'h7f;4'h9 : switch_6_q <= 8'h7b;4'ha : switch_6_q <= 8'h77;4'hb : switch_6_q <= 8'h1f;4'hc : switch_6_q <= 8'h4e;4'hd : switch_6_q <= 8'h3d;4'he : switch_6_q <= 8'h4f;4'hf : switch_6_q <= 8'h47;endcasecase(switch_7)4'h0 : switch_7_q <= 8'h7e;4'h1 : switch_7_q <= 8'h30;4'h2 : switch_7_q <= 8'h6d;4'h3 : switch_7_q <= 8'h79;4'h4 : switch_7_q <= 8'h33;4'h5 : switch_7_q <= 8'h5b;4'h6 : switch_7_q <= 8'h5f;4'h7 : switch_7_q <= 8'h70;4'h8 : switch_7_q <= 8'h7f;4'h9 : switch_7_q <= 8'h7b;4'ha : switch_7_q <= 8'h77;4'hb : switch_7_q <= 8'h1f;4'hc : switch_7_q <= 8'h4e;4'hd : switch_7_q <= 8'h3d;4'he : switch_7_q <= 8'h4f;4'hf : switch_7_q <= 8'h47;endcasecase(switch_8)4'h0 : switch_8_q <= 8'h7e;4'h1 : switch_8_q <= 8'h30;4'h2 : switch_8_q <= 8'h6d;4'h3 : switch_8_q <= 8'h79;4'h4 : switch_8_q <= 8'h33;4'h5 : switch_8_q <= 8'h5b;4'h6 : switch_8_q <= 8'h5f;4'h7 : switch_8_q <= 8'h70;4'h8 : switch_8_q <= 8'h7f;4'h9 : switch_8_q <= 8'h7b;4'ha : switch_8_q <= 8'h77;4'hb : switch_8_q <= 8'h1f;4'hc : switch_8_q <= 8'h4e;4'hd : switch_8_q <= 8'h3d;4'he : switch_8_q <= 8'h4f;4'hf : switch_8_q <= 8'h47;endcaseend
endalways @(posedge sys_clk or negedge sys_rst_n) beginif(!sys_rst_n)begino_cs <= 1'b1;o_clk <= 1'b0;o_din <= 1'b0;spi_state <= 7'd0;data <= 16'hffff;flag <= 7'd0;counter <= 32'd0;endelse begin//if(spi_state == 7'd0)beginif(flag == 7'd0)data <= 16'h0900;else if(flag == 7'd1)data <= 16'h0a03;else if(flag == 7'd2)data <= 16'h0b07;else if(flag == 7'd3)data <= 16'h0c01;else if(flag == 7'd4)data <= 16'h0f00;						else if(flag == 7'd5)data <= ((16'h01<<8)+ switch_1_q);			else if(flag == 7'd6)data <= ((16'h02<<8)+ switch_2_q); else if(flag == 7'd7)data <= ((16'h03<<8)+ switch_3_q); else if(flag == 7'd8)data <= ((16'h04<<8)+ switch_4_q); else if(flag == 7'd9)data <= ((16'h05<<8)+ switch_5_q);else if(flag == 7'd10)data <= ((16'h06<<8)+ switch_6_q);else if(flag == 7'd11)data <= ((16'h07<<8)+ switch_7_q);else if(flag == 7'd12)data <= ((16'h08<<8)+ switch_8_q);if(counter==32'd1000)begino_cs <= 1'b0;o_clk <= 1'b0;if((data & 16'h8000)>>15)o_din <= 1'b1;elseo_din <= 1'b0;	spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end endelse if(spi_state == 7'd1)beginif(counter==32'd1000)begino_clk <= 1'b1;data <= data * 2;spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  end//else if(spi_state == 7'd2)beginif(counter==32'd1000)begin			o_clk <= 1'b0;if((data & 16'h8000)>>15)o_din <= 1'b1;elseo_din <= 1'b0;	spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd3)beginif(counter==32'd1000)begino_clk <= 1'b1;data <= data * 2;spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd4)beginif(counter==32'd1000)begin				o_clk <= 1'b0;if((data & 16'h8000)>>15)o_din <= 1'b1;elseo_din <= 1'b0;	spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd5)beginif(counter==32'd1000)begino_clk <= 1'b1;data <= data * 2;spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd6)beginif(counter==32'd1000)begin							o_clk <= 1'b0;if((data & 16'h8000)>>15)o_din <= 1'b1;elseo_din <= 1'b0;	spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd7)beginif(counter==32'd1000)begino_clk <= 1'b1;data <= data * 2;spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd8)beginif(counter==32'd1000)begin				o_clk <= 1'b0;if((data & 16'h8000)>>15)o_din <= 1'b1;elseo_din <= 1'b0;	spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd9)beginif(counter==32'd1000)begino_clk <= 1'b1;data <= data * 2;spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd10)beginif(counter==32'd1000)begin				o_clk <= 1'b0;if((data & 16'h8000)>>15)o_din <= 1'b1;elseo_din <= 1'b0;	spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd11)beginif(counter==32'd1000)begino_clk <= 1'b1;data <= data * 2;spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd12)beginif(counter==32'd1000)begin				o_clk <= 1'b0;if((data & 16'h8000)>>15)o_din <= 1'b1;elseo_din <= 1'b0;	spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd13)beginif(counter==32'd1000)begino_clk <= 1'b1;data <= data * 2;spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd14)beginif(counter==32'd1000)begin				o_clk <= 1'b0;if((data & 16'h8000)>>15)o_din <= 1'b1;elseo_din <= 1'b0;	spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd15)beginif(counter==32'd1000)begino_clk <= 1'b1;data <= data * 2;spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd16)beginif(counter==32'd1000)begin				o_clk <= 1'b0;if((data & 16'h8000)>>15)o_din <= 1'b1;elseo_din <= 1'b0;	spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd17)beginif(counter==32'd1000)begino_clk <= 1'b1;data <= data * 2;spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd18)beginif(counter==32'd1000)begin				o_clk <= 1'b0;if((data & 16'h8000)>>15)o_din <= 1'b1;elseo_din <= 1'b0;	spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd19)beginif(counter==32'd1000)begino_clk <= 1'b1;data <= data * 2;spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd20)beginif(counter==32'd1000)begin				o_clk <= 1'b0;if((data & 16'h8000)>>15)o_din <= 1'b1;elseo_din <= 1'b0;	spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd21)beginif(counter==32'd1000)begino_clk <= 1'b1;data <= data * 2;spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd22)beginif(counter==32'd1000)begin				o_clk <= 1'b0;if((data & 16'h8000)>>15)o_din <= 1'b1;elseo_din <= 1'b0;	spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd23)beginif(counter==32'd1000)begino_clk <= 1'b1;data <= data * 2;spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd24)beginif(counter==32'd1000)begin				o_clk <= 1'b0;if((data & 16'h8000)>>15)o_din <= 1'b1;elseo_din <= 1'b0;	spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd25)beginif(counter==32'd1000)begino_clk <= 1'b1;data <= data * 2;spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd26)beginif(counter==32'd1000)begin				o_clk <= 1'b0;if((data & 16'h8000)>>15)o_din <= 1'b1;elseo_din <= 1'b0;	spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd27)beginif(counter==32'd1000)begino_clk <= 1'b1;data <= data * 2;spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd28)beginif(counter==32'd1000)begin				o_clk <= 1'b0;if((data & 16'h8000)>>15)o_din <= 1'b1;elseo_din <= 1'b0;	spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd29)beginif(counter==32'd1000)begino_clk <= 1'b1;data <= data * 2;spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd30)beginif(counter==32'd1000)begin				o_clk <= 1'b0;if((data & 16'h8000)>>15)o_din <= 1'b1;elseo_din <= 1'b0;	spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd31)beginif(counter==32'd1000)begino_clk <= 1'b1;data <= data * 2;spi_state <= spi_state + 7'd1;  counter <= 32'd0;endelsebegincounter <= counter + 1'b1;end  endelse if(spi_state == 7'd32)begino_cs <= 1'b1;data <= 16'hffff;				if(flag < 8'd12)flag <= flag + 1'b1;elseflag <= 1'b0;spi_state <= 7'd0;endend
endendmodule 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/web/50096.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Linux(虚拟机)的介绍

Linux介绍 常见的操作系统 Windows&#xff1a;微软公司开发的一款桌面操作系统&#xff08;闭源系统&#xff09;。版本有dos&#xff0c;win98&#xff0c;win NT&#xff0c;win XP , win7, win vista. win8, win10&#xff0c;win11。服务器操作系统&#xff1a;winserve…

Linux中将文件解压到指定目录

在Linux中&#xff0c;你可以使用以下命令将压缩文件解压到指定的目录&#xff1a; 对于.tar文件&#xff1a; tar -xvf archive.tar -C /path/to/directory这里的archive.tar是你要解压的.tar文件&#xff0c;/path/to/directory是你想要解压到的目标目录。 对于.tar.gz或.…

conda issue

Conda 是一个跨平台、通用的二进制包管理器。它是 Anaconda 安装使用的包管理器&#xff0c;但它也可能用于其他系统。Conda 完全用 Python 编写&#xff0c;并且是 BSD 许可的开源。通用意味着大部分的包都可以用它进行管理&#xff0c;很像一个跨平台版本的apt或者yum&#x…

vue3 父组件 props 异步传值,子组件接收不到或接收错误

1. 使用场景 我们在子组件中通常需要调用父组件的数据&#xff0c;此时需要使用 vue3 的 props 进行父子组件通信传值。 2. 问题描述 那么此时问题来了&#xff0c;在使用 props 进行父子组件通信时&#xff0c;因为数据传递是异步的&#xff0c;导致子组件无法成功获取数据…

汇川CodeSysPLC教程03-2-6 ModBus TCP

什么是ModBus TCP&#xff1f; ModBus TCP是一种基于TCP/IP协议的工业网络通信协议&#xff0c;常用于工业自动化和控制系统。它是ModBus协议的一个变种&#xff0c;ModBus协议最初由Modicon&#xff08;现在是施耐德电气的一部分&#xff09;在1979年开发。 以下是ModBus TC…

【gradle】在test apk中定义SDK编译和拷贝任务

// 定义一个任务来编译 AAR 并拷贝到自定义位置 tasks.register(‘compileAndCopyAAR’) { exec { commandLine ‘cmd’, “/c”, “cd …/…/ &&” ‘gradlew SDK:assembleRelease’ } copy {from("../../SDK/build/outputs/aar/") {include SDK-release.…

数据治理之“财务一张表”

前言 信息技术的发展&#xff0c;伴随企业业务系统的纷纷建设&#xff0c;提升业务处理效率的同时&#xff0c;也将企业的整体主价值链流程分成了一段一段的业务子流程&#xff0c;很多情况下存在数据上报延迟、业务协作不顺畅、计划反馈不及时、库存积压占资多……都可以从数据…

【Android】linux

android系统就是跑在linux上的系统。Linux层里面包含系统和硬件驱动等一些本地代码的环境。 linux的目录 mount: 用于查看哪个模块输入只读&#xff0c;一般显示为&#xff1a; [rootlocalhost ~]# mount /dev/cciss/c0d0p2 on / type ext3 (rw) proc on /proc type proc (…

Spring AI (五) Message 消息

5.Message 消息 在Spring AI提供的接口中&#xff0c;每条信息的角色总共分为三类&#xff1a; SystemMessage&#xff1a;系统限制信息&#xff0c;这种信息在对话中的权重很大&#xff0c;AI会优先依据SystemMessage里的内容进行回复&#xff1b; UserMessage&#xff1a;用…

IM聊天代码

客户端 Headers inet inet.h #pragma once #include<Winsock2.h>//#pragma comment(lib,"Ws2_32.lib")class INetMediator; class INet { public:INet(){}virtual ~INet(){}//初始化网络virtual bool initNet() 0;//接收数据virtual void recvData() 0;…

每日一知识点 - Java Lambda 表达式

目录 &#x1f4dd; 每日一知识点Lambda 表达式1、基本概念2、使用示例 &#x1f4ce; 参考文章 &#x1f600; 准备好了吗&#xff1f;让我们一起步入这座Java神奇的城堡&#xff0c;揭开Java Lambda 表达式的神秘面纱&#xff0c;探索其中的奥秘。 &#x1f4dd; 每日一知识点…

PlatformIO+ESP32S3学习:驱动WS2812矩阵彩灯显示FFT音律拾音灯

本文继承自之前的彩灯驱动文章&#xff1a;https://blog.csdn.net/qq_51930953/article/details/140736628 本文完成的效果&#xff1a; 1. 硬件准备 1.1. WS2812矩阵彩灯 购买地址&#xff1a;WS2812B全彩软像素屏8X8 8X32 16X16幻彩5V显示可编程像素软屏 1.2. 麦克风模块 购…

Ip2region - 基于xdb离线库的Java IP查询工具提供给脚本调用

文章目录 Pre效果实现git clone编译测试程序将ip2region.xdb放到指定目录使用改进最终效果 Pre OpenSource - Ip2region 离线IP地址定位库和IP定位数据管理框架 Ip2region - xdb java 查询客户端实现 效果 最终效果 实现 git clone git clone https://github.com/lionsou…

YOLOV8源码解读-C2f模块-以及总结c2模块、Bottleneck

c2f模块是对c2模块的改进 c2模块图解解读 先给出YOLOV8中卷积的定义模块一键三连-卷积-BN-激活函数 def autopad(k, pNone, d1): # kernel, padding, dilation"""Pad to same shape outputs."""if d > 1:k d * (k - 1) 1 if isinstance…

洛谷 P7771:【模板】欧拉路径

【题目来源】https://www.luogu.com.cn/problem/P7771【题目描述】 求有向图字典序最小的欧拉路径。【输入格式】 第一行两个整数 n,m 表示有向图的点数和边数。 接下来 m 行每行两个整数 u,v 表示存在一条 u→v 的有向边。【输出格式】 如果不存在欧拉路径&#xff0c;输出一行…

在模型中bert和transform讲解

在自然语言处理&#xff08;NLP&#xff09;领域&#xff0c;BERT 和 Transformer 是两个非常重要的概念。下面是它们的简要解释&#xff1a; 一 、BERT BERT&#xff08;Bidirectional Encoder Representations from Transformers&#xff09;是由Google提出的一种预训练语言…

Docker与Kubernetes在Java微服务中的应用

引言 随着微服务架构的普及,容器化技术成为部署和管理微服务的重要手段。Docker 提供了一种轻量级的容器解决方案,而 Kubernetes 则成为了容器编排和管理的事实标准。本文将深入探讨如何将 Java 微服务容器化,并在 Kubernetes 上部署和管理这些服务。 容器化概述 1. 容器…

Linux:进程信号(二.信号的保存与处理、递达、volatile关键字、SIGCHLD信号)

上次介绍了&#xff1a;(Linux&#xff1a;进程信号&#xff08;一.认识信号、信号的产生及深层理解、Term与Core&#xff09;)[https://blog.csdn.net/qq_74415153/article/details/140624810] 文章目录 1.信号保存1.1递达、未决、阻塞等概念1.2再次理解信号产生与保存1.3信号…

Pytorch深度学习实践(9)卷积神经网络

卷积神经网络 全连接神经网络 神经网络中全部是线性模型&#xff0c;是由线性模型串联起来的 全连接网络又叫全连接层 卷积神经网络 在全连接神经网络中&#xff0c;由于输入必须是一维向量&#xff0c;因此在处理图像时必须要对图像矩阵进行拉伸成一维的形式&#xff0c;…

构建npm组件包并打包上传到npm官网

vitejsv3简略搭建&#xff08;笔记用&#xff09; 原作者&#xff1a;https://juejin.cn/post/7119827361092108301?searchId20240724094258A72138D981DC0419C33E 1.npm create vitelatest # 使用npm安装vite脚手架2.先install项目&#xff0c;然后改造&#xff1a;修改&…