Skip to content

Commit

Permalink
Merge pull request #23 from muhammadhamza15/mhamza_dev
Browse files Browse the repository at this point in the history
Mhamza dev
  • Loading branch information
muhammadhamza15 authored Aug 2, 2024
2 parents d8715d2 + ef3d237 commit c214b81
Show file tree
Hide file tree
Showing 72 changed files with 321 additions and 5,420 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ bb_models: $(BB_TARGETS)
# we need to make TDP_RAM36K.v first as it is used by the FIFO.
core_sim_models: models_internal/verilog/TDP_RAM36K.v

sim_models: core_sim_models $(SIM_TARGETS) $(CUST_SIM_TARGETS)
sim_models: core_sim_models $(SIM_TARGETS) #$(CUST_SIM_TARGETS)

models_internal/verilog_blackbox/rundir/%.v: specs/%.yaml
mkdir -p models_internal/verilog_blackbox/rundir
Expand Down
13 changes: 7 additions & 6 deletions bin/p4def_to_simv.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,10 @@ def main():
if has_parameters and has_properties:
outstr += f"module {name} #(\n "
outstr += param_str
outstr += "`ifdef RAPIDSILICON_INTERNAL\n ,"
#outstr += "`ifdef RAPIDSILICON_INTERNAL\n ,"
outstr += ","
outstr += prop_str
outstr += "`endif // RAPIDSILICON_INTERNAL\n"
#outstr += "`endif // RAPIDSILICON_INTERNAL\n"
outstr += ") (\n"
stream.write(outstr)

Expand All @@ -330,11 +331,11 @@ def main():

if not has_parameters and has_properties:
outstr += f"module {name}\n"
outstr += "`ifdef RAPIDSILICON_INTERNAL\n "
#outstr += "`ifdef RAPIDSILICON_INTERNAL\n "
outstr += "#(\n"
outstr += prop_str
outstr += ")\n"
outstr += "`endif // RAPIDSILICON_INTERNAL\n"
#outstr += "`endif // RAPIDSILICON_INTERNAL\n"
outstr += "(\n"
stream.write(outstr)

Expand Down Expand Up @@ -475,7 +476,7 @@ def main():

# property checking
if 'properties' in spec_dict:
stream.write('\n`ifdef RAPIDSILICON_INTERNAL\n')
#stream.write('\n`ifdef RAPIDSILICON_INTERNAL\n')
for param in spec_dict["properties"]:

# determine if property is numeric or not
Expand Down Expand Up @@ -514,7 +515,7 @@ def main():
stream.write(" end\n")
stream.write(" endcase\n")

stream.write('`endif // RAPIDSILICON_INTERNAL\n')
#stream.write('`endif // RAPIDSILICON_INTERNAL\n')

if needs_checking(spec_dict):
stream.write("\n end\n")
Expand Down
10 changes: 5 additions & 5 deletions etc/bb.mako
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ def generate_port_str(port):
% if has_parameters and has_properties:
module ${dd['name']} #(
${param_str}
`ifdef RAPIDSILICON_INTERNAL
, ${prop_str}
`endif // RAPIDSILICON_INTERNAL
##`ifdef RAPIDSILICON_INTERNAL
,${prop_str}
##`endif // RAPIDSILICON_INTERNAL
) (
% endif
## ONLY PARAMETERS
Expand All @@ -144,11 +144,11 @@ ${param_str}
## ONLY PROPERTIES
% if not has_parameters and has_properties:
module ${dd['name']}
`ifdef RAPIDSILICON_INTERNAL
##`ifdef RAPIDSILICON_INTERNAL
#(
${prop_str}
)
`endif // RAPIDSILICON_INTERNAL
##`endif // RAPIDSILICON_INTERNAL
(
% endif
## NEITHER PARAMETERS NOR PROPERTIES
Expand Down
2 changes: 0 additions & 2 deletions models_customer/README.txt

This file was deleted.

Binary file removed models_customer/ibis/GeminiPlus-0.0.1.tar.gz
Binary file not shown.
29 changes: 0 additions & 29 deletions models_customer/verilog/BOOT_CLOCK.v

This file was deleted.

20 changes: 0 additions & 20 deletions models_customer/verilog/CARRY.v

This file was deleted.

18 changes: 0 additions & 18 deletions models_customer/verilog/CLK_BUF.v

This file was deleted.

26 changes: 0 additions & 26 deletions models_customer/verilog/DFFNRE.v

This file was deleted.

26 changes: 0 additions & 26 deletions models_customer/verilog/DFFRE.v

This file was deleted.

Loading

0 comments on commit c214b81

Please sign in to comment.