heron_sqrt/cadence/heron_comma_fix/functional/verilog.v

12 lines
242 B
Coq
Raw Permalink Normal View History

2014-01-18 10:59:04 +00:00
module heron_comma_fix (A,Y);
parameter comma = 8;
parameter comma_fix = comma / 2;
input [31:0] A;
output [31:0] Y;
wire [31:0] Y;
2015-01-14 09:42:34 +00:00
assign Y[31: comma_fix] = A[31 - comma_fix: 0];
assign Y[(comma_fix - 1):0] = 1'b0;
2014-01-18 10:59:04 +00:00
endmodule