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

Add 'wait for' clause to output-only VHDL models #512

Merged
merged 1 commit into from
Jan 31, 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
1 change: 1 addition & 0 deletions qucs/components/logic_0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ QString logic_0::vhdlCode( int )
s = "\n " + Name + ":process\n" +
" begin\n " +
LO + " <= '0';\n" +
" wait for 1 ns;\n" +
" end process;\n";
return s;
}
Expand Down
1 change: 1 addition & 0 deletions qucs/components/logic_1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ QString logic_1::vhdlCode( int )
s = "\n " + Name + ":process\n" +
" begin\n " +
L1 + " <= '1';\n" +
" wait for 1 ns;\n" +
" end process;\n";
return s;
}
Expand Down
3 changes: 2 additions & 1 deletion qucs/components/pad2bit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ QString pad2bit::vhdlCode( int )
" when 3 => "+A+" <= '1'; "+B+" <= '1';\n" +
" when others => null;\n" +
" end case;\n";
s3 = " end process;\n";
s3 = " wait for 1 ns;\n"
" end process;\n";
s = s1+s2+s3;
return s;
}
Expand Down
3 changes: 2 additions & 1 deletion qucs/components/pad3bit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ QString pad3bit::vhdlCode( int )
" when 7 => "+A+" <= '1'; "+B+" <= '1'; "+C+" <= '1';\n"+
" when others => null;\n" +
" end case;\n";
s3 = " end process;\n";
s3 = " wait for 1 ns;\n"
" end process;\n";
s = s1+s2+s3;
return s;
}
Expand Down
3 changes: 2 additions & 1 deletion qucs/components/pad4bit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ QString pad4bit::vhdlCode( int )
" when 15 => "+A+" <= '1'; "+B+" <= '1'; "+C+" <= '1'; "+D+" <= '1';\n"+
" when others => null;\n"
" end case;\n";
s3 = " end process;\n";
s3 = " wait for 1 ns;\n"
" end process;\n";
s = s1+s2+s3;
return s;
}
Expand Down
Loading