Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

^ munge code_gen and config #59

Merged
merged 1 commit into from
Dec 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified wrappers/simulink/munge_blk.slx
Binary file not shown.
5 changes: 3 additions & 2 deletions wrappers/simulink/munge_code_gen.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
%and what it will be named
vhdlfile = fullfile(vhdlfilefolder, [bdroot '_munge_static.vhd']); %filename for vhd file

inout_port_count = number_of_divisions*division_size_bits;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%upperdec%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
upperlines = [
"LIBRARY IEEE, common_pkg_lib, casper_flow_control_lib;"
Expand All @@ -18,8 +19,8 @@
" port ("
" clk : in std_logic := '1';"
" ce : in std_logic := '1';"
" din : in std_logic_vector;"
" dout : out std_logic_vector"
sprintf(" din : in std_logic_vector(%d-1 downto 0);", inout_port_count)
sprintf(" dout : out std_logic_vector(%d-1 downto 0)", inout_port_count)
" );"
"end ENTITY;"
"ARCHITECTURE rtl of munge_static is"
Expand Down