This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module fpr_add(A,B,C); | |
input [31:0]A; | |
input [31:0]B; | |
output [31:0]C; | |
reg diff_sign; | |
wire [8:0]AgB; // exponential for A greater than B | |
wire [8:0]BgA; // exponential for B greater than A | |
wire [7:0]exp_diff; // difference of the exponentials |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`timescale 1ns / 1ps | |
module clock(clk_in,rst,clk_out,clk_select_line); | |
input clk_in; | |
input [2:0]clk_select_line; | |
input rst; | |
output reg clk_out; |
OlderNewer