Skip to content

Commit ff24688

Browse files
committed
Adding fpu64
1 parent 823b87b commit ff24688

16 files changed

Lines changed: 8410 additions & 0 deletions

logikbench/blocks/fpu64/LICENSE

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
/*Copyright 2019-2021 T-Head Semiconductor Co., Ltd.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
5+
6+
http://www.apache.org/licenses/LICENSE-2.0
7+
8+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
9+
10+
*/

logikbench/blocks/fpu64/README

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
url: "https://github.com/T-head-Semi/openc910"
2+
rev: "e0c4ad8ec7f8c70f649d826ebd6c949086453272"

logikbench/blocks/fpu64/fpu64.py

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
from os.path import dirname, abspath
2+
from siliconcompiler.design import DesignSchema
3+
4+
5+
class Fpu32(DesignSchema):
6+
def __init__(self):
7+
8+
name = 'fpu64'
9+
topmodule = 'ct_vfdsu_double'
10+
root = f'{name}_root'
11+
source = ['rtl/ct_vfdsu_ctrl.v',
12+
'rtl/ct_vfdsu_pack.v',
13+
'rtl/ct_vfdsu_scalar_dp.v',
14+
'rtl/ct_vfdsu_srt_radix16_with_sqrt.v',
15+
'rtl/gated_clk_cell.v',
16+
'rtl/ct_vfdsu_double.v',
17+
'rtl/ct_vfdsu_prepare.v',
18+
'rtl/ct_vfdsu_srt_radix16_bound_table.v',
19+
'rtl/ct_vfdsu_srt.v',
20+
'rtl/ct_vfdsu_ff1.v',
21+
'rtl/ct_vfdsu_round.v',
22+
'rtl/ct_vfdsu_srt_radix16_only_div.v',
23+
'rtl/ct_vfdsu_top.v']
24+
25+
# create a Design object
26+
super().__init__(name)
27+
28+
# set data home directory
29+
self.register_package(root, dirname(abspath(__file__)))
30+
31+
# rtl files
32+
fileset = 'rtl'
33+
for item in source:
34+
self.add_file(item, fileset, package=root)
35+
36+
# top module
37+
self.set_topmodule(topmodule, fileset)
38+
39+
if __name__ == "__main__":
40+
d = Fpu32()
41+
d.write_fileset(f"{d.name()}.f", fileset="rtl")

0 commit comments

Comments
 (0)