mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 14:13:23 +00:00
add generic writer class with formatting function to FunctionalTools
This commit is contained in:
parent
32cdf25838
commit
9700df50d6
4 changed files with 203 additions and 160 deletions
|
@ -143,11 +143,11 @@ public:
|
|||
{
|
||||
for(size_t i = sizeof(T) * 8; i < n; i++)
|
||||
if(_bits[i])
|
||||
return ~0;
|
||||
return ~((T)0);
|
||||
return as_numeric<T>();
|
||||
}
|
||||
|
||||
uint32_t as_int() { return as_numeric<uint32_t>(); }
|
||||
uint32_t as_int() const { return as_numeric<uint32_t>(); }
|
||||
|
||||
Signal<n> operator ~() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue