Author Topic: mixed VHDL/ Python/ C  (Read 796 times)

0 Members and 1 Guest are viewing this topic.

Offline glenenglishTopic starter

  • Frequent Contributor
  • **
  • Posts: 557
  • Country: au
  • RF engineer. AI6UM / VK1XX . Aviation pilot. MTBr
mixed VHDL/ Python/ C
« on: March 16, 2026, 08:06:04 am »
Does anyone else have difficulty getting syntax right when they are writing,  simultaneously, in three different tabs  in an editor, C and  Python and VHDL ?

Is it my old brain, or is this troublesome for everyone ?


wrong line endings
wrong comments wrong "" or '
etc.
 

Offline betocool

  • Regular Contributor
  • *
  • Posts: 162
  • Country: au
Re: mixed VHDL/ Python/ C
« Reply #1 on: March 16, 2026, 12:28:29 pm »
I have trouble getting syntax right in one language only!  :-DD

I usually have C and Python simultaneously, side by side windows, so it's a matter of which window on which side I'm working at the moment.

VHDL is a completely different beast, I get it wrong most of the time when I run the linter. And then it's either VHDL2008 or something else that's the problem. But between Python and C I think I'm doing mostly alright.

Cheers,

Alberto
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4568
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: mixed VHDL/ Python/ C
« Reply #2 on: March 16, 2026, 12:52:48 pm »
How, in 2026, is syntax still an issue with auto-correcting and ai-predicting editors?
 

Offline glenenglishTopic starter

  • Frequent Contributor
  • **
  • Posts: 557
  • Country: au
  • RF engineer. AI6UM / VK1XX . Aviation pilot. MTBr
Re: mixed VHDL/ Python/ C
« Reply #3 on: March 16, 2026, 09:38:28 pm »
auto correction etc hmm well they usually dont write what I want, so I have that turned off.
I turn off all the auto bracing , etc also.
 

Offline DiTBho

  • Super Contributor
  • ***
  • Posts: 5098
  • Country: gb
Re: mixed VHDL/ Python/ C
« Reply #4 on: March 16, 2026, 10:19:14 pm »
Why vhdl with C??? What are you doing???
The opposite of courage is not cowardice, it is conformity. Even a dead fish can go with the flow
 

Offline langwadt

  • Super Contributor
  • ***
  • Posts: 5764
  • Country: dk
Re: mixed VHDL/ Python/ C
« Reply #5 on: March 16, 2026, 10:22:17 pm »
Why vhdl with C??? What are you doing???

vhdl for the logic, c for the firmware, and python for the pc interface, is probably quite common
 

Offline glenenglishTopic starter

  • Frequent Contributor
  • **
  • Posts: 557
  • Country: au
  • RF engineer. AI6UM / VK1XX . Aviation pilot. MTBr
Re: mixed VHDL/ Python/ C
« Reply #6 on: March 16, 2026, 10:48:40 pm »
langwalt , yep very common
VHDL to do the work
C to write some crc/memory file generators, for example
C for firmware  running on the foga fabric processor

Python to handing higher level generation of stimuli, and post analysis of test bench data etc

that's if if dont dabble in HLS ...... where now you are likely to be mixing C++ with arbritrary sized variables.....
 

Offline DiTBho

  • Super Contributor
  • ***
  • Posts: 5098
  • Country: gb
Re: mixed VHDL/ Python/ C
« Reply #7 on: March 17, 2026, 12:32:09 am »
Softcore or what? Logic? With a MPU???
The opposite of courage is not cowardice, it is conformity. Even a dead fish can go with the flow
 

Offline glenenglishTopic starter

  • Frequent Contributor
  • **
  • Posts: 557
  • Country: au
  • RF engineer. AI6UM / VK1XX . Aviation pilot. MTBr
Re: mixed VHDL/ Python/ C
« Reply #8 on: March 17, 2026, 12:33:56 am »
all of them
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4568
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: mixed VHDL/ Python/ C
« Reply #9 on: March 17, 2026, 07:23:09 am »
auto correction etc hmm well they usually dont write what I want, so I have that turned off.
I turn off all the auto bracing , etc also.
Do you also ride a horse to work?   :P
 

Offline rteodor

  • Frequent Contributor
  • **
  • Posts: 488
  • Country: ro
Re: mixed VHDL/ Python/ C
« Reply #10 on: March 17, 2026, 07:56:00 am »
Does anyone else have difficulty getting syntax right when they are writing,  simultaneously, in three different tabs  in an editor, C and  Python and VHDL ?

Is it my old brain, or is this troublesome for everyone ?

You could blame the brain but not too much. Try LiteX and you will see that "Thinking in wires Python" is really different than "Thinking in instructions Python". I found that I have the same problem while trying to write in the former Python that is still very new to me.
« Last Edit: March 17, 2026, 08:02:37 am by rteodor »
 

Offline glenenglishTopic starter

  • Frequent Contributor
  • **
  • Posts: 557
  • Country: au
  • RF engineer. AI6UM / VK1XX . Aviation pilot. MTBr
Re: mixed VHDL/ Python/ C
« Reply #11 on: March 17, 2026, 08:31:12 am »
thanks for the pointer to  LiteX

I was not aware of it. I have dabbled in SpinalHDL and MyHDL
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf