mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-22 21:09:15 -04:00
minor update
This commit is contained in:
parent
44fdc13cba
commit
786face3cd
4 changed files with 5 additions and 4 deletions
|
@ -11,9 +11,9 @@ module VX_tex_sat #(
|
|||
`STATIC_ASSERT(((OUT_W+1) < IN_W), ("invalid parameter"))
|
||||
|
||||
if (MODEL == 1) begin
|
||||
wire [OUT_W-1:0] underflow_mask = {OUT_W{~data_in[IN_W-1]}};
|
||||
wire [OUT_W-1:0] underflow_mask = {OUT_W{~data_in[IN_W-1]}};
|
||||
wire [OUT_W-1:0] overflow_mask = {OUT_W{(| data_in[IN_W-2:OUT_W])}};
|
||||
assign data_out = (data_in[OUT_W-1:0] | overflow_mask) & underflow_mask;
|
||||
assign data_out = (data_in[OUT_W-1:0] & underflow_mask) | overflow_mask;
|
||||
end else begin
|
||||
assign data_out = data_in[IN_W-1] ? OUT_W'(0) : ((data_in > {OUT_W{1'b1}}) ? {OUT_W{1'b1}} : OUT_W'(data_in));
|
||||
end
|
||||
|
|
1
hw/syn/altera/.gitignore
vendored
Normal file
1
hw/syn/altera/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
ip_cache/*
|
2
hw/syn/altera/opae/.gitignore
vendored
2
hw/syn/altera/opae/.gitignore
vendored
|
@ -1 +1 @@
|
|||
build_*/
|
||||
build_*/*
|
2
third_party/cocogfx
vendored
2
third_party/cocogfx
vendored
|
@ -1 +1 @@
|
|||
Subproject commit e4656d62878e517e743e891d22628c9191dca6bc
|
||||
Subproject commit 6448e68330ca00a64ab3184e3c5c95b59fe8b62a
|
Loading…
Add table
Add a link
Reference in a new issue