![a power b in decimal values a^b in decimal values](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQbYKHYK48U1hEbsP6OSn7s-m_qAxQxHlgTT3Qfrx0wK-tE-ltDe14q0q8djGL_tqbDvSLaQcv0UFEOXwqKzl-2e_x3c_Z66u_uefmCD-vqiYWj6wYH2MeIhB4Ueor90N_J37Sp1XCoc2L/s200/a+power+b.jpg) |
a power b |
In this project, we are implementing a small mathematical function called a power b or a^b. A and B values are taken in decimal format and result will be in decimal format.
Note:- The symbol here used
^ is
not XOR function.
Code For a^b:-
//----------------------------------------------------------------------------------
//-- Company: VHDL Language
//-- Engineer: Manohar Mohanta
//--
//-- Create Date: 14:33:07 11/17/2017
//-- Design Name: Exponential
//-- Module Name: Exponential-2bits - Behavioral
//-- Project Name: exp
//-- Target Devices:
//-- Tool versions:
//-- Description:
//--
//-- Dependencies:
//--
//-- Revision:
//-- Revision 0.01 - File Created
//-- Additional Comments:
//--
//----------------------------------------------------------------------------------
module exp(
input [1:0]a,
input [1:0]b,
output [6:0]c);
assign c = a**b;
endmodule
Stimulated Results for a power b:-
![Simulated Results for a^b Simulated Results for a power b](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1ZbaRGBIuAPiYAEuzxNlVqEF0JZHYP3PI9svXyfDqghQRz8gcwYIga0kzTnFxNaDYAB7GJhLAYAEfWo3dCSKWWroAwW30JgI_4ZqQm2RQJbTzDydCp-VaWlq4eRsHXHZT6YJxG80AvtHa/s640/Simulated+Results+for+a%255Eb.JPG) |
Simulated Results for a^b |
No comments:
Post a Comment