Circuits--Combinational--Basic

HDLbits代码答案(3.1 Combinational Logic)持更 HDLbits代码答案(3.1 Combinational Logic)持更,代码均通过波形认证,可放心使用。 阅读详情

1.wire

module top_module (
    input in,
    output out);
 
    wire w;
    assign w=in;
    assign out=w;
endmodule

2.GND

module top_module (
    output out);
    
   assign out=1'b0;
endmodule

3.NOR

module top_module (
    input in1,
    input in2,
    output out);
    
    assign out=~(in1|in2);
 
endmodule

4.Another gate

module top_module (
    input in1,
    input in2,
    output out);
    
    assign out=in1&(~in2);
 
endmodule

5.two gates

module top_module (
    input in1,
    input in2,
    input in3,
    output out);
    
    assign out=in3^(~(in1^in2));
 
endmodule

6.More logic gates

module top_module( 
    input a, b,
    output out_and,
    output out_or,
    output out_xor,
    output out_nand,
    output out_nor,
    output out_xnor,
    output out_anotb
);
    
    assign out_and=a&b;
    assign out_or=a|b;
    assign out_xor=a^b;
    assign out_nand=~(a&b);
    assign out_nor=~(a|b);
    assign out_xnor=~(a^b);
    assign out_anotb=a&(~b);
                                

endmodule

7.7420 chip

module top_module ( 
    input p1a, p1b, p1c, p1d,
    output p1y,
    input p2a, p2b, p2c, p2d,
    output p2y );
    
    assign p1y=~(p1a&p1b&p1c&p1d);
    assign p2y=~(p2a&p2b&p2c&p2d);


endmodule

8.truth tables

module top_module( 
    input x3,
    input x2,
    input x1,  // three inputs
    output f   // one output
);

    assign f=(x3&(~x2)&x1)|(~(x3)&x2)|(x2&x1);
endmodule

9.Two-bit equality

module top_module ( input [1:0] A, input [1:0] B, output z ); 
    always @(*)
        begin
            if(A==B) z=1;
            else z=0;
        end
    
endmodule

10.Simple circuit A

module top_module (input x, input y, output z);
    assign z=(x^y)&x;
endmodule

11.simple curcuit B

module top_module ( input x, input y, output z );
    assign z=~(x^y);
endmodule

12.combine circuits A and B

module top_module (input x, input y, output z);  
    wire z1,z2,z3,z4;
    
    assign z1=~(x^y);
    assign z2=(x^y)&x;
    assign z3=~(x^y);
    assign z4=(x^y)&x;
    
    assign z=(z1|z2)^(z3&z4);
 
endmodule

13.Ring or vibrate

module top_module (
    input ring,
    input vibrate_mode,
    output ringer,       // Make sound
    output motor         // Vibrate
);
 
    always@(*)
        begin
            if(ring==1)
                begin
                    if(vibrate_mode) 
                        begin
                            motor=1;
                            ringer=0; 
                        end
                    else
                        begin
                            motor=0; 
                            ringer=1;
                        end
                end
            else
                begin
                    motor=0;
                   ringer=0;
                end
        end
endmodule

14..thermostat

module top_module (
    input too_cold,
    input too_hot,
    input mode,
    input fan_on,
    output heater,
    output aircon,
    output fan
); 
    
    assign heater= (mode&too_cold) ? 1:0;
    assign aircon= (~mode&too_hot) ? 1:0;
    assign fan= (heater|aircon|fan_on) ? 1:0;
 
endmodule

15.3-bit population count

module top_module( 
    input [2:0] in,
    output [1:0] out );
    
    integer i;
    always@(*)
        begin
            out=0;
            for(i=0;i<3;i++)
                if(in[i])
                    out=out+1;
        end
 
endmodule

16.Gates and vectors

module top_module( 
    input [3:0] in,
    output [2:0] out_both,
    output [3:1] out_any,
    output [3:0] out_different );
    
    integer i;
    always@(*)
        begin
            for(i=0;i<4;i++)
                begin
                    if(i<3)
                        begin
                            out_both[i]= (in[i]&in[i+1]) ? 1:0;
                            out_any[i+1]= (in[i+1]|in[i]) ? 1:0;
                            out_different[i]= (in[i]^in[i+1]) ? 1:0;
                  
                        end
                    if(i==3)
                        out_different[i]=(in[i]^in[i-3]) ? 1:0;
                end
        end
 
endmodule

17.Even longer vectors

module top_module( 
    input [99:0] in,
    output [98:0] out_both,
    output [99:1] out_any,
    output [99:0] out_different );
    
     integer i;
    always@(*)
        begin
            for(i=0;i<100;i++)
                begin
                    if(i<99)
                        begin
                            out_both[i]= (in[i]&in[i+1]) ? 1:0;
                            out_any[i+1]= (in[i+1]|in[i]) ? 1:0;
                            out_different[i]= (in[i]^in[i+1]) ? 1:0;
                  
                        end
                    if(i==99)
                        out_different[99]=(in[99]^in[0]) ? 1:0;
                end
        end
 
endmodule

Pyside6+qml+Qtcreator项目实战 PYTHON and QT QUICK - Custom Buttons With QML And JavaScript - [MODERN GUI]-#01 阅读详情

相关推荐

GNSS数据处理(一)——开源软件RTKLIB与G-Nut/Anubis实战入门

本文详细介绍了GNSS数据处理的开源软件RTKLIB与G-Nut/Anubis的实战入门指南。从软件安装、数据获取到静态短基线解算,逐步讲解操作技巧与常见问题排查,帮助测绘与地质监测人员快速掌握GNSS数据处理技术,提升工作效率。

weixin_30733003的博客 139

Circuits-Combinational Logic-Basic Gates

目录1、Wire2、GND3、NOR4、Another gate5、Two gates6、More logic gates7、7420 chip8、Truth tables9、Two-bit equality10、Simple circuit A11、Simple circuit B12、Combine circuits A and B13、Ring or vibrate14、Thermostat15、3-bit population count16、Gates and vectors17、Even lon

醜奴兒的博客 460

通达信股本变迁文件(gbbq)解密方法

近年来A股市场跌宕起伏真特么精彩,本人愚钝,被整爆仓,损失惨重 痛定思痛,认为交易这种对纪律要求极高,且必须完全排除情绪影响的勾当,还是应该交给程序来干 数据哪里来呢?当然是拿来主义。。。问券商的交易软件要呗 到处查资料,得知通达信的权息文件数据齐全,不仅含有除权除息数据,还含有限售解禁、增发、可转债上市等股本变化数据 ——这对于某些对成交量变化敏感的交易模型是非常重要的

不甘碌碌老,结庐铸宝刀 2万+

[ECE] 5–1 Basic Combinational Logic Circuits

这样,无论数据位的组合如何,最终的输出(包含数据位和偶校验位)总会有偶数个1,这就是所谓的偶校验。如果在传输过程中由于某种原因(比如电磁干扰)造成一个位发生了变化,接收方可以通过检查所有位(包括校验位)的总和是否为偶数来判断数据是否有误。如果两个输入相同,则输出0。对于偶校验位,我们希望在数据位的总数中有偶数个1,这样如果在任何数据传输中有一个位被错误地改变了,接收方可以通过校验位检测到错误。如果输入数据位中有奇数个1,经过这些异或门的操作,最终的输出将会是1,使得包括校验位在内的总数变成偶数个1。

m0_74331272的博客 820

告别CMake依赖!在Visual Studio 2022中直接配置VTK 9.4开发环境(附完整项目示例)

本文详细介绍了如何在Visual Studio 2022中直接配置VTK 9.4开发环境,无需依赖CMake。通过图文教程和完整项目示例,帮助C++开发者快速集成VTK库,简化开发流程,提升工作效率。特别适合科学可视化任务的开发者。

weixin_26804345的博客 416

FFT去除频率分量的完整流程与数学分析

重叠与窗口:确保块间无缝过渡,避免幅度跳变;实时缓冲:处理速度需快于数据输入速度,避免断流;DAC的平滑角色:通过数模转换和滤波,将离散样点还原为连续波形。通过这种分段处理+重叠拼接的方法,即使FFT本身处理的是离散数据块,最终DAC输出仍能保持信号的时间连续性。以下是完整的数学分析过程和代码逻辑,演示如何通过FFT去除特定频率成分,并通过去窗技术恢复信号。信号加窗。

林愿留的博客 1612

HDLBits练习 Circuits;Combinational Logic;Basic Gates

Basic Gates0.常用逻辑门符号1.Wire2.GND3.NOR4.Another gate5.Two gates6.More logic gates7.7420 chip8.Truth tables9.Tow-bits equality10.Simple circuit A11.Simple circuit B12.Combine circuits A and B13.Ring or vibrate?14.Thermostat15.3-bit population count16.Gates an

qq_41819186的博客 545

从MRF8P9040N数据手册到ADS仿真:手把手教你搞定LDMOS功放设计(附完整模型下载)

本文详细解析了MRF8P9040N LDMOS功率放大器的数据手册关键参数,并提供了在ADS中进行仿真的完整指南。从模型导入、直流工作点验证到负载牵引与阻抗匹配设计,逐步指导工程师完成高效功放设计。文章还包含调试技巧和常见问题解决方案,帮助优化射频功放性能。

weixin_27015733的博客 493

HDL—Circuits—Combinational Logic—Basic Gates(1)

有关此处使用的子模块,请参见 10 和 11。顶层设计由两个子电路 A 和 B 的实例组成,如下所示。创建一个有两个2位输入 A [1:0]和 B [1:0]的电路,并产生一个输出 z。如果 A = B,则 z 的值应为1,否则 z 应为0。模块 A 应该实现函数 z = (x ^ y) & x。计算出最小的运算方式然后直接写就可以了,具体运算方法叫。

ANNU2000的博客 240

基于C#的ASP.NET开发的党史学习网站课设

开展党史学习教育,就是要以史为镜、以史明志,把苦难辉煌的过去、日新月异的现在、光明宏大的未来贯通起来,在鉴往知来中砥砺前行,在乱云飞渡中把准航向,在凝心聚力中团结奋斗,共同创造新的历史伟业。登陆按钮与数据库进行连接,逻辑实现是如图3.1.3所示,自己定义一个SQL查询语句,将账号、密码放入SQL查询语句中,用sqlDataReader.HasRows语句进行逐一比较,找出结果,将用户名存入session并调用cookies,如果结果存在就关闭数据库,进行数据跳转,并弹出登陆成功的提示框,并关闭数据库。

m0_62408555的博客 976

海康visionmaster-渲染结果:通过绑定流程或模块获取 渲染结果的方法

海康visionmaster-渲染结果:通过绑定流程或模块获取 渲染结果的方法

视觉人机器视觉的博客 2648

HDLBits刷题之Circuits->Combinational Logic->Basic Gates

HDLBits刷题之Circuits->Combinational Logic->Basic Gates(笔记)

lry320的博客 422

YOLOv8进阶实战:融合SAHI超推理算法,在无人机应用中精准捕捉视频与图片中的微小目标

YOLOv8改进是一种先进的目标检测算法,通过引入辅助超推理算法SAHI推理,使得小目标无法逃避检测。SAHI推理算法结合视频和图片的特点,利用先进的超推理技术,提高了目标检测的准确性和鲁棒性。不仅如此,YOLOv8改进还支持对视频和图片进行实时的目标检测,将检测结果直观地呈现给用户。这一技术的应用范围广泛,可以用于安防领域,提升监控设备的性能和效率;也可以用于无人驾驶领域,实现精准的目标识别和跟踪。总之,YOLOv8改进是一项具有突破性的技术,为目标检测领域带来了重大的进展。

weixin_51988935的博客 809

HDLBits刷题记录 Circuits—Combinational Logic—Basic Gates

HDLBits刷题记录

mccree618的博客 223

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

VB摄像头监控

该VB模块可对摄像头捕获的画面进行录像等,可在创建的窗口进行控制

HDLBits笔记5:Circuits.Combinational Logic.Basic gates

HDLBits网站下,Circuit章节下、Combinational子章节下Basic gates小节的题目与答案

fpga学就完事了 615

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

HDLBits练习(七)Circuits_Combinational Logic_Basic Gates

Wire(Exams/m2014 q4h) 要求:实现下图功能。 module top_module ( input in, output out); assign out = in; endmodule GND(Exams/m2014 q4i) 要求:实现接地功能。 module top_module ( output out); assign out = 1'b0; endmodule NOR(Exams/m2014 q

qq_43372982的博客 806

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Circuits--Combinational--Basic Gates_1

【代码】Circuits--Combinational--Basic Gates_1。

kamo 221

Circuits--Combinational--Basic_3

【代码】Circuits--Combinational--Basic_3。

kamo 225

(6)HDLBits-Circuits-Combinational Logic-Basic Gates

本文为本人在HDLBits-Circuits-Combinational Logic-Basic Gates的学习记录

m0_58077663的博客 394

Circuits--Combinational Logic--Basic Gates--Gatesv

网址:https://hdlbits.01xz.net/wiki/Gatesv module top_module( input [3:0] in, output [2:0] out_both, output [3:1] out_any, output [3:0] out_different ); //assign out_both[2:0] = {in[2]&in[3],in[1]&in[2],in[0]&in[1]};

weixin_43668420的博客 197

Circuits--Combinational Logic--Basic Gates--Gates

网址:https://hdlbits.01xz.net/wiki/Gates module top_module( input a, b, output out_and, output out_or, output out_xor, output out_nand, output out_nor, output out_xnor, output out_anotb ); assign out_and = a & b;

weixin_43668420的博客 171

HDLBits个人练习--Circuits--Combinational Logic--Basic Gates

最小项法化简表达式,最终公式为Out = X1X2+X1X3+X2(!

weixin_60703117的博客 526

HDLbits---circuits--combinational logic--basic gates

【代码】HDLbits---circuits--combinational logic--basic gates。

weixin_50965981的博客 266

Circuits--Combinational Logic--Basic Gates--Gatesv100

网址:https://hdlbits.01xz.net/wiki/Gatesv100 module top_module( input [99:0] in, output [98:0] out_both, output [99:1] out_any, output [99:0] out_different ); assign out_both = in[98:0] & in[99:1]; assign out_any = in[99:1] |

weixin_43668420的博客 199

HDLBits 刷题之我的代码(全)—(Circuits-Combinational Logic_Basic Gates)

#1 module top_module ( input in, output out); assign out = in; endmodule #2 module top_module ( output out); assign out = 1'b0; endmodule #3 module top_module ( input in1, input in2, output out); assign out = ~(in1 | in2); e

glassy__sky的博客 238

HDLBits个人刷题详解合集6-Circuits-Combinational Logic-Basic Gates-HDBits题目分析

HDLBits个人刷题详解合集6-Circuits-Combinational Logic-Basic Gates-HDBits题目分析

weixin_49100631的博客 410
上一篇: Circuits--Sequential--Counters
下一篇: Circuits--Sequential--Registers
且听风吟567
博客等级 码龄7年 231粉丝 77原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值