Sanjay Kumar Posted July 2, 2023 Share Posted July 2, 2023 module cordic_sqrt( input clk, input rstn, input [15:0] num_msb, // input value to find square root of input [15:0] num_lsb, //output [31:0] sin, output reg [15:0] sqrt_msb, output reg [15:0] sqrt_lsb ); Link to comment Share on other sites More sharing options...
0 artvvb Posted July 6, 2023 Share Posted July 6, 2023 Hi @Sanjay Kumar Welcome to the forums. You can't directly map two top-level ports to the same FPGA pins, so you need to implement additional hardware in a top module that creates the desired functionality. One way to do it would be to create registers that save the value passed in from the switches whenever one of the buttons is pressed, which then forwards the saved values on to your module's ports. Thanks, Arthur Link to comment Share on other sites More sharing options...
Question
Sanjay Kumar
module cordic_sqrt(
input clk,
input rstn,
input [15:0] num_msb, // input value to find square root of
input [15:0] num_lsb,
//output [31:0] sin,
output reg [15:0] sqrt_msb,
output reg [15:0] sqrt_lsb
);
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now