mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-03 02:05:21 +00:00
Developing debug test
This commit is contained in:
parent
b09002c71d
commit
43668a3fc5
@ -56,7 +56,6 @@ module unpackinput (
|
|||||||
assign ExpMax = &In[`FLEN-2:`NF]; // is the exponent all 1's
|
assign ExpMax = &In[`FLEN-2:`NF]; // is the exponent all 1's
|
||||||
|
|
||||||
end else if (`FPSIZES == 2) begin // if there are 2 floating point formats supported
|
end else if (`FPSIZES == 2) begin // if there are 2 floating point formats supported
|
||||||
//***need better names for these constants
|
|
||||||
// largest format | smaller format
|
// largest format | smaller format
|
||||||
//----------------------------------
|
//----------------------------------
|
||||||
// `FLEN | `LEN1 length of floating point number
|
// `FLEN | `LEN1 length of floating point number
|
||||||
@ -104,7 +103,6 @@ module unpackinput (
|
|||||||
|
|
||||||
end else if (`FPSIZES == 3) begin // three floating point precsions supported
|
end else if (`FPSIZES == 3) begin // three floating point precsions supported
|
||||||
|
|
||||||
//***need better names for these constants
|
|
||||||
// largest format | larger format | smallest format
|
// largest format | larger format | smallest format
|
||||||
//---------------------------------------------------
|
//---------------------------------------------------
|
||||||
// `FLEN | `LEN1 | `LEN2 length of floating point number
|
// `FLEN | `LEN1 | `LEN2 length of floating point number
|
||||||
@ -196,7 +194,7 @@ module unpackinput (
|
|||||||
// Check NaN boxing
|
// Check NaN boxing
|
||||||
always_comb
|
always_comb
|
||||||
case (Fmt)
|
case (Fmt)
|
||||||
2'b11: BadNaNBox = 0;
|
2'b11: BadNaNBox = 0;
|
||||||
2'b01: BadNaNBox = ~&In[`Q_LEN-1:`D_LEN];
|
2'b01: BadNaNBox = ~&In[`Q_LEN-1:`D_LEN];
|
||||||
2'b00: BadNaNBox = ~&In[`Q_LEN-1:`S_LEN];
|
2'b00: BadNaNBox = ~&In[`Q_LEN-1:`S_LEN];
|
||||||
2'b10: BadNaNBox = ~&In[`Q_LEN-1:`H_LEN];
|
2'b10: BadNaNBox = ~&In[`Q_LEN-1:`H_LEN];
|
||||||
|
@ -11,7 +11,7 @@ TARGET = debug
|
|||||||
$(TARGET).objdump: $(TARGET).elf
|
$(TARGET).objdump: $(TARGET).elf
|
||||||
riscv64-unknown-elf-objdump -D $(TARGET).elf > $(TARGET).objdump
|
riscv64-unknown-elf-objdump -D $(TARGET).elf > $(TARGET).objdump
|
||||||
|
|
||||||
$(TARGET): $(TARGET).S Makefile
|
$(TARGET).elf: $(TARGET).S Makefile
|
||||||
riscv64-unknown-elf-gcc -g -o $(TARGET).elf -march=rv64gc -mabi=lp64 -mcmodel=medany \
|
riscv64-unknown-elf-gcc -g -o $(TARGET).elf -march=rv64gc -mabi=lp64 -mcmodel=medany \
|
||||||
-nostartfiles -T../../link/link.ld $(TARGET).S
|
-nostartfiles -T../../link/link.ld $(TARGET).S
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
# openhwgroup/cvw Issue #55
|
# openhwgroup/cvw Issue #55
|
||||||
li x1, 0x7ff0000000000001
|
li x1, 0x7ff0000000000001
|
||||||
fmv.w.x f4, x1
|
fmv.w.x f4, x1
|
||||||
li x1, 7ff8000000000000
|
li x1, 0x7ff8000000000000
|
||||||
fmv.w.x f9, x1
|
fmv.w.x f9, x1
|
||||||
fsgnjx.s f12,f9,f4 # expected f 0xffffffff7fc00000
|
fsgnjx.s f12,f9,f4 # expected f 0xffffffff7fc00000
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user